2qr.link is an authenticated MCP server for AI-assisted URL shortening. Connect a compatible AI app to create trackable short URLs for marketing campaigns and QR-code destinations, find links already saved in your account, and review private click statistics. The connection uses OAuth, so you do not need to paste a password, API key, token, or browser cookie into a chat.
What 2qr.link MCP can do
After you authorize your 2qr.link account, an agent can create a short URL from a complete public HTTP(S) destination, search your saved links by destination, short URL, or code, and retrieve click statistics for a link you own. This is useful when you are preparing campaign links, choosing a QR-code destination, or checking a link’s results without switching between your AI app and the dashboard.
Quick start: connect your AI app
1. Sign in to your 2qr.link account. 2. In a compatible AI app, add a remote or custom MCP server. 3. Enter the endpoint https://2qr.link/mcp. 4. Choose OAuth or automatic sign-in when the app asks how to authenticate. 5. Complete the 2qr.link sign-in and consent screen in your browser.
The MCP authorization specification supports OAuth-based authorization for HTTP MCP servers, including dynamic client registration where supported. Read the MCP authorization specification for the underlying standard.
Claude setup
In Claude, open Customize, then Connectors, then add a custom connector. Use the name “2qr.link” and the URL https://2qr.link/mcp. Choose OAuth, select Sign in when needed, and allow automatic registration if Claude offers it. Do not add a fixed Authorization header or a client secret. Custom-connector availability can depend on your Claude plan or workspace settings; see Anthropic’s remote MCP connector guide.
ChatGPT and Codex setup
In a ChatGPT or Codex surface that supports custom remote MCP servers, use its Add custom MCP server workflow and enter https://2qr.link/mcp. Complete the 2qr.link OAuth screen when it opens. Product labels and availability can change, so use the current OpenAI custom MCP server guide for the client-side steps. The 2qr.link dashboard also provides shortcuts and the endpoint in its Connect an AI app card.
Example requests to give your agent
“Create a trackable short URL for https://example.com/spring-launch.”
“Make a short URL I can use as the destination for a restaurant menu QR code: https://example.com/menu.”
“Find the 2qr.link URL for our summer campaign and show its click statistics.”
The available tools
create_short_url accepts a complete public HTTP(S) destination in long_url and returns the saved short URL and code. list_urls can search your account and paginate results. get_url_statistics accepts a url_code, such as abc12, and returns analytics only for a link visible to the account that authorized the connection. Repeating a request for the same normalized destination in the same account returns the existing saved link rather than creating a duplicate.
Your account, scopes, and privacy
2qr.link requests only the scopes required for its tools: urls:read to find links, urls:write to create a short URL, and urls:statistics to view click analytics. You can review the requested scopes at consent time. In the 2qr.link dashboard, Connected apps shows authorized clients and lets you revoke a client; revoking it blocks that OAuth grant.
Safe use for people and AI agents
Only create a short URL after the user provides the complete destination and explicitly asks to create it. Do not shorten password-reset URLs, private documents, internal hostnames, localhost, private-network addresses, or anything that exposes credentials. An agent should report a short link only after create_short_url succeeds and should never request that a user paste an OAuth token, password, API key, or authorization header into chat.
Troubleshooting
If the app says authentication is required, reconnect and finish the browser sign-in and consent flow. If you revoked the connection, authorize it again. The service rejects malformed destinations, non-HTTP(S) addresses, unresolved hosts, and URLs detected as unsafe. For compact connection details and safe operating rules, read the 2qr.link agent instructions.
For dashboard access and connection shortcuts, open the 2qr.link web app. For agent-facing connection details, read the 2qr.link agent instructions.