Dub MCP server. Short links with click, lead and sale analytics, customers, tags and the partner programme.
Add to your MCP config, then reload & authorize:
{
"mcpServers": {
"dub": {
"url": "https://dub.usefulapi.io/mcp"
}
}
}| Tool | Type | What it does |
|---|---|---|
dub_list_links | read | List short links List short links, filtered by domain, tag, folder or a text search. Dub: GET /links. |
dub_get_link | read | Get one short link Fetch a single link by its id, its external id, or its domain plus key. Dub: GET /links/info. |
dub_count_links | read | Count short links Count links matching a filter, optionally grouped by domain, tag or folder. Cheaper than listing when you only need totals. Dub: GET /links/count. |
dub_get_analytics | read | Get analytics Get aggregated click, lead and sale analytics, grouped by a dimension such as country, device, referer or top links. The main reporting read. Dub: GET /analytics. |
dub_list_events | read | List raw events List individual click, lead and sale events rather than aggregates — the row-level detail behind the analytics. Dub: GET /events. |
dub_list_customers | read | List customers List the customers Dub has attributed to links, by email, external id or link. Dub: GET /customers. |
dub_get_customer | read | Get one customer Fetch a single customer with their attribution. Dub: GET /customers/{id}. |
dub_list_tags | read | List tags List the tags available for organising links. Dub: GET /tags. |
dub_list_folders | read | List folders List link folders and their access levels. Dub: GET /folders. |
dub_list_domains | read | List domains List the short domains configured on the workspace. Dub: GET /domains. |
dub_list_partners | read | List partners List the partners (affiliates) in the programme, by status, country or email. Dub: GET /partners. |
dub_get_partner_analytics | read | Get partner analytics Get analytics for the partner programme — clicks, leads, sales and revenue per partner. Dub: GET /partners/analytics. |
dub_list_partner_applications | read | List partner applications List pending applications to join the partner programme. Dub: GET /partners/applications. |
dub_list_commissions | read | List commissions List partner commissions, by partner, status, customer or time window. Dub: GET /commissions. |
dub_list_payouts | read | List payouts List partner payouts and their status. Dub: GET /payouts. |
dub_create_link | write | Create a short link Create a short link. Omit `key` to let Dub generate one. Dub: POST /links. |
dub_update_link | write | Update a short link Change a link's destination, key, tags or archived state. Dub: PATCH /links/{linkId}. |
dub_delete_link | write | Delete a short link Delete a short link. The URL stops resolving immediately and its analytics go with it. Dub: DELETE /links/{linkId}. |
dub_create_tag | write | Create a tag Create a tag for organising links. Dub: POST /tags. |
dub_create_folder | write | Create a folder Create a folder for grouping links. Dub: POST /folders. |
dub_approve_partner_application | write | Approve a partner application Approve an application to join the partner programme. The partner gains links and starts earning commission. Dub: POST /partners/applications/approve. |
dub_reject_partner_application | write | Reject a partner application Reject an application to join the partner programme. Dub: POST /partners/applications/reject. |
| Plan | Price | Limit |
|---|---|---|
| Free | $0 | 100 tool calls / month |
| Pro | $9/mo · $90/yr | Unlimited |
This is a Model Context Protocol endpoint — meant to be connected from an AI client, not opened in a browser. An invalid_token response at the URL is the auth gate working as designed; clients authenticate automatically.