Linkchime

MCP for AI agents

A hosted Model Context Protocol server so Cursor, Claude, and other MCP clients can create short links, read analytics, and manage campaigns in your workspace using an API key.

In this collectionAI assistantGlobal searchMCP for AI agentsTools

What this is

A hosted Model Context Protocol server so Cursor, Claude, and other MCP clients can create short links, read analytics, and manage campaigns in your workspace using an API key.

MCP does not call the platform AI provider. The client’s model is the one that talks. Usage counts against API rate limits. The external client supplies its own model; Linkchime does not charge shared AI credits for MCP.

Before you start

  • Developer API must be available on your plan.
  • You are a workspace owner (to create an API key).
  • Create a workspace API key under Settings → Developer API and choose its Access. Production keys start with lc_live_.
AccessCan do
AgentRead, create links and organize labels. To change where a link goes, its slug or its status, the agent must show you a preview first. Works only with MCP.
Agent, read-onlyRead links, analytics, campaigns and pages. Works only with MCP.
Full accessEverything the REST API allows. Changes run immediately.

Connect

Use streamable HTTP. This Cursor-compatible snippet is the primary config — replace the origin and key:

{
  "mcpServers": {
    "Linkchime": {
      "type": "http",
      "url": "https://YOUR_HOST/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}

Claude Code and Claude Desktop accept the same url and headers without type.

Clients that speak Bearer HTTP MCP can use the same URL and API key. ChatGPT custom connectors that require OAuth are not supported.

Use a workspace API key. A logged-in browser session is not accepted.

You can also send the key as X-Api-Key.

What it can do

  • Search, get, create, and update short links
  • Browse and paginate links with list_links: filter by status, enabled, starred, QR, expiry, campaign or label, and sort by date, name, stars or lifetime clicks
  • List, create, rename and recolor workspace labels with list_labels, create_label and update_label
  • Assign labels with set_link_labels: supply the complete set to keep, or an empty label_ids array to clear them
  • Create up to 50 links at once
  • List your branded domains, and create links on a verified one with domain
  • Mark a link as a QR code
  • Read workspace and link analytics
  • List campaigns and campaign analytics
  • List and get landing pages

Every created link returns its id and short_url. Passwords, billing, admin, and API-key management are not exposed.

Safe retries

Send an idempotency_key with create_link, create_campaign, or each item of create_links_bulk. Sending the same key again returns the first link with idempotent_replay: true. The same key with a different link, or for a link you deleted, fails with idempotency_conflict. Keys are unique within a workspace.

If you get HTTP 429, nothing ran. Wait the number of seconds in Retry-After and try again.

Confirm changes

With an Agent key, update_link returns confirmation_required with what the link is now, what it would become, and a confirmation_id. The agent shows you this and calls confirm_action once you agree. A confirmation works once, for 10 minutes, for that key, and only while the link is unchanged. Changing a title, tags, a star or the QR flag runs immediately.

Label creation, renaming, recoloring and assignment also run immediately with an Agent key. List labels first to get their ids. Read the link before replacing its labels so you can include existing labels you want to keep. Renaming a label affects all links using it. Read-only keys cannot change labels.

Errors

A failed call has isError: true and JSON with a code:

CodeMeaning
invalid_input, invalid_destination, invalid_slugFix the arguments
not_found, domain_not_foundNothing with that id, slug or hostname in this workspace
domain_not_verifiedFinish the domain's DNS setup first
slug_conflict, idempotency_conflict, label_conflictAlready taken
feature_not_available, plan_limit_exceededThe plan does not allow it
destination_blocked, create_locked, account_suspendedRefused for safety
confirmation_not_found, confirmation_expired, confirmation_used, changedAsk for a new preview, or look at the link first
unavailable, internalTry again later

See what agents did

Developer API lists the last 50 changes made through MCP under MCP activity, kept for 90 days. An agent sees its own with list_agent_activity. Revoke a key and its next call is refused.

Was this article helpful?

Help us keep the knowledge base clear and useful.