Claude 对接 ShortURL MCP
通过 ShortURL MCP,Claude 可以创建单个或批量短链,并查询当前 API 信息。
¶ 什么是 MCP?
MCP(Model Context Protocol)是 Anthropic 推出的开放协议,让 Claude 这类模型可以通过标准接口调用外部工具。简单理解:给 Claude 装上插件能力。
Ace Data Cloud 把 ShortURL 的核心能力封装成了一个远程 MCP Server,挂上去之后 Claude 就能直接:
- 单个短链生成(
shorturl_create) - 批量短链生成(
shorturl_batch_create) - 查询 API 信息 / 配额(
shorturl_get_api_info) - 查阅使用指南(
shorturl_get_usage_guide)
整套接入只需一个 URL,剩下交给 Claude。
¶ 在 Claude.ai 网页版添加 ShortURL MCP
💡 Claude.ai 网页版接入是 OAuth 直连,不需要复制 API Token。你只需要一个能登录 Ace Data Cloud 的账号(GitHub / Google / 微信均可)。
¶ 1. 打开 Connectors 设置
登录 https://claude.ai,点左下角头像 → Settings → Customize → Connectors,或直接访问 https://claude.ai/customize/connectors。
⚠️ 旧入口
/settings/connectors已经迁移到/customize/connectors,访问旧地址会看到一条 "Connectors have moved to Customize" 的提示。
¶ 2. 添加 ShortURL MCP Server
点击右上角加号 → Add custom connector,在弹出对话框里填:
| 字段 | 值 |
|---|---|
| Name | ShortURL(随便取) |
| URL | https://shorturl.mcp.acedata.cloud/mcp |
点 Add,Claude 会自动发现 Server 暴露的全部工具。
¶ 3. OAuth 授权
点 Connect → 跳转到 Ace Data Cloud OAuth 授权页 → 用账号登录、点 Allow 即可。如果还没有账号,可在 Ace Data Cloud 完成注册。
¶ 4. 检查工具列表
授权完成后回到 Claude.ai,点开 ShortURL Connector,确认状态为 Connected。工具列表由 Server 动态提供;常用能力包括单个和批量短链生成。是否允许工具自动运行,请按任务敏感度和自己的权限偏好设置。
¶ 使用示例
Prompt: Use ShortURL to shorten this URL: https://platform.acedata.cloud/documents/claude-desktop-mcp-all — return both the short URL and the QR code info if available.
Claude 会调用短链工具并返回生成结果。创建前请确认原始 URL 正确;涉及私有资源时,先确认短链不会扩大访问范围。
¶ 更多玩法(同样一个 Connector)
把 prompt 换成下面这些,Claude 会自动选合适的工具:
批量缩链
Use ShortURL batch_create to shorten these 3 URLs in one call: https://platform.acedata.cloud, https://claude.ai, https://modelcontextprotocol.io.
→ Claude 调 shorturl_batch_create,一次性返回 3 条短链。
查 API 信息 / 余额
Use ShortURL to check my API info / remaining quota.
→ Claude 调 shorturl_get_api_info,告诉你额度还剩多少。
一站式:缩链 + 生成营销文案
Shorten https://my-product.com/launch with ShortURL, then write me a 100-character Twitter announcement that uses the short link.
→ Claude 先调 shorturl_create,拿到短链后直接写文案。
配合其他 MCP 做工作流
Generate a Flux poster of "AI agent revolution", upload, then use ShortURL to shorten the image URL for me.
→ Claude 先用 Flux MCP 出图,再用 ShortURL 把图片 URL 缩短。
¶ 常见问题
Q:为什么工具仍然要求确认? A:Claude 会按工具和权限设置决定是否要求确认。请在 Connector 的当前工具列表中检查权限;涉及外部写入、发布或费用的操作,建议保留确认。
Q:余额不够怎么办?
A:错误信息里会带 insufficient balance。点击「充值」按钮即可。
Q:和 bit.ly / t.cn 比有什么优势? A:ShortURL 支持单个和批量创建,并可与其他 MCP 工作流串联。不同平台会自行判断链接可访问性,发布前应在目标渠道实际检查。
Q:Claude Desktop 和 Claude Code 也能这么用吗? A:能。详见 Claude Desktop + ShortURL MCP 和 Claude Code + ShortURL MCP。
