Integrating Cursor with ShortURL MCP
When writing a README, you’ve surely encountered this situation: a link takes up half the screen, a Markdown table is completely stretched out, and the URLs in a PR description are an eyesore.
After integrating ShortURL MCP, you can convert long links directly in a Cursor conversation into short links in the https://surl.id/xxxxx format.
¶ Get an API Token
Log in to the application list, open General Application, and click the copy button to the right of API KEY.

If your balance is insufficient, click the “Recharge” button.
One Token can be used for all MCP Servers; there is no need to apply separately for each service.
¶ Configuration
Create .cursor/mcp.json in the project root directory:
{
"mcpServers": {
"shorturl": {
"type": "http",
"url": "https://shorturl.mcp.acedata.cloud/mcp",
"headers": {
"Authorization": "Bearer 你的Token"
}
}
}
}
After saving, Cursor will automatically recognize the MCP configuration. You can confirm that the ShortURL tool has loaded in the settings.
¶ Use Cases
When writing a README
Documentation links are long and ugly, especially GitHub permalinks:
> 帮我把 README 里所有超过 80 个字符的外部链接都换成短链接
The AI will find all long links, call shorturl_create to shorten them one by one, and then replace them.
When creating API documentation
Each API’s documentation link is very long and difficult to read in a table. Ask the AI to process them in bulk:
> 把这个表格里的 5 个文档链接全部转成短链接
When sharing with colleagues
You need to send a link in Slack, but if it’s too long, it previews as a large block:
> 帮我缩短这个链接,我要发给团队
Batch shortening
shorturl_batch_create can shorten up to 10 links at once:
> 把这 8 个链接一次性都压成短链
¶ Tool List
| Tool | Description |
|---|---|
shorturl_create |
Generate a short link |
shorturl_batch_create |
Generate short links in bulk (up to 10 at once) |
¶ Configuration for Other Editors
- VS Code —
.vscode/mcp.json, with the same configuration underservers - Claude Code — Configure via the terminal command line; see the Claude Code + ShortURL MCP tutorial for details
- Claude Desktop — macOS:
~/Library/Application Support/Claude/claude_desktop_config.json; Windows:%APPDATA%\Claude\claude_desktop_config.json
