ShortURL MCP Integration Guide
MCP (Model Context Protocol) is a model context protocol introduced by Anthropic that allows AI models (such as Claude and GPT) to call external tools through standardized interfaces. With the ShortURL MCP Server provided by AceData Cloud, you can generate short links directly in AI clients such as Claude Desktop, VS Code, and Cursor.
¶ Feature Overview
ShortURL MCP Server provides the following core features:
- Single link shortening — Convert a long URL into a short link that is easy to share
- Batch link shortening — Shorten multiple URLs at once (up to 10)
- Usage guide — Get complete usage instructions and best practices
- API information — View API service details and error code descriptions
¶ Prerequisites
Log in to the application list, open General Application, and click the copy button to the right of API KEY.

Replace the Token placeholder in the configuration below with the copied Key. When running locally, you can provide the raw Key through ACEDATACLOUD_API_TOKEN.
¶ Method 1: Use the Hosted MCP Server (Recommended, No Installation)
AceData Cloud already hosts the ShortURL MCP Server in the cloud. No local dependencies need to be installed; simply enter the following URL in your AI client to use it:
https://shorturl.mcp.acedata.cloud/mcp
Authentication: Add Authorization: Bearer your API Token to the request header (Claude.ai completes this automatically through OAuth, so there is no need to enter the Token manually).
¶ Claude.ai (Web Version, OAuth Login, Easiest)
- Open Claude.ai → Customize in the bottom-left corner → Connectors → Add More
- Enter the URL:
https://shorturl.mcp.acedata.cloud/mcp - Complete the OAuth authorization login (you will be automatically redirected to the AceData Cloud login page)
- Return to the conversation interface, and the tool will be available
¶ Claude Desktop
Edit the configuration file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"shorturl": {
"type": "http",
"url": "https://shorturl.mcp.acedata.cloud/mcp",
"headers": {
"Authorization": "Bearer 你的API Token"
}
}
}
}
Save the file and restart Claude Desktop for the changes to take effect.
¶ Claude Code (Terminal Command Line)
claude mcp add shorturl --transport http https://shorturl.mcp.acedata.cloud/mcp \
-H "Authorization: Bearer 你的API Token"
¶ VS Code (GitHub Copilot)
Create .vscode/mcp.json in the project root directory:
{
"servers": {
"shorturl": {
"type": "http",
"url": "https://shorturl.mcp.acedata.cloud/mcp",
"headers": {
"Authorization": "Bearer 你的API Token"
}
}
}
}
¶ Cursor
Create .cursor/mcp.json in the project root directory:
{
"mcpServers": {
"shorturl": {
"url": "https://shorturl.mcp.acedata.cloud/mcp",
"headers": {
"Authorization": "Bearer 你的API Token"
}
}
}
}
¶ Other MCP-Compatible Clients
Any client that supports the MCP Streamable HTTP protocol (Windsurf, Cline, ChatGPT Connectors, Gemini CLI, JetBrains AI Assistant, etc.) can connect by entering the following two items:
- URL:
https://shorturl.mcp.acedata.cloud/mcp - Header:
Authorization: Bearer your API Token
¶ Method 2: Run Locally (pip / uvx Installation)
If you need to run offline, customize the code, or deploy on an internal network, you can install the MCP Server locally and start it through stdio.
¶ Installation
Install with pip (recommended):
pip install mcp-shorturl
Or install from source:
git clone https://github.com/AceDataCloud/ShortURLMCP.git
cd ShortURLMCP
pip install -e .
Once installation is complete, you can use the mcp-shorturl command to start the service.
¶ Use in Claude Desktop (Local)
Edit the Claude Desktop configuration file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Add the following configuration:
{
"mcpServers": {
"shorturl": {
"command": "mcp-shorturl",
"env": {
"ACEDATACLOUD_API_TOKEN": "你的API Token"
}
}
}
}
If using uvx (no need to install the package in advance):
{
"mcpServers": {
"shorturl": {
"command": "uvx",
"args": ["mcp-shorturl"],
"env": {
"ACEDATACLOUD_API_TOKEN": "你的API Token"
}
}
}
}
Save the configuration and restart Claude Desktop for the changes to take effect.
¶ Use in VS Code / Cursor (Local)
Create .vscode/mcp.json in the project root directory:
{
"servers": {
"shorturl": {
"command": "mcp-shorturl",
"env": {
"ACEDATACLOUD_API_TOKEN": "你的API Token"
}
}
}
}
Or use uvx:
{
"servers": {
"shorturl": {
"command": "uvx",
"args": ["mcp-shorturl"],
"env": {
"ACEDATACLOUD_API_TOKEN": "你的API Token"
}
}
}
}
¶ Available Tools
| Tool Name | Description |
|---|---|
shorturl_create |
Shorten a single URL |
shorturl_batch_create |
Shorten multiple URLs in batches (up to 10) |
shorturl_get_usage_guide |
Get the complete usage guide |
shorturl_get_api_info |
Get API service details |
¶ Usage Examples
Once configured, you can call these features directly in your AI client using natural language, for example:
- “Help me shorten this link”
- “Shorten these 5 URLs in a batch”
- “Generate a short link for sharing”
¶ More Information
- GitHub repository: AceDataCloud/ShortURLMCP
- PyPI package: mcp-shorturl
- API documentation: Short Link Generation API
