Guides

in.mt MCP server

Let Claude, Cursor, VS Code or any MCP client create short links on in.mt, find and change them, and read their click analytics, with a workspace API key.

Endpoint

  • URL: https://mcp.in.mt/mcp
  • Transport: Streamable HTTP (JSON-RPC 2.0 over POST); clients send Accept: application/json, text/event-stream.
  • Authentication: an x-api-key header with a workspace API key (API keys in your workspace). A read key lists and reads; a write key also creates and changes links.
  • The server sends its own instructions in the initialize result, and lists its tools dynamically.

What an agent can do

  • Create a short link: Shorten a URL on a brand domain, the workspace address or a custom domain, with an optional custom slug, expiry, password, click limit and smart redirects.
  • List and find links: List the workspace’s short links with their status, clicks and destination, filtered by text, tag or domain.
  • Read link analytics: Clicks and unique visitors over time, by country, device, browser, operating system, referrer, QR scans and smart-redirect rule.
  • Change or turn off a link: Change a link’s destination, slug, tags or expiry, turn it off, or delete it.

One-time secrets stay in the browser

A secret is encrypted in the browser and its key never reaches in.mt, so the MCP server cannot create one. On in.mt's homepage, a browser with WebMCP exposes a create_secret tool that encrypts in the page.

Connect a client

Replace <your-api-key> with a key from your workspace.

Claude Code

claude mcp add --transport http in-mt https://mcp.in.mt/mcp --header "x-api-key: <your-api-key>"

Claude Desktop, Cursor (.cursor/mcp.json) and most clients

{
  "mcpServers": {
    "in-mt": {
      "type": "http",
      "url": "https://mcp.in.mt/mcp",
      "headers": {
        "x-api-key": "<your-api-key>"
      }
    }
  }
}

VS Code (.vscode/mcp.json)

{
  "servers": {
    "in-mt": {
      "type": "http",
      "url": "https://mcp.in.mt/mcp",
      "headers": {
        "x-api-key": "<your-api-key>"
      }
    }
  }
}

Limits and errors

  • Plan limits apply as in the app: links per month, custom domains and analytics history.
  • Over the rate limit the server answers 429 with Retry-After in seconds.
  • Errors carry a code and a message: { "error": "CODE", "message": "…" }.

Discovery