Skip to content
MCP server
Registry

opn-mcp MCP Server

MCP server for opn.onl: shorten links, analytics, branded QR codes, and link management.

opn-mcp scores 58 (Fair), licensed MIT and written in TypeScript. It installs as a local process. It declares 15 tools. Filed under Data and analytics. GitHub shows 2 stars. Package registries report about 55 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.

by ysalitrynskyiMITTypeScript2 stars
Trust score
58Fair
Trust score 58 of 100, Fair

Fair trust

58 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 58 comes from

22 + 10 + 2 + 10 + 4 + 10 = 58. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance10 / 20

How recently the repository saw a commit or release.

Maintenance: 10 of 20 points.
Popularity2 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 2 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs10 / 10

A real summary, a README with depth, listed tools.

Docs: 10 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "ysalitrynskyi-opn-mcp": {      "command": "npx",      "args": [        "-y",        "opn-mcp@1.2.0"      ],      "env": {        "OPN_API_KEY": "YOUR_OPN_API_KEY",        "OPN_BASE_URL": "https://l.opn.onl"      }    }  }}

Environment variables

NameRequiredNotes
OPN_API_KEYSecretRequiredYour opn.onl API key (create one under Settings → API Keys).
OPN_BASE_URLOptionalAPI base URL. Set this to your own instance's API for a self-hosted opn.onl.

Tools15Tool docs quality grade C

All capabilities
  • Append UTM campaign parameters to a URL

  • Check whether a custom alias is free before using it

  • Check a destination URL is reachable before shortening

  • Duplicate a link under a fresh short code

  • Delete a link

  • Account-wide analytics across all your links

  • Per-link analytics (clicks, unique visitors, geo, cities, devices, browsers, OS, referrers); optional days window

  • Get a link's QR image — optional brand colour, centre logo, PNG/SVG

  • List your links (limit, offset, search, folder or tag filter)

  • Move links into a folder

  • Fetch Open Graph metadata (title, description, image) for a URL

  • Create a short link — optional alias, title, notes, scheduling (startsat/expiresat), maxclicks, password, burn-after-reading, folder and tags

About

opn-mcp

opn-mcp MCP server

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):

{
  "mcpServers": {
    "opn": {
      "command": "npx",
      "args": ["-y", "opn-mcp"],
      "env": {
        "OPN_API_KEY": "opn_your_key_here"
      }
    }
  }
}

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 args for 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:

{
  "mcpServers": {
    "opn": {
      "command": "npx",
      "args": ["-y", "opn-mcp"],
      "env": {
        "OPN_API_KEY": "opn_your_key_here",
        "OPN_BASE_URL": "https://l.your-domain.com"
      }
    }
  }
}

Configuration

Env varRequiredDefaultDescription
OPN_API_KEY✅—Your API key (opn_…), from Settings → API Keys
OPN_BASE_URL—https://l.opn.onlAPI base URL — set this for a self-hosted instance

Tools

Links

ToolDescription
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
toggle_link_pinPin or unpin a link
check_alias_availableCheck whether a custom alias is free before using it

Analytics

ToolDescription
get_link_statsPer-link analytics (clicks, unique visitors, geo, cities, devices, browsers, OS, referrers); optional days window
get_dashboard_statsAccount-wide analytics across all your links

QR & URL helpers

ToolDescription
get_qr_codeGet a link's QR image — optional brand colour, centre logo, PNG/SVG
check_url_healthCheck a destination URL is reachable before shortening
build_utm_urlAppend UTM campaign parameters to a URL
preview_url_metadataFetch Open Graph metadata (title, description, image) for a URL

Tags & folders

ToolDescription
list_tags / create_tagList or create tags
add_tags_to_link / remove_tags_from_linkAttach or detach tags on a link
list_folders / create_folderList or create folders
move_links_to_folderMove links into a folder

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

npm install
npm run build      # tsc → dist/
npm test           # vitest
OPN_API_KEY=opn_… npm run dev   # run from source (stdio)

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.

  1. Bump the version in three places and keep them identical: package.json, server.json (top-level and the packages[0].version), and SERVER_VERSION in src/server.ts.
  2. Land it: commit to main and push. CI (.github/workflows/ci.yml) runs build + test — it does not publish.
  3. Publish to npm (as npm user ysalitrynskyi):
    npm login
    npm publish        # prepublishOnly runs the build
    
  4. Publish to the MCP registry (as GitHub user ysalitrynskyi):
    mcp-publisher validate      # optional, offline check
    mcp-publisher login github  # interactive browser OAuth
    mcp-publisher publish
    

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.

Frequently asked questions

What is opn-mcp MCP Server?

MCP server for opn.onl: shorten links, analytics, branded QR codes, and link management.

How do I install opn-mcp MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. opn-mcp MCP Server runs locally from the npm package opn-mcp with the command npx -y opn-mcp@1.2.0.

Is opn-mcp MCP Server free and open source?

Yes. opn-mcp MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does opn-mcp MCP Server support remote (HTTP) connections?

No remote endpoint is listed for opn-mcp MCP Server. It runs locally on your machine over stdio, started by your MCP client.

What tools does opn-mcp MCP Server provide?

opn-mcp MCP Server provides 15 tools, including build_utm_url, check_alias_available, check_url_health, and clone_link. See the full tool list for descriptions and parameters.

How is opn-mcp MCP Server's trust score calculated?

opn-mcp MCP Server scores 58 out of 100 (Fair). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server