Dub.co
Interact with the Dub.co API to shorten links, manage custom domains, and track analytics.
Dub.co MCP Server
An MCP server for interacting with the Dub.co link shortener API. This server allows AI agents to create, update, and manage short links through your Dub.co account.
Features
- Create short links with custom slugs
- Update existing short links
- Upsert links (create or update)
- Delete links
- Automatic domain selection
Installation
Installing via Smithery
To install Dub.co Link Shortener Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @Gitmaxd/dubco-mcp-server --client claude
Prerequisites
- Node.js 18 or higher
- A Dub.co account with API access
- An API key from Dub.co
Option 1: Install via NPM (Recommended)
npm install -g dubco-mcp-server
Then add the following to your MCP configuration:
{
"mcpServers": {
"dubco-server": {
"command": "dubco-mcp-server",
"env": {
"DUBCO_API_KEY": "your_api_key_here"
},
"disabled": false,
"autoApprove": []
}
}
}
Option 2: Clone and Build
# Clone the repository
git clone https://github.com/Gitmaxd/dubco-mcp-server.git
cd dubco-mcp-server
# Install dependencies
npm install
# Build the project
npm run build
Then add the following to your MCP configuration:
{
"mcpServers": {
"dubco-server": {
"command": "node",
"args": ["/path/to/dubco-mcp-server/build/index.js"],
"env": {
"DUBCO_API_KEY": "your_api_key_here"
},
"disabled": false,
"autoApprove": []
}
}
}
Getting a Dub.co API Key
- Log in to your Dub.co account
- Go to your workspace settings
- Navigate to the "API" section
- Generate a new API key
Usage
Once installed and configured, the MCP server provides the following tools to AI agents:
create_link
Create a new short link on dub.co.
{
"url": "https://example.com",
"key": "example", // optional
"domain": "your-domain.com", // optional
"externalId": "123" // optional
}
update_link
Update an existing short link on dub.co.
{
"linkId": "link_id_here",
"url": "https://new-example.com", // optional
"domain": "new-domain.com", // optional
"key": "new-slug" // optional
}
upsert_link
Create or update a short link on dub.co.
{
"url": "https://example.com",
"key": "example", // optional
"domain": "your-domain.com", // optional
"externalId": "123" // optional
}
delete_link
Delete a short link on dub.co.
{
"linkId": "link_id_here"
}
License
MIT
Related Servers
MCP Inception
Delegate tasks to another MCP client, acting as an agent for your agent.
Mousetaile
Anki MCP server
P-Link.io
HTTP402 implementation - Gives agents the capacity to pay 402 links and send money to any email, request money
FullScope-MCP
An MCP server for content summarization, supporting web scraping, file reading, and direct model calls.
Divide and Conquer
Breaks down complex tasks into manageable pieces and stores them in structured JSON.
Google Calendar
Integrates with Google Calendar to read, create, update, and search for calendar events.
Feishu/Lark OpenAPI
Connect AI agents to Feishu/Lark APIs for automating tasks like document processing, conversation management, and calendar scheduling.
Markdownify MCP Server
A server that converts various file types, including documents, images, audio, and web pages, into Markdown format.
iMCP
A macOS app that connects your digital life with AI, providing access to Calendar, Contacts, Location, Maps, Messages, Reminders, and Weather services.
Unreasonable Thinking Server
A tool for bold and unconventional problem-solving, generating unique solutions by branching and tracking thoughts.