MCP server for shortening links, managing campaigns, viewing analytics, and generating branded QR codes with opn.onl.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag โ we're steadily working through the catalog.
๐ก Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Opn MCP.
shorten_urlCreate a short link โ optional alias, title, notes, scheduling (`starts_at`/`expires_at`), `max_clicks`, password, burn-after-reading, folder and tags
shorten_urls_bulkShorten many URLs at once, optionally into a folder
list_linksList your links (limit, offset, search, folder or tag filter)
update_linkUpdate destination, title, notes, scheduling, click limit, folder or protections; clear fields with `remove_*` flags
delete_linkDelete a link
clone_linkDuplicate a link under a fresh short code
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.
On your opn.onl instance, go to Settings โ API Keys, create a key, and copy it (it starts with opn_ and is shown once).
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).
Point OPN_BASE_URL at your own instance's API host:
| Env var | Required | Default | Description |
|---|---|---|---|
OPN_API_KEY | โ | โ | Your API key (opn_โฆ), from Settings โ API Keys |
OPN_BASE_URL | โ | https://l.opn.onl | API base URL โ set this for a self-hosted instance |
Links
| Tool | Description |
|---|---|
shorten_url | Create a short link โ optional alias, title, notes, scheduling (starts_at/expires_at), max_clicks, password, burn-after-reading, folder and tags |
shorten_urls_bulk | Shorten many URLs at once, optionally into a folder |
list_links | List your links (limit, offset, search, folder or tag filter) |
update_link | Update destination, title, notes, scheduling, click limit, folder or protections; clear fields with remove_* flags |
delete_link | Delete a link |
clone_link | Duplicate a link under a fresh short code |
toggle_link_pin | Pin or unpin a link |
check_alias_available | Check whether a custom alias is free before using it |
Analytics
| Tool | Description |
|---|---|
get_link_stats | Per-link analytics (clicks, unique visitors, geo, cities, devices, browsers, OS, referrers); optional days window |
get_dashboard_stats | Account-wide analytics across all your links |
QR & URL helpers
| Tool | Description |
|---|---|
get_qr_code | Get a link's QR image โ optional brand colour, centre logo, PNG/SVG |
check_url_health | Check a destination URL is reachable before shortening |
build_utm_url | Append UTM campaign parameters to a URL |
preview_url_metadata | Fetch Open Graph metadata (title, description, image) for a URL |
Tags & folders
| Tool | Description |
|---|---|
list_tags / create_tag | List or create tags |
add_tags_to_link / remove_tags_from_link | Attach or detach tags on a link |
list_folders / create_folder | List or create folders |
move_links_to_folder | Move links into a folder |
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.
package.json, server.json (top-level and the packages[0].version),
and SERVER_VERSION in src/server.ts.main and push. CI (.github/workflows/ci.yml) runs
build + test โ it does not publish.ysalitrynskyi):
ysalitrynskyi):
Smithery (smithery.yaml) and Glama
(glama.json) track the npm/registry release automatically โ no separate step.
MIT ยฉ ysalitrynskyi. Part of the opn.onl project.
Factual signals from GitHub, npm, and our automated checks โ not a rating.
No reviews yet โ be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/ysalitrynskyi-opn-mcp)<a href="https://allmcps.com/mcp/ysalitrynskyi-opn-mcp"><img src="https://allmcps.com/api/badge/ysalitrynskyi-opn-mcp?style=directory" alt="Opn MCP on AllMCPs" /></a>