Dub.co MCP Server
MCP server for Dub.co link shortener API integration
Overview
Dub.co MCP Server is a server designed for integrating with the Dub.co link shortener API, allowing AI agents to manage short links effectively.
To use the Dub.co MCP Server, install it via NPM or clone the repository, configure it with your Dub.co API key, and then utilize its commands to create, update, or delete short links.
- Create short links with custom slugs - Update existing short links - Upsert links (create or update) - Delete links - Automatic domain selection
- Automating the creation of short links for marketing campaigns.
- Managing short links for social media posts.
- Integrating short link management into AI-driven applications.
Add to your AI client
Use these steps to connect Dub.co MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"dubco-mcp-server-gitmaxd": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-dubco-mcp-server-gitmaxd"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"dubco-mcp-server-gitmaxd": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-dubco-mcp-server-gitmaxd"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"dubco-mcp-server-gitmaxd": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-dubco-mcp-server-gitmaxd"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"dubco-mcp-server-gitmaxd": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-dubco-mcp-server-gitmaxd"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"dubco-mcp-server-gitmaxd": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-dubco-mcp-server-gitmaxd"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"dubco-mcp-server-gitmaxd": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-dubco-mcp-server-gitmaxd"
]
}
}
}FAQ
What are the prerequisites for using Dub.co MCP Server?
You need Node.js 18 or higher and a Dub.co account with API access.
Is there a cost associated with using Dub.co MCP Server?
No, the server is free to use, but you need a Dub.co account for API access.
Can I customize the short link slugs?
Yes, you can create short links with custom slugs.