MCP server · On every plan
SendURL MCP server: ask your AI assistant for short links and click reports
Add one address to Claude, ChatGPT, Claude Code, Cursor or VS Code and sign in. Then ask in plain words: shorten this, switch that one off, where did this week's clicks come from. You choose what the assistant may do and can disconnect it at any time. It is on every plan, the Free plan too.
- Sign in, no key to paste
- You choose its permissions
- Disconnect at any time
$ claude mcp add \
--transport http sendurl \
https://api.sendurl.to/mcp
$ claude mcp login sendurl> Shorten this link, tag it
Campaign, and show me its
clicks so far:
https://yoursite.com/launch
● list_tags
Found the Campaign tag.
● create_link
Created snu.to/x7Kp2 in Default,
tagged Campaign.
QR code: snu.to/x7Kp2?q
● get_link
0 clicks so far.What you can ask your assistant
The MCP server gives an assistant 17 tools. It creates, finds, changes and switches off links, reads each link's clicks, reports on any period your plan's history covers, and lists your folders, tags and domains. It works only inside your workspace, and only with the permissions you gave it.
- Create
“Shorten https://example.com/launch and tag it Campaign.”
Runs
list_tagscreate_link - Check your plan
“How many links do I have left on my plan?”
Runs
get_account - Find and tidy
“Which of my links point to the old pricing page? Switch them off.”
Runs
list_linksupdate_linkChanges a link, so it is marked destructive.
- Read one link
“How many clicks has my launch link had, and how many were QR scans?”
Runs
list_linksget_link - Report on a period
“Summarise this week's clicks by country and referrer.”
Runs
get_analytics_breakdownAny range your plan's history covers.
- Rank
“What are my five most-clicked links this week?”
Runs
get_analytics_overview - Run A/B tests
“Which variant of my signup link is winning? Keep it.”
Runs
list_linksget_analytics_breakdownpick_ab_test_winnerKeeping a winner that changes the destination is Pro and above.
- Organise
“Create a folder for the spring campaign and move my spring links into it.”
Runs
create_folderlist_linksupdate_link
What it can't do: it keeps no schedule and no memory between chats, it can't create tags or add domains, and it never sees a link's password, an API key or your billing.
How sign-in works
Your assistant never gets your SendURL password, and you don't paste a key. It sends you to a SendURL page, you say what it may do, and SendURL gives it access you can take back.
Add the address
Give your assistant the server address,
https://api.sendurl.to/mcp. It finds the SendURL sign-in by itself.Sign in and choose
Your browser opens a SendURL page that names the app, where it connects from and where it sends you back. Pick the workspace, untick any permission you don't want it to have, then choose Allow.
Ask
The assistant sees only the tools those permissions allow. It stays signed in while you use it.
Disconnect when you like
It is listed under Connected apps on the console's API keys page. Choose it, then Disconnect, and its next call is refused.
- Who
Owners and admins approve
Only an owner or admin of the workspace can connect an app to it.
- Unknown apps
SendURL says when it can't vouch
The page shows the address the app connects from and where it sends you back. An app that registered itself carries an “Unverified app” note, and one named like a known brand but not hosted by it carries a red warning, the usual sign of a copycat. Cursor's own app is the expected exception: it registers itself, so it shows both.
- No sign-in?
Use an API key
Scripts and clients that send a header use an API key with the same six permissions, as
Authorization: Bearer snu_…. ChatGPT only signs in.
How do I connect my assistant?
Add the server address https://api.sendurl.to/mcp and sign in. The four most common clients are below; Codex, other clients and every screen are in the MCP server setup guide.
claude.ai and the Claude apps
Add a connector
Open Customize → Connectors, choose + Add, then Add custom connector.
Paste the address
Name it SendURL and paste
https://api.sendurl.to/mcp.Sign in and allow
Choose Connect, sign in to SendURL, choose the permissions and Allow. On Claude Team and Enterprise, an owner adds the connector first.
ChatGPT
Add a custom MCP server
In ChatGPT's settings for apps and connectors, choose to add a custom MCP server. The menu's name depends on your plan.
Paste the address
Paste
https://api.sendurl.to/mcpas the server URL and choose OAuth.Sign in and allow
Create it, sign in to SendURL, choose the permissions and Allow. Pick SendURL in a chat with @.
Claude Code
Add the server, then sign in. Your browser opens the SendURL page; Claude Code keeps and renews the access for you. /mcp inside Claude Code does the same.
claude mcp add --transport http sendurl https://api.sendurl.to/mcp
claude mcp login sendurlCursor and VS Code
Add the server to the editor's MCP file and sign in when the editor asks. No key goes in either file.
For Cursor, the SendURL page shows “Unverified app” and a red brand warning. That is expected for Cursor's own app, which registers itself; for any other app, stop. Choose Allow only if the line under the heading sends you back to localhost (the desktop app) or www.cursor.com (on the web).
{
"mcpServers": {
"sendurl": {
"url": "https://api.sendurl.to/mcp"
}
}
}{
"mcpServers": {
"sendurl": {
"type": "http",
"url": "https://api.sendurl.to/mcp"
}
}
}Prefer an API key?
Claude Code, Codex, Cursor, VS Code and your own scripts can send an API key instead, as Authorization: Bearer snu_…. Create one with only the permissions the assistant needs and keep it in an environment variable.
claude mcp add --transport http sendurl https://api.sendurl.to/mcp \
--header "Authorization: Bearer $SENDURL_API_KEY"Your shell fills in the key, so Claude Code saves the key itself in your own settings. Share a connection with --scope project only from the sign-in command; to share a key-based one, the setup guide shows a .mcp.json that reads each person's key from their environment. Never put a key in a file you share or commit.
Every tool and the permission it needs
Each tool calls the same route as the REST API, so the same rules apply: your plan's limits, your folders and the same error codes. Three tools change or remove what exists; SendURL marks them destructive so your assistant can ask you first.
| Tool | What it does | Permission |
|---|---|---|
| get_account | Your workspace, plan, limits and usageReads | workspace:read |
| list_links | Find links by search text, folder, tag or status; newest or most-clicked first, 10 at a timeReads | links:read |
| get_link | One link: destination, status, tags, click total and QR scansReads | links:read |
| create_link | Create a short link: custom slug, title, folder and tags; expiry or a password on Pro and aboveCreates | links:write |
| update_link | Change a link: title, tags, folder, on or off; its destination, expiry or password on Pro and aboveMarked destructive | links:write |
| delete_link | Delete a link for good (paid plans; Free switches links off instead)Marked destructive | links:delete |
| pick_ab_test_winner | End a link's A/B test: the winning variant becomes its destinationMarked destructive | links:write |
| get_link_stats | A link's all-time clicks per dayReads | links:read |
| list_link_clicks | A link's clicks one by one, newest first: country, device, browser and referring siteReads | links:read |
| get_analytics_overview | Clicks for a period: totals, a daily series, the period before, top links, top tags and social sourcesReads | analytics:read |
| get_analytics_breakdown | Clicks ranked by link, country, device, browser, OS, referrer or A/B variant; by city or UTM on Pro and aboveReads | analytics:read |
| list_analytics_clicks | Clicks one by one for a period, across the workspace, a folder or one linkReads | analytics:read |
| list_folders | Your folders, Default firstReadsWorkspace keys and apps only | workspace:read |
| create_folder | Create a folderCreatesWorkspace keys and apps only | folders:write |
| list_tags | Your tags, to tag or filter linksReads | workspace:read |
| list_domains | Your snu.to subdomains and custom domains, with their statusReads | workspace:read |
| get_domain | One domain, with its status and DNS set-upReads | workspace:read |
A folder-level key sees only its folder's links and gets no folder tools.
Permissions and safety
You decide what an assistant may do, and you can take it back. These are the four things that keep it in bounds.
- Permissions
Six permissions, chosen by you
You tick them on the SendURL page when you sign in, or on the key when you create it. An assistant sees only the tools they allow; a call outside them is refused and names the permission it needs.
- Confirmation
Changes are marked for confirmation
SendURL marks update_link, delete_link and pick_ab_test_winner as destructive, so your assistant can ask you to confirm before running them. Most clients do by default; check your client's tool approval settings.
- Disconnect
Disconnect at any time
Open API keys in the console. Choose a connected app under Connected apps, then Disconnect; a key in the list of keys has Revoke. Confirm, and its next call is refused.
- Limits
60 tool calls a minute
Each key or connected app gets 60 tool calls a minute, and analytics tools run one at a time. Past the limit a call is refused with the time to wait.
| Permission | What it allows |
|---|---|
Read links links:read | List and view links, their daily stats and their clicks one by one |
Create and edit links links:write | Create links, change them, pick an A/B test winner |
Delete links links:delete | Delete links (paid plans) |
Read analytics analytics:read | Overview, breakdowns and clicks across links |
Read workspace workspace:read | Account, folders, tags and domains |
Create folders folders:write | Create new folders |
No tool returns a link's password, an API key or a visitor's IP address. A click shows the referring site's host, never the full address it came from. Cloudflare, in front of the server, also allows 50 requests per 10 seconds from one IP address. Full details are in the MCP server reference.
Free on every plan, documented in the open
The MCP server is on every plan, Free included, and there is nothing to install: SendURL hosts it. Your plan applies as it does in the console, and a tool that needs a paid feature names the plan that includes it. Client configurations and the tool list are on GitHub at sendurl-to/sendurl-mcp, where you can also report a problem.
Every plan side by side: Pricing.
SendURL MCP server: questions and answers
Still curious? Email hi@sendurl.to and a human will reply.
MCP, the Model Context Protocol, is an open standard that lets an assistant such as Claude or ChatGPT use outside tools. The SendURL MCP server gives an assistant tools to create and manage your short links and read their clicks, so you can ask for them in plain words.
Yes. It is on every plan, the Free plan too. Your plan applies as it does in the console: Free gives you 25 links and 7 days of analytics history, and Pro 1,000 links and 90 days for $9 a month. A tool that needs a paid feature names the plan that includes it.
Your assistant opens a SendURL page in your browser. You sign in, choose the workspace and the permissions, and choose Allow. The assistant never sees your password, and a workspace owner or admin can revoke it at any time.
Any MCP client that speaks Streamable HTTP. claude.ai and the Claude apps, ChatGPT, Claude Code, OpenAI Codex, Cursor and VS Code sign in to SendURL. Claude Code, Codex, Cursor, VS Code and your own scripts can send an API key instead.
Only if you let it. You choose its permissions when you connect, and delete_link needs the Delete links permission. SendURL marks the tools that change or remove something, such as update_link and delete_link, as destructive, so your assistant can ask you to confirm before running them; most clients do by default. Deleting links comes with Pro and above.
No. No tool returns a link's password, an API key or a visitor's IP address. A link shows only whether it has a password.
Open API keys in the console. Under Connected apps, choose the app, then Disconnect and confirm. A key is in the list of keys: choose Revoke and confirm. It loses access on its next call.
More for developers
- MCP server setup guide Step-by-step set-up for each assistant, with a prompt to test it.
- MCP server reference The endpoint, sign-in, every tool with its permission, and the limits.
- URL shortener API The same links and clicks over REST, for your own code.
Connect your assistant
Sign up free, add one address to your assistant, sign in, and ask it for your first short link.
No card needed.