Labsco
redirhub logo

RedirHub MCP API

โ˜… 1

from redirhub

RedirHub's MCP server for managing URL redirects, hosts, and domains at scale. Full CRUD + bulk operations, access logs, usage stats, and dry-run safety. 19 tools across 15 resources. Works with Claude, Cursor, and any MCP client. Free tier available.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeQuick setup

RedirHub MCP Server

Control every redirect from your AI assistant. Create, update, test, and monitor URL redirects through a standardized protocol โ€” compatible with Claude, Cursor, and any MCP client.

RedirHub is redirect infrastructure. This MCP server gives your AI agents direct access to that infrastructure: manage redirects and short links, update domains, invite team members, query analytics โ€” all without opening a dashboard.

Features

  • AI-Native Redirect Management โ€” Create, update, and test URL redirects through natural language. No dashboard required.
  • Custom Short Links โ€” Generate branded short URLs with your own domains. Full alternative to Bitly.
  • DNS Verification โ€” Automatic DNS correctness checks so your redirects always resolve.
  • Analytics & Logs โ€” Query click statistics and raw access logs directly from your AI assistant.
  • Team Collaboration โ€” Multi-member workspace with role-based access control.
  • MCP Protocol โ€” Compatible with Claude, Cursor, Cline, and any MCP client.

Endpoint

https://api.redirhub.com/mcp/v1

Authentication

Generate a Workspace API token from dash.redirhub.com (Settings โ†’ API Tokens) and pass it as a Bearer token:

Authorization: Bearer ***

Available on all plans, including Free.

Server Info

  • Name: Redirect Infra Public API
  • Version: 1.0.1
  • Transport: Streamable HTTP (JSON-RPC 2.0)

Data Model

Users belong to workspaces (organizations). Workspaces contain custom domains (Hosts) and records (Records, including redirects and short links).

Resources

Read workspace data via URI โ€” append query params as ?key=value.

Redirect Records

URIDescriptionFilter Params
redirects://listList redirect recordsfilter[host], filter[search], filter[tags], filter[dns_correct], filter[created_after], filter[created_before], sort, per_page, cursor
redirects://{id}Get a single redirect by hashidโ€”
redirects://countCount total and paused redirectsโ€”
URIDescriptionFilter Params
links://listList short linksSame as redirects://list
links://{id}Get a single short link by hashidโ€”

Domains

URIDescriptionFilter Params
hosts://listList custom domainsfilter[search], filter[short_url], sort, per_page, cursor
hosts://{hostname}Get a domain by hostnameโ€”

Workspace & Members

URIDescription
workspace://currentCurrent workspace info
members://listList workspace members
members://{user_id}Get a member by UUID

Account

URIDescription
account://meCurrent user profile

Catalogs

URIDescription
plugins://catalogAvailable redirect plugins
record-types://catalogAvailable redirect types and routing strategies

Tools

Record Management

ToolWhat It Does
create-redirect-toolCreate a redirect record
create-link-toolCreate a short link (requires host + destination)
update-record-toolUpdate any record (redirect or short link) by hashid
delete-record-toolDelete any record (redirect or short link) by hashid

Domain Management

ToolWhat It Does
connect-host-toolConnect a domain to your workspace. Supports root (example.com), subdomain (sub.example.com), and wildcard (*.example.com). Optionally enable or disable short URLs. Returns DNS configuration instructions.
update-host-toolUpdate domain settings (currently HTTPS toggle only)
refresh-host-toolRefresh DNS status for a domain

Workspace & Members

ToolWhat It Does
add-member-toolInvite a new member
update-member-toolUpdate member role
remove-member-toolRemove a member
update-workspace-toolUpdate workspace settings

Account

ToolWhat It Does
update-account-toolUpdate user profile

๐Ÿ“Š Statistics (read-only)

ToolWhat It Does
get-stats-toolGet analytics (click) data. Set file/files for per-link stats (totals, daily trend, breakdowns by country/city/browser/device/referrer/proto); omit for org-level stats (total clicks, unique visitors, active/total link counts, breakdowns by file/handler). Supports time_range (7d/30d/90d/this_month/last_month/lifetime) or custom date_from+date_to. Optional handler and limit.
get-access-logs-toolGet raw HTTP request logs. Returns individual visit records (timestamp, IP, user agent, country, browser, referrer, etc.). Optional filters: file, time_range/date_from+date_to, country, handler, browser, device, referrer, search (IP or UA). Supports cursor-based pagination.

Bulk Operations

ToolWhat It Does
bulk-update-records-toolApply field changes across records
bulk-delete-records-toolDelete records by source_urls[] (array of source URLs)
bulk-import-toolImport records from JSON rows[]

Bulk import format: Each row: {url, destination, type?, handler?, title?, description?, tags?, destinations?}. handler is "redirect" or "short-url". Supports mode=create|upsert and dry_run.

โš ๏ธ Bulk Operation Safety

For bulk-update-records-tool, bulk-delete-records-tool, and bulk-import-tool:

  1. ALWAYS invoke first with dry_run: true to preview the affected count.
  2. Display the affected count to the user.
  3. Only re-invoke with dry_run: false after explicit user confirmation.

Documentation


Built by RedirHub โ€” redirect infrastructure for teams that can't afford broken links.