Recut
MCP Overview/Technical Documentation

Recut MCP Documentation. Step-by-step setup & API reference.

Complete text reference for connecting AI assistants via OAuth 2.1 or Personal Access Tokens, running JSON-RPC requests, and using all 22 MCP tools.

https://mcp.recut.in/mcp
View Markdown (/mcp.md)

1. Server Overview

  • Server Name: Recut URL Shortener MCP
  • Remote Endpoint URL: https://mcp.recut.in/mcp (Streamable HTTP: POST /mcp, session close via DELETE /mcp)
  • Authentication: OAuth 2.1 or Personal Access Token (rmcp_pat_...)
  • Permission Scopes:
    • Read & Write (recut:read recut:write): Create, update, and delete links, QR codes, branded domains, campaigns, channels, and pixels.
    • Read-Only (recut:read): Inspect account status, links, analytics, QR codes, domains, campaigns, channels, pixels, overlays, and splash pages without editing data.
  • API Key Location: https://app.recut.in/user/developers/apikeys
  • Dashboard & Support: Manage apps and tokens in https://app.recut.in or contact https://recut.in/contact.

2. Step-by-Step Client Setup

Add https://mcp.recut.in/mcp in your AI assistant and complete sign-in with OAuth 2.1.

AI Assistant / ClientWhere to ConfigureAuth
ChatGPTSettings -> Apps / ConnectorsOAuth 2.1
Claude (Web, CLI, Desktop)Connectors / claude_desktop_config.jsonOAuth 2.1
Google Gemini & AntigravityConnectors / ~/.gemini/settings.jsonOAuth 2.1
Cursor~/.cursor/mcp.jsonOAuth 2.1
VS Code & GitHub Copilot.vscode/mcp.jsonOAuth 2.1
Windsurf~/.codeium/windsurf/mcp_config.jsonOAuth 2.1
Zed, JetBrains & Other IDEsClient HTTP MCP settingsOAuth 2.1
CLI & Headless ScriptsAuthorization: Bearer rmcp_pat_...PAT Token

1. ChatGPT (Custom Connector)

  1. Open Settings → Apps / Connectors → Create App.
  2. Set Remote MCP Server URL to https://mcp.recut.in/mcp and select OAuth 2.1.
  3. Sign in with your Recut API key (https://app.recut.in/user/developers/apikeys) and choose Read & Write or Read-Only.

2. Claude (Web, Claude Code CLI & Desktop)

  1. Claude Web (claude.ai): Go to Settings → Connectors → Add custom connector, paste https://mcp.recut.in/mcp, and click Connect.
  2. Claude Code CLI: Run the command below and follow the OAuth 2.1 login prompt:
    Terminal
    claude mcp add --transport http recut https://mcp.recut.in/mcp
  3. Claude Desktop (claude_desktop_config.json):
    Prerequisite: Requires Node.js 20+ installed locally for npx mcp-remote. Restart Claude Desktop after saving the config file.
    claude_desktop_config.json
    {
      "mcpServers": {
        "recut": {
          "command": "npx",
          "args": [
            "mcp-remote",
            "https://mcp.recut.in/mcp"
          ]
        }
      }
    }

3. Google Gemini (Web, CLI & Antigravity)

  1. Gemini Web (gemini.google.com): Add a custom MCP connector pointing to https://mcp.recut.in/mcp and complete OAuth 2.1 authorization.
  2. Gemini CLI: Add the server, then run /mcp auth recut in Gemini CLI:
    Terminal
    gemini mcp add --transport http --scope user recut https://mcp.recut.in/mcp
  3. Antigravity / ~/.gemini/settings.json:
    mcp_config.json
    {
      "mcpServers": {
        "recut": {
          "httpUrl": "https://mcp.recut.in/mcp",
          "oauth": {
            "enabled": true
          }
        }
      }
    }

4. Cursor (~/.cursor/mcp.json)

Add this configuration to ~/.cursor/mcp.json, save the file, and restart or reload your editor before signing in via OAuth 2.1:

~/.cursor/mcp.json
{
  "mcpServers": {
    "recut": {
      "url": "https://mcp.recut.in/mcp"
    }
  }
}

5. VS Code & GitHub Copilot (.vscode/mcp.json)

Add this configuration to .vscode/mcp.json, save the file, and restart or reload your editor before signing in via OAuth 2.1:

.vscode/mcp.json
{
  "servers": {
    "recut": {
      "type": "http",
      "url": "https://mcp.recut.in/mcp"
    }
  }
}

6. Windsurf (~/.codeium/windsurf/mcp_config.json)

Add this configuration to ~/.codeium/windsurf/mcp_config.json, save the file, and restart or reload your editor before signing in via OAuth 2.1:

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "recut": {
      "serverUrl": "https://mcp.recut.in/mcp"
    }
  }
}

7. Zed, JetBrains AI, Codex & Other Clients

Zed, JetBrains AI, Trae, Kiro, Raycast, Cline / Roo, OpenAI Codex, Goose, Warp, Perplexity, Grok, and Mistral Le Chat connect directly to https://mcp.recut.in/mcp using OAuth 2.1.

3. Personal Access Tokens (PAT)

Use a Personal Access Token (rmcp_pat_...) for headless scripts, CI/CD workflows, and CLI tools that send Bearer headers without interactive OAuth 2.1 login.

  1. Open https://app.recut.in and generate a token scoped to Read & Write or Read-Only.
  2. Add the Authorization Bearer header to your MCP config or HTTP request:
mcp.json (Personal Access Token)
{
  "mcpServers": {
    "recut": {
      "type": "http",
      "url": "https://mcp.recut.in/mcp",
      "headers": {
        "Authorization": "Bearer rmcp_pat_YOUR_TOKEN"
      }
    }
  }
}
Terminal (cURL Request with PAT)
curl -s https://mcp.recut.in/mcp \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer rmcp_pat_YOUR_TOKEN" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"recut_shorten_or_update_link","arguments":{"action":"create","url":"https://example.com/spring-launch","custom":"spring-2026","domain":"https://go.brand.com"}}}'

4. Test Your Connection

Once authenticated, paste any prompt below into your AI assistant to verify your workspace connection:

Test Prompt 1
What Recut MCP tools are available on my account?
Test Prompt 2
Shorten https://example.com/spring-launch and return the short URL.
Test Prompt 3
Create a dynamic QR code for https://recut.in/pricing in SVG format.
Note: Custom branded domains require a Recut Pro plan. Your existing domains, permissions, and monthly limits apply automatically across all MCP prompts.

5. Live JSON-RPC Request & Response Examples

All calls use Authorization: Bearer <rmcp_at_... or rmcp_pat_...> and Content-Type: application/json. Unauthenticated requests return HTTP 401 with WWW-Authenticate pointing to https://mcp.recut.in/.well-known/oauth-protected-resource.

Example 1: Initialize Session (initialize)

Request
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "initialize",
  "params": {
    "protocolVersion": "2025-11-25",
    "clientInfo": {
      "name": "cursor-vscode",
      "version": "1.2.0"
    }
  }
}
Response (200 OK)
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "protocolVersion": "2025-11-25",
    "capabilities": {
      "tools": {
        "listChanged": false
      },
      "resources": {
        "subscribe": false,
        "listChanged": false
      },
      "prompts": {
        "listChanged": false
      }
    },
    "serverInfo": {
      "name": "recut-mcp",
      "version": "1.0.0",
      "title": "Recut URL Shortener MCP",
      "websiteUrl": "https://recut.in/mcp",
      "icons": [
        {
          "src": "https://mcp.recut.in/icon.png",
          "mimeType": "image/png",
          "sizes": [
            "512x512"
          ]
        }
      ]
    },
    "instructions": "Use Recut URL Shortener MCP to shorten and manage links, inspect click/scan analytics, generate dynamic QR codes, and manage domains, campaigns, channels, pixels, overlays, and splash pages. Always confirm with the user before calling any delete tool."
  }
}

Example 2: Shorten a Link (recut_shorten_or_update_link)

Request
{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "tools/call",
  "params": {
    "name": "recut_shorten_or_update_link",
    "arguments": {
      "action": "create",
      "url": "https://example.com/spring-launch",
      "custom": "spring-2026",
      "domain": "https://go.brand.com"
    }
  }
}
Response (200 OK)
{
  "jsonrpc": "2.0",
  "id": 2,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\n  \"action\": \"create\",\n  \"id\": 1042,\n  \"shorturl\": \"https://go.brand.com/spring-2026\",\n  \"longurl\": \"https://example.com/spring-launch\",\n  \"deduplicated\": false\n}"
      }
    ],
    "structuredContent": {
      "action": "create",
      "id": 1042,
      "shorturl": "https://go.brand.com/spring-2026",
      "longurl": "https://example.com/spring-launch",
      "deduplicated": false
    }
  }
}

Example 3: Generate a Dynamic QR Code (recut_save_qr_code)

Request
{
  "jsonrpc": "2.0",
  "id": 3,
  "method": "tools/call",
  "params": {
    "name": "recut_save_qr_code",
    "arguments": {
      "action": "create",
      "type": "link",
      "data": "https://recut.in/pricing",
      "foreground": "#18181b",
      "background": "#ffffff",
      "name": "Pricing QR"
    }
  }
}
Response (200 OK)
{
  "jsonrpc": "2.0",
  "id": 3,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\n  \"action\": \"create\",\n  \"id\": 318,\n  \"link\": \"https://app.recut.in/qr/abc123\",\n  \"imageUrl\": \"https://app.recut.in/qr/abc123\",\n  \"svgUrl\": \"https://app.recut.in/qr/abc123/download/svg/1000\",\n  \"pngUrl\": \"https://app.recut.in/qr/abc123/download/png/1000\",\n  \"pdfUrl\": \"https://app.recut.in/qr/abc123/download/pdf/1000\",\n  \"webpUrl\": \"https://app.recut.in/qr/abc123/download/webp/1000\",\n  \"downloadUrls\": {\n    \"svg\": \"https://app.recut.in/qr/abc123/download/svg/1000\",\n    \"png\": \"https://app.recut.in/qr/abc123/download/png/1000\",\n    \"pdf\": \"https://app.recut.in/qr/abc123/download/pdf/1000\",\n    \"webp\": \"https://app.recut.in/qr/abc123/download/webp/1000\"\n  },\n  \"message\": \"QR code created.\"\n}"
      }
    ],
    "structuredContent": {
      "action": "create",
      "id": 318,
      "link": "https://app.recut.in/qr/abc123",
      "imageUrl": "https://app.recut.in/qr/abc123",
      "svgUrl": "https://app.recut.in/qr/abc123/download/svg/1000",
      "pngUrl": "https://app.recut.in/qr/abc123/download/png/1000",
      "pdfUrl": "https://app.recut.in/qr/abc123/download/pdf/1000",
      "webpUrl": "https://app.recut.in/qr/abc123/download/webp/1000",
      "downloadUrls": {
        "svg": "https://app.recut.in/qr/abc123/download/svg/1000",
        "png": "https://app.recut.in/qr/abc123/download/png/1000",
        "pdf": "https://app.recut.in/qr/abc123/download/pdf/1000",
        "webp": "https://app.recut.in/qr/abc123/download/webp/1000"
      },
      "message": "QR code created."
    }
  }
}

Example 4: Read-Only Scope Enforcement Error

Returned when a client authorized with recut:read calls a write or delete tool:

Error Response
{
  "jsonrpc": "2.0",
  "id": 4,
  "result": {
    "isError": true,
    "content": [
      {
        "type": "text",
        "text": "This session was authorized in Read-Only mode. Re-authorize with Read & Write access to perform changes."
      }
    ]
  }
}

6. Complete MCP Tool Reference (22 Tools)

Complete MCP Tool Reference (22 Tools)
CategoryTool NameAccess / ScopeParametersPurpose
Accountrecut_get_accountRead (recut:read)forceRefresh?Connected account tier (free / pro), expiry & API rate limit
Extensionsrecut_list_overlays_and_splashRead (recut:read)kind?, page?, limit?, forceRefresh?List CTA overlays (overlay-<id>) & custom splash pages
Linksrecut_links_list_or_searchRead (recut:read)q?, short?, page?, limit?, order?, forceRefresh?Browse saved links, search by keyword, or lookup exact short URL
Linksrecut_get_link_analyticsRead (recut:read)linkId?, shortUrl?, forceRefresh?Clicks, unique clicks, countries, referrers, browsers, OS
Linksrecut_shorten_or_update_linkWrite (recut:write)action, url, linkId?, custom?, domain?, type?, password?, expiry?, status?, metatitle?, metadescription?, metaimage?, description?, pixels?, campaign?, channel?, deeplink?, geotarget?, devicetarget?, languagetarget?, parameters?Shorten or update links with Pro custom domains, targeting & tracking
Linksrecut_delete_linkDestructive (recut:write)linkIdPermanently delete a short link (confirmation prompt required)
QR Codesrecut_qrs_list_or_searchRead (recut:read)q?, page?, limit?, forceRefresh?Browse dynamic QR codes with image & 1000px download URLs
QR Codesrecut_get_qr_analyticsRead (recut:read)qrId?, query?, forceRefresh?Scan stats, QR image URL & /download/{svg,png,pdf,webp}/1000 URLs
QR Codesrecut_save_qr_codeWrite (recut:write)action, type (link|text|vcard|wifi|email|phone|sms), data?, wifi?, vcard?, foreground?, background?, logo?, name?, qrId?Create or update custom dynamic QR codes
QR Codesrecut_delete_qr_codeDestructive (recut:write)qrIdPermanently delete a QR code (confirmation prompt required)
Domainsrecut_list_domainsRead (recut:read)forceRefresh?List custom branded domains (Pro plan required)
Domainsrecut_save_domainWrite (recut:write)action, domainId?, domain?, redirectroot?, redirect404?Add or update branded domain & redirects (Pro plan)
Domainsrecut_delete_domainDestructive (recut:write)domainIdPermanently delete branded domain (Pro plan)
Campaignsrecut_list_campaignsRead (recut:read)page?, limit?, forceRefresh?List link campaigns & rotator URLs
Campaignsrecut_manage_campaignWrite (recut:write)action (create|update|assign_link), campaignId?, linkId?, name?, slug?, isPublic?Create/update campaigns or assign short links
Campaignsrecut_delete_campaignDestructive (recut:write)campaignIdPermanently delete a campaign
Channelsrecut_list_channels_or_itemsRead (recut:read)channelId?, page?, limit?, forceRefresh?List channels or items (links/bio/qr) inside a channel
Channelsrecut_manage_channelWrite (recut:write)action (create|update|assign_item), channelId?, itemType?, itemId?, name?, description?, color?, starred?Create/update channels or assign items
Channelsrecut_delete_channelDestructive (recut:write)channelIdDelete channel folder (preserves underlying items)
Pixelsrecut_list_pixelsRead (recut:read)page?, limit?, forceRefresh?List configured retargeting/analytics pixels
Pixelsrecut_manage_pixelWrite (recut:write)action (create|update), tag, pixelId?, type?, name?Create or update GTM, GA, Meta, TikTok, LinkedIn, etc. pixel
Pixelsrecut_delete_pixelDestructive (recut:write)pixelIdPermanently delete a tracking pixel

7. MCP Resources & Prompts

  • Resources (resources/read):
    • recut://guide/quickstart — Quick usage guide for links, QR download formats, and safety rules
    • recut://account/summary — Non-sensitive summary of the connected Recut URL Shortener account and quota
  • Prompts (prompts/get):
    • shorten_campaign_link — Interactive prompt workflow to check Pro domains and shorten a campaign link
    • create_branded_qr — Interactive prompt workflow to generate a branded dynamic QR code with 1000px download links

Ready to try Recut URL Shortener?

Join thousands of teams using Recut URL Shortener to create, share, and track links that drive results.

Free forever plan · No credit card required