
LinkBit
io.github.yutotanakastarv1.0.3更新於 Oct 2, 2026
Shorten URLs, bulk create, QR, and click analytics for LinkBit.
概覽
讓助理建立與管理 LinkBit 短連結、產生 QR code,並讀取點擊分析資料。
- 功能
- 包裝 LinkBit REST API,讓助理可以縮短單一或多個網址,並可選填 slug、備註與 UTM 參數。它能列出連結、更新或停用連結、永久刪除連結,並產生 PNG 或 SVG 格式的 QR code,包含列印版本。它也會回傳單一連結的國家、裝置、來源與每日統計,以及帳號層級的分析總覽。
- 適用情境
- 適合在聊天或代理工作流程中處理連結建立與活動追蹤,例如為行銷網址加上 UTM 參數並縮短、查看某個連結的點擊數,或產生供列印使用的 QR code。它偏向行銷與內容情境,而非一般開發工作。
- 執行需求
- 透過 npx 從 npm 套件 linkbit-mcp 以 stdio 在本機執行,需要 Node.js 18 或更新版本。需要 LinkBit 帳號,並以 API_KEY 環境變數提供 API 金鑰;APP_URL 設定 API 位址,預設指向 LinkBit 網站。需要能連線至 LinkBit API 的網路。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 LinkBit,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
linkbit-mcp
MCP server for LinkBit: shorten links, bulk create, QR codes, and click analytics from Claude, ChatGPT, Cursor, and n8n.
Public docs: linkbit.live/docs · linkbit.live/mcp
Setup
- Sign in at linkbit.live and create an API key (
slk_...) on the API Keys page. - Node.js 18+ is required (
fetch).
Auth against the REST API uses either Authorization: Bearer slk_... or x-api-key: slk_.... This server sends Bearer.
Install
Claude Code:
Claude Desktop / Cursor (mcp.json):
Example prompts
- Shorten https://example.com/campaign as slug spring and utm_source newsletter
- List my links and show clicks for the first id since 2026-01-01
- Disable link
<id>then generate a print PNG QR
Tools
Errors
Tool failures (missing key, 401, invalid URL, daily limit, unsafe destination) are returned as tools/call with isError: true so the model can explain them. Protocol errors (unknown method, bad JSON) stay JSON-RPC errors.
- 401 — API key missing or wrong (
slk_...). Create a key under API Keys. - 400 — invalid URL, slug taken, daily create limit, blocked or unsafe destination.
- 404 — unknown link id.
- Process fails at start if Node is older than 18 (
fetchis required).
n8n, Make, and custom agents can also call /api/v1 with the same headers.
Local development (ShortLinks monorepo)
Until npm publish, Cursor can run the copy in this folder:
- Copy
mcp/cursor.mcp.json.exampleto.cursor/mcp.json(gitignored) or~/.cursor/mcp.json. - Paste the
slk_…key intoenv.API_KEY. - For this repo before publish, use
"command": "node"and"args": ["mcp/src/index.js"].
來源:README.md,提交 d78ba38
工具
0版本歷史
1- v1.0.3最新Oct 2, 2026


