dubco -npm
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.
claude mcp add --transport stdio gitmaxd-dubco-mcp-server-npm npx -y dubco-mcp-server \ --env DUBCO_API_KEY="your_api_key_here"
How to use
This MCP server provides tooling to manage Dub.co short links via AI assistants using the Model Context Protocol. It exposes three main actions: create_link to create new short links, update_link to modify existing ones, and delete_link to remove links. The server authenticates requests with a Dub.co API key and communicates with the Dub.co API behind a standardized MCP interface so AI agents can perform link management in a structured, auditable manner. When integrating with an MCP-enabled agent, you’ll instruct the AI to call the appropriate tool (create_link, update_link, or delete_link) and provide the required parameters. The server will validate inputs, perform the API calls to Dub.co, and return concise results suitable for downstream decision making by the agent.
To use it in practice, configure the MCP server in your agent’s MCP setup (for example, under the mcpServers section). Supply your Dub.co API key via the DUBCO_API_KEY environment variable. Then, in your agent’s workflow, prompt the AI to use the Dub.co tools for creating, updating, or deleting short links, including necessary fields like the destination URL, optional custom key (slug), domain, or external ID where supported.
How to install
Prerequisites:
- Node.js (version 16.0.0 or higher)
- npm (comes with Node.js)
- A Dub.co account with API access and an API key
Installation options:
- Global installation (recommended for quick start):
npm install -g dubco-mcp-server
- Local installation (per-project):
npm install dubco-mcp-server
- Direct usage with npx (no installation required):
npx dubco-mcp-server
- Optional Smithery-based installation (if you use Smithery for MCPs):
npx -y @smithery/cli install @Gitmaxd/dubco-mcp-server-npm --client claude
After installation, start the server (depending on your install method):
# Global or local installation may provide a runnable binary or npm script
# If installed globally as a CLI: simply run
npx dubco-mcp-server
# If installed locally: run from your project directory
npx dubco-mcp-server
Additional notes
Environment and configuration tips:
- Always keep your DUBCO_API_KEY secure. Do not commit it to version control.
- When running in long-lived environments, consider exporting the API key in your shell profile or using a secrets manager.
- The MCP configuration example uses the server name dubco and a neutral command setup (npx dubco-mcp-server). Adapt the server name and command if you deploy multiple MCP servers.
- If you encounter authentication errors, verify that the API key has the correct permissions in the Dub.co dashboard and that the key is correctly exported as DUBCO_API_KEY in the environment where the MCP server runs.
- The MCP tools (create_link, update_link, delete_link) expect JSON payloads with fields described in the README and validated by the server; provide only supported fields to avoid errors.
Related MCP Servers
ai-dev-tools-zoomcamp
AI Dev Tools Zoomcamp is a free course that helps you use AI tools to write better code, faster. We're starting the first cohort of this course on November 18, 2025! Sign up here to join us 👇🏼
sdk-typescript
A model-driven approach to building AI agents in just a few lines of code.
mcp-rest-api
A TypeScript-based MCP server that enables testing of REST APIs through Cline. This tool allows you to test and interact with any REST API endpoints directly from your development environment.
vrchat
This project is a Model Context Protocol (MCP) server for interacting with the VRChat API.
lichess
A Model Context Protocol (MCP) server that enables Claude Desktop to interact with Lichess chess platform through natural language. Play games, analyze positions, manage your account, and participate in tournaments—all by simply talking to Claude.
tandoor
A Model Context Protocol (MCP) server for interacting with Tandoor Recipe Manager.