MCP server
Let an AI assistant make and find short links in your workspace, with the same API key as the REST API.
Urlicer runs a remote Model Context Protocol server. Connect an assistant to it and you can ask, in plain words, for a short link to a page, for a link's clicks this month, for its QR code, or to point an existing link somewhere else.
It connects with an ordinary API key, or with a sign-in for apps that have no place to paste one, such as claude.ai. Either way it works in one workspace, on every plan, and everything a plan allows or refuses through the API applies here too.
Endpoint
- Transport: Streamable HTTP. Each request is one JSON-RPC message in a
POST, answered with JSON. There is no event stream, so aGETanswers405. - Auth:
Authorization: Bearer url_live_…, or an OAuth 2.1 access token. Without a working one every request answers401, with a header that tells a client how to sign in. - Each tool call counts as one request against the key's rate limit. Connecting and listing the tools do not.
Connect your assistant
Create a key on the workspace's Developers page first, then:
Claude Code
Then start a new Claude Code session: the tools appear in sessions started after the server
is added, not in the one you ran the command from. To check, type /mcp in the new
session: urlicer should be listed as connected. Without it, an assistant asked to
shorten a link may make one some other way, and that link is not in your workspace.
Cursor
VS Code (GitHub Copilot agent mode)
Claude Desktop, through the mcp-remote bridge, which needs Node.js:
Connect with a sign-in
claude.ai needs no key. In Claude, open Settings, then Connectors, add a custom connector with the address above, and click Connect. Sign in to Urlicer, pick a workspace and click Allow. Custom connectors depend on your Claude plan.
- Only an owner or admin of a workspace can connect an app, and the account needs a confirmed email.
- The app can do what the tools below do, in that one workspace, and nothing else. Its token works on the MCP server only, not on the REST API.
- A workspace can hold 10 connected apps. They share one rate limit, the workspace's per-key limit, so more apps do not mean more requests.
- Every connected app is listed on the workspace's Developers page. Disconnect ends its access at once. It also ends if the person who connected it leaves the workspace or loses the role, within the hour.
Building a client? The server implements the MCP authorization spec: discovery from the
401, dynamic client registration, the authorization code flow with PKCE S256,
and resource indicators. A client registers an https callback, or
one on a loopback address. A custom scheme is refused, so a client that needs one should use
an API key.
Tools
create_link: shortens a URL. A bare domain such asexample.comgetshttps://added. Optional custom name, expiry, start date, click limit, fallback URL and password (Pro and above), app deep links (Team and above), custom domain, folder (paid plans), title and notes. Times can be unix seconds or an ISO 8601 date.create_links: shortens up to 100 URLs in one call (paid plans), each with an optional custom name, title and notes, and a folder, custom domain or expiry for the whole batch. Each row succeeds or fails on its own. For bigger imports use bulk create.list_links: the newest links first, with click counts; page, size (up to 100), folder and search, which finds links by destination, code, title, notes or folder name.get_link: one link by its short link or code, with its destination and clicks.get_link_stats: a link's clicks over the last days or between two dates, against the window before it, with QR scans apart from direct clicks, clicks per day, and the top countries, referrers, devices, browsers and systems. The same report as clicks over time in the API.get_qr: the address of a link's QR code, an SVG in the workspace's default QR style, and the URL the code opens. Scans are counted apart from clicks. A link that is switched off or expired has no QR code.update_link: change the destination, title, notes, folder or any of the settingscreate_linktakes, or switch the link off and on. Only the fields given change, and null removes a setting. A new destination also re-points every printed QR code for that link, so a careful assistant asks first.list_folders: the folder tree by path, with how many links each folder holds (paid plans).get_workspace: which workspace the key belongs to, and links made this month against the plan's limit.
Every tool declares the shape of its result as an output schema, so a client can rely on the fields being there.
There is no delete tool, on purpose: a link may already be printed, and switching it off
with update_link can be undone.
When a tool is refused
A refusal comes back as a tool result marked as an error, with a sentence the assistant can pass on, such as "Custom names start on the Pro plan" or "No such link in this workspace". The reasons are the same as the API's errors.