
Opn Mcp
io.github.ysalitrynskyi由 GitHub 帳號 ysalitrynskyi 發布v1.2.0更新於 Oct 24, 2026
MCP server for opn.onl: shorten links, analytics, branded QR codes, and link management.
概覽
讓助理在 opn.onl 或自架執行個體上縮短連結、讀取點擊分析、產生品牌 QR 碼並管理連結。
- 可以做什麼
- 這是 opn.onl(開源短網址服務)的 MCP 伺服器。它提供建立短連結的工具(支援別名、標題、備註、排程、點擊上限、密碼、閱後即焚、資料夾與標籤)、批次縮短、列出、更新、刪除、複製與釘選連結,以及檢查別名是否可用。它也能讀取單一連結與整個帳號的分析資料(點擊、不重複訪客、地區、裝置、來源),回傳可設定品牌顏色與中央標誌的 QR 圖片,並提供連結健康檢查、UTM 建構、Open Graph 中繼資料預覽,以及標籤與資料夾管理。
- 適用情境
- 適合讓助理用自然語言建立與整理短連結、執行批次縮短活動,或查詢連結與帳號分析資料。也適合自架 opn.onl 執行個體、希望在 Claude Desktop 或 Cursor 等 MCP 用戶端內管理連結的團隊。
- 執行需求
- 以 stdio 方式在本機執行,通常透過 npx opn-mcp 啟動,因此需要 Node.js。需要 opn.onl 的 API 金鑰,放在 OPN_API_KEY 中,可在 Settings → API Keys 建立。預設連線託管 API;自架執行個體需將 OPN_BASE_URL 設為自有執行個體的 API 位址。需要能連線該 API 的網路。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Opn Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
opn-mcp
An MCP server for opn.onl — the open-source, self-hostable URL shortener. It lets AI assistants (Claude Desktop, Cursor, etc.) shorten links, read analytics, generate QR codes, and manage links in natural language.
Works against the hosted service or your own self-hosted instance.
Setup
1. Get an API key
On your opn.onl instance, go to Settings → API Keys, create a key, and copy it (it starts with opn_ and is shown once).
2. Add the server to your MCP client
Claude Desktop — edit claude_desktop_config.json (~/Library/Application Support/Claude/ on macOS, %APPDATA%\Claude\ on Windows):
Restart your client. That's it — it talks to the hosted API (https://l.opn.onl) by default.
Prefer to run from source? Swap the
argsfor the GitHub build — same config:"args": ["-y", "github:ysalitrynskyi/opn-mcp"](it builds on install).
Self-hosted instance
Point OPN_BASE_URL at your own instance's API host:
Configuration
Tools
Links
Analytics
QR & URL helpers
Tags & folders
Example prompts
- "Shorten https://example.com/very/long/url and call it launch-2026"
- "Shorten these five URLs into a new folder called Q3 Campaign"
- "How many clicks did link 42 get in the last 30 days, and from which countries?"
- "Give me a branded SVG QR code for link 42"
- "Tag my last 10 links as 'newsletter' and show my dashboard stats"
- "Build a UTM link for https://example.com — source newsletter, medium email"
Development
Releasing
All three registries are owned by ysalitrynskyi (npm user, GitHub user, and
the io.github.ysalitrynskyi MCP-registry namespace), so publishing must be done
while signed in as that account.
- Bump the version in three places and keep them identical:
package.json,server.json(top-level and thepackages[0].version), andSERVER_VERSIONinsrc/server.ts. - Land it: commit to
mainand push. CI (.github/workflows/ci.yml) runsbuild+test— it does not publish. - Publish to npm (as npm user
ysalitrynskyi): - Publish to the MCP registry (as GitHub user
ysalitrynskyi):
Smithery (smithery.yaml) and Glama
(glama.json) track the npm/registry release automatically — no separate step.
License
MIT © ysalitrynskyi. Part of the opn.onl project.
來源:README.md,提交 1c4baa0
工具
0版本歷史
1- v1.2.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分