LinkBit

io.github.yutotanakastarv1.0.3更新於 Oct 2, 2026

Shorten URLs, bulk create, QR, and click analytics for LinkBit.

概覽

AI 產生的概覽

讓助理建立與管理 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 的網路。
安裝前請注意
API_KEY 是 LinkBit 金鑰,應存放在環境變數中,不要外流。多個工具會修改或刪除資料:update_link 會修改連結,disable_link 會停止轉址,delete_link 則是永久刪除;disable_link 與 delete_link 都標示為破壞性操作。連結與分析資料會傳送到 LinkBit 服務。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 LinkBit,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

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

  1. Sign in at linkbit.live and create an API key (slk_...) on the API Keys page.
  2. Node.js 18+ is required (fetch).
APP_URL=https://linkbit.liveAPI_KEY=slk_your_key

Auth against the REST API uses either Authorization: Bearer slk_... or x-api-key: slk_.... This server sends Bearer.

Install

bash
npx -y linkbit-mcp

Claude Code:

bash
claude mcp add linkbit -e API_KEY=slk_your_key -e APP_URL=https://linkbit.live -- npx -y linkbit-mcp

Claude Desktop / Cursor (mcp.json):

json
{  "mcpServers": {    "linkbit": {      "command": "npx",      "args": ["-y", "linkbit-mcp"],      "env": {        "APP_URL": "https://linkbit.live",        "API_KEY": "slk_your_key"      }    }  }}

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

ToolParametersNotes
shorten_urldestination (required), slug, note, utm_source, utm_medium, utm_campaign, utm_term, utm_contentExisting utm_* on the URL are not overwritten; #fragment is kept
shorten_urlsurls[] with the same fieldsBulk create
list_links—Newest first
update_linkid, optional destination/slug/note/UTM/disabledPATCH
disable_linkid, optional disabled (default true)Stops redirects. destructiveHint: true
delete_linkidPermanent. destructiveHint: true
get_qrid, format png|svg, color, logo, printPNG as an image block when possible
get_link_statsid, optional from, to (YYYY-MM-DD)Countries, devices, referrers, daily
get_analytics—Account overview

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 (fetch is 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:

  1. Copy mcp/cursor.mcp.json.example to .cursor/mcp.json (gitignored) or ~/.cursor/mcp.json.
  2. Paste the slk_… key into env.API_KEY.
  3. For this repo before publish, use "command": "node" and "args": ["mcp/src/index.js"].

來源:README.md,提交 d78ba38

工具

0
工具後設資料尚未被收錄。

版本歷史

1
  1. v1.0.3最新Oct 2, 2026