RedirHub MCP Server
OfficialRedirHub MCP Server
Control every link from your AI assistant. Create branded links, dynamic QR codes, domain redirects and whole website migrations, then manage, audit and measure them through a standardized protocol, compatible with Claude, ChatGPT, Cursor and any MCP client.
RedirHub is redirect infrastructure. This MCP server gives your AI agents direct access to that infrastructure: create and manage links, connect domains, invite team members and query analytics, all without opening a dashboard.
Features
One model for every link: branded links, dynamic QR codes, domain redirects and website migrations are created by intent and managed as one kind of object, as in the dashboard.
QR codes your agent can hand over:
create-qr-codeandget-qr-codereturn the QR code image itself, drawn exactly as the dashboard draws it.Safe bulk changes: bulk tools preview by default and only apply changes with a confirmation token from that preview.
Same rules as the dashboard: links created or updated here go through the same validation, plan features and limits as the dashboard and the REST API.
Analytics & logs: query click statistics, raw access logs and each link's change history.
Team collaboration: multi-member workspaces with role-based access control.
Sign in, no token to copy: assistants connect with OAuth. You sign in to RedirHub, pick the workspace and choose what the assistant may do; disconnect it any time.
MCP protocol: works with Claude, ChatGPT, Cursor, Cline and any MCP client that calls tools.
Related MCP server: Daemoon
Endpoint
https://mcp.redirhub.com/mcp/v1Authentication
Sign in with OAuth (recommended)
Add the endpoint to your assistant and it sends you to RedirHub to sign in. There is no token to copy:
Sign in to RedirHub (or switch account).
Pick the workspace the assistant works in. Each connection works in one workspace.
Choose what it may do (below) and select Allow access.
The assistant is then listed in Account → AI assistants (account.redirhub.com/mcp), where you, or a workspace manager, can disconnect it. Disconnecting revokes its access at once; the links it made stay.
Permission | Scope | Tools | Who can grant it |
See your links, domains and click stats |
| every read tool: | any member (always granted) |
Create and edit links |
|
| editor and up (on by default) |
Delete links |
|
| editor and up |
Add and change domains |
|
| editor and up |
Manage members and workspace settings |
|
| manager and owner |
The assistant only sees the tools it was granted. Calling another one returns an error naming the permission it needs; to grant more, disconnect the assistant and connect it again.
For client developers: the server follows the MCP authorization spec. A request without a token gets 401 with a WWW-Authenticate header pointing at the protected resource metadata (https://mcp.redirhub.com/.well-known/oauth-protected-resource/mcp/v1). The authorization server is https://account.redirhub.com (metadata at /.well-known/oauth-authorization-server). It supports:
dynamic client registration (
/oauth/register);the authorization code flow with PKCE (
S256);refresh tokens.
Access tokens last an hour and refresh tokens 30 days.
API token
For scripts and clients that can't sign in, generate a Workspace API token from dash.redirhub.com (Settings → API Tokens) and pass it as a Bearer token:
Authorization: Bearer ***An API token has every tool. It acts in the workspace it was created for, within your role: changing links and domains needs the editor role; workspace settings and members need the manager role.
Both ways are available on all plans, including Free.
Server Info
Name: Redirect Infra Public API
Version: 1.2.0
Transport: Streamable HTTP (JSON-RPC 2.0)
Data Model
Users belong to workspaces (organizations). A workspace has custom domains (hosts) and links.
Links are created from four intents but managed as one kind of object:
Intent | Tool | What it is |
Branded link |
| A short URL on your own short-link domain, e.g. |
Dynamic QR code |
| A branded link meant for print; its destination can change after printing |
Domain redirect |
| A domain, subdomain or path sent to a destination, e.g. |
Website migration |
| Many old URLs mapped to new ones at once |
Every link has an id (e.g. link_7bXmR4) that the get-link, update-link, delete-link, get-qr-code and get-link-history tools take. Domains are addressed by hostname, members by id (e.g. user_zwbJjgb8).
Tools
Links: read
Tool | What It Does |
| List links, newest first. Filters: |
| One link by |
| Counts for the same filters: |
| A link's changes, newest first: what changed (destination, UTM, type, status), who changed it and how. Needs the audit log feature (Pro plans and up); without it only the count is returned. |
| A link's QR code as a PNG image, in its saved style, with the workspace logo when the style asks for it. |
| The accepted values: redirect types, destination routing strategies and plugins, with the plan feature each needs. |
Links: create
Tool | What It Does |
|
|
| Same arguments as |
|
|
Use list-hosts with short_links_enabled: true to find the domains branded links and QR codes can use.
Links: manage
Tool | What It Does |
| Update a link by |
| Delete a link by |
| Apply the same changes to many links. Select them with the |
| Delete links by |
| Import up to ~5,000 links per call from |
⚠️ Bulk operation safety
bulk-update-links, bulk-delete-links and bulk-import only preview unless called with dry_run: false:
Call without
dry_run. The preview returns the affected count, a sample of the affected URLs and, for changes and deletions, aconfirmation_token.Show the count to the user.
Only after the user confirms, call again with the same arguments,
dry_run: falseand theconfirmation_token.
The server enforces this: bulk-update-links, bulk-delete-links and bulk-import in upsert mode refuse to apply changes without a token issued for exactly the same arguments, by the same user, in the same workspace, within the last one to two hours.
Domains
Tool | What It Does |
| List custom domains with their DNS, HTTPS and short-link status. Filters: |
| One domain by hostname, with the DNS records it needs. |
| Look the domain's DNS up live and compare it with the records each setup path (CNAME, IP+TXT, NS delegation) needs, next to what the last scheduled check saw. Use it to find out why a domain doesn't work yet. Nothing is saved. |
| Connect a root ( |
| Toggle HTTPS and short links on a domain. |
| Re-check a domain's DNS now. |
Workspace & members
Tool | What It Does |
| The current workspace: plan, limits, usage and settings. |
| Update a setting: |
| Members with their role ( |
| Invite people by email: |
| Change a member's role. |
| Remove a member. |
Account
Tool | What It Does |
| The signed-in user's profile. |
| Update a profile setting: |
📊 Statistics
Tool | What It Does |
| Click analytics. Set |
| Raw visits (time, IP, user agent, country, browser, referrer, ...). Filters: |
QR codes
create-qr-code and get-qr-code return the code as a 512 px PNG, drawn exactly as the dashboard draws it: same modules, colors, margin, workspace logo and readable link underneath. The code encodes the link with ?utm_source=qr, so scans are counted separately from clicks.
For print files, the REST API serves the same code as SVG or PNG (512, 1024 or 2048 px wide):
GET https://api.redirhub.com/v1/links/{id}/qr # SVG
GET https://api.redirhub.com/v1/links/{id}/qr?format=png&width=2048Resources
Clients that attach MCP resources can also read the same data as resources (append query params as ?key=value): redirects://list, redirects://link_{id}, redirects://count, links://list, links://link_{id}, hosts://list, hosts://{hostname}, workspace://current, members://list, members://{user_id}, account://me, plugins://catalog and record-types://catalog.
Most clients only let the model call tools, so prefer the tools above; they cover everything the resources do.
Renamed tools
Version 1.1 dropped the -tool suffix and named the record tools after links. The old names keep working, so existing setups don't break, but new prompts and integrations should use the new ones:
Old name | New name |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Other changes in 1.1:
Create tools return the link.
create-redirectused to wrap it in{created, record}.Bulk tools preview by default. They used to apply changes unless told otherwise.
bulk-update-linksneeds a filter orall_links: true. It used to change every record in the workspace.
Quick Start
1. Add the server to your assistant
Claude (claude.ai, Claude Desktop): Settings → Connectors → Add custom connector, name it RedirHub and paste https://mcp.redirhub.com/mcp/v1.
ChatGPT: Settings → Apps & Connectors, add a custom connector with the same URL.
Cursor: Settings → MCP → Add new MCP server, or in mcp.json:
{
"mcpServers": {
"redirhub": {
"url": "https://mcp.redirhub.com/mcp/v1"
}
}
}Any other MCP client: add a remote (Streamable HTTP) server with the same URL. To try it from a terminal:
npx @modelcontextprotocol/inspector --transport http --server-url https://mcp.redirhub.com/mcp/v12. Sign in and choose what it can do
Your assistant opens RedirHub: sign in, pick a workspace and the permissions, and select Allow access. You're sent back to the assistant, connected.
Create a Workspace API token from dash.redirhub.com Settings → API Tokens and send it as a header:
{
"mcpServers": {
"redirhub": {
"url": "https://mcp.redirhub.com/mcp/v1",
"headers": {
"Authorization": "Bearer rh_YOUR_API_TOKEN"
}
}
}
}3. Use it
Once connected, tell your AI agent what you need:
"Create a QR code for our menu on go.acme.co that points to acme.com/menu, and show it to me."
"Redirect old.acme.co to acme.com with a 301, keeping the path."
"Migrate these 500 URLs from our old site to the new one."
"How many links on go.acme.co had no clicks in the last four weeks? Pause every link on that domain."
"Who changed the destination of go.acme.co/spring, and when?"
Documentation
API Reference: full RedirHub API docs
dash.redirhub.com: web dashboard
MCP Specification: protocol docs
Built by RedirHub: redirect infrastructure for teams that can't afford broken links.
This server cannot be deployed
Maintenance
Related MCP Connectors
- QuallaaOAuthcom.quallaa
Talk to your public-facing AI from any MCP client — Claude, ChatGPT, Cursor, Cline, Windsurf.
Real-time chat hub for AI agents — Claude Code, Cursor, Cline, Codex over MCP or REST.
Remote streamable-HTTP MCP server running on a single Cloudflare Worker. Your assistant gets live Airbnb, Amazon, Booking.com, Google Flights, Maps and Reddit data, social search on X, Instagram and TikTok, the Meta Ad Library, and image/video generation without any keys. Connect your own accounts to let it send WhatsApp or Telegram messages, work an IMAP inbox, manage Meta Ads campaigns and publish to X and LinkedIn. OAuth 2.1 with PKCE; stored credentials are AES-256-GCM encrypted.
The OpenRouter MCP server plugs OpenRouter into the AI tools you already use. Once connected, your assistant can pull live OpenRouter data (models, prices, your credits, rankings, and docs) and send quick test messages, all without leaving your editor.
Related MCP Servers
- AlicenseAqualityFmaintenanceA Model Context Protocol (MCP) server for authenticated REST APIs. Drop it into any project, point it at your API, and let AI agents call endpoints — with auto-login, 2FA support, Swagger spec fetch, and fuzzy endpoint search — all without writing a single line of auth code.39 npm6MIT
- AlicenseNot gradedqualityDmaintenanceGives AI coding agents (Claude Code, Cursor, etc.) unified, secure access to dev infrastructure (Vercel, GitHub, Supabase, Cloudflare, GCP) via a single MCP token.MIT
- AlicenseAqualityDmaintenanceAn MCP server that gives AI agents access to RevenueCat's Charts & Metrics API. Query MRR, churn, trial conversion, revenue, and 17 more subscription metrics directly from Claude, Cursor, or any MCP client.57 npmMIT
- AlicenseNot gradedqualityDmaintenanceMCP server that enables AI agents to manage Lnkify links, domains, API keys, and analytics. Allows creation and resolution of short links through natural language.MIT