The (Unofficial) dubco-mcp-server enables AI assistants to manage Dub.co short links via the Model Context Protocol. It provides three MCP tools: create_link for generating new short URLs, update_link for modifying existing links, and delete_link for removing short links.
Configuration
View docs{
"mcpServers": {
"gitmaxd-dubco-mcp-server-npm": {
"command": "npx",
"args": [
"-y",
"dubco-mcp-server"
],
"env": {
"DUBCO_API_KEY": "your_api_key_here"
}
}
}
}You can use the Dub.co MCP Server to let AI assistants create, update, and delete Dub.co short links through a Model Context Protocol (MCP). This enables automated link management powered by the Dub.co API, making it easy to generate custom short links and manage them programmatically.
You interact with the Dub.co MCP Server through an MCP-compatible client. Install or run the server locally, supply your Dub.co API key, and then call the available tools to create new short links, update existing ones, or delete links. Use the tools in your MCP-enabled workflow to perform operations like creating a custom slug for a domain, updating the destination URL, or removing a link when itβs no longer needed. Ensure your AI agent is configured to use the Dub.co tools (create_link, update_link, delete_link) and accepts tool usage prompts when they appear.
Prerequisites you need to meet before installing the MCP server:
- Node.js 16.0.0 or higher
- A Dub.co account with API access
- A Dub.co API key
# Global installation
npm install -g dubco-mcp-server
# Local installation
npm install dubco-mcp-server
# Direct usage with npx
npx dubco-mcp-server
# Instantiate via Smithery (optional client-side tool, not MCP config)
# See the appropriate client installation guide for your setupSet your API key as an environment variable so the server can authenticate with the Dub.co API. You can set this for the current session or persist it in your shell profile.
export DUBCO_API_KEY=your_api_key_here{
"mcpServers": {
"dubco": {
"command": "npx",
"args": ["-y", "dubco-mcp-server"],
"env": {
"DUBCO_API_KEY": "your_api_key_here"
},
"disabled": false,
"autoApprove": []
}
}
}Create a new short link on Dub.co with optional custom slug, externalId, and domain.
Update an existing Dub.co short link by linkId, with new URL, domain, or slug.
Delete a Dub.co short link identified by linkId.