Claude 串接 ShortURL MCP

📘 總覽指南:在 Claude 裡使用 Ace Data Cloud 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 動態提供;常用能力包括單個和批次短連結生成。是否允許工具自動執行,請依任務敏感度和自己的權限偏好設定。

使用範例

提示詞:使用 ShortURL 縮短這個 URL:https://platform.acedata.cloud/documents/claude-desktop-mcp-all — 如果有 QR Code 資訊,請一併回傳短連結和 QR Code 資訊。

Claude 會呼叫短連結工具並回傳生成結果。建立前請確認原始 URL 正確;涉及私人資源時,先確認短連結不會擴大存取範圍。

更多用法(同樣一個 Connector)

把提示詞換成下面這些,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。

相關連結