Dub.co▌

by gitmaxd
Shorten your URLs easily with Dub.co – a tiny url website for creating, updating, and managing short links with robust e
Provides a streamlined interface for creating, updating, and deleting short links through the Dub.co URL shortening service with robust error handling and automatic domain selection.
best for
- / Content creators managing marketing links
- / Developers building link management workflows
- / Social media managers tracking campaigns
capabilities
- / Create custom short links
- / Update existing short links
- / Delete short links
- / Select domains automatically
what it does
Manages Dub.co short links through an API interface. Create, update, and delete shortened URLs with automatic domain selection and error handling.
about
Dub.co is a community-built MCP server published by gitmaxd that provides AI assistants with tools and capabilities via the Model Context Protocol. Shorten your URLs easily with Dub.co – a tiny url website for creating, updating, and managing short links with robust e It is categorized under productivity, developer tools.
how to install
You can install Dub.co in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.
license
MIT
Dub.co is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.
readme
Unofficial dubco-mcp-server
A Model Context Protocol (MCP) server for creating and managing Dub.co short links (unofficial). This server enables AI assistants to create, update, and delete short links through the Dub.co API.
<a href="https://glama.ai/mcp/servers/0tvsbwmk8m"> <img width="380" height="200" src="https://glama.ai/mcp/servers/0tvsbwmk8m/badge" alt="Unofficial dubco-mcp-server MCP server" /> </a>🚀 Features
- Create custom short links with your Dub.co domains
- Update existing short links
- Delete short links
- Seamless integration with AI assistants through the Model Context Protocol
📋 Prerequisites
- Node.js 16.0.0 or higher
- A Dub.co account with API access
- An API key from the Dub.co dashboard
💻 Installation
Installing via Smithery
To install Dub.co MCP Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @Gitmaxd/dubco-mcp-server-npm --client claude
Global Installation
npm install -g dubco-mcp-server
Local Installation
npm install dubco-mcp-server
Direct Usage with npx
npx dubco-mcp-server
⚙️ Configuration
This MCP server requires a Dub.co API key to function. You can get your API key from the Dub.co dashboard.
Set the API key as an environment variable:
export DUBCO_API_KEY=your_api_key_here
For persistent configuration, add this to your shell profile (e.g., .bashrc, .zshrc):
echo 'export DUBCO_API_KEY=your_api_key_here' >> ~/.zshrc
🖥️ Cursor IDE Setup
Cursor IDE provides native support for MCP servers. Follow these steps to set up the dubco-mcp-server in Cursor:
Step 1: Install Cursor IDE
If you haven't already, download and install Cursor IDE (version 0.4.5.9 or later).
Step 2: Open Cursor Settings
- Open Cursor IDE
- Click on the gear icon in the bottom left corner, or use the keyboard shortcut
Cmd+,(Mac) orCtrl+,(Windows/Linux) - Navigate to the Features section
- Scroll down to find the "MCP Servers" section
Step 3: Add the MCP Server
- Click on "+ Add new MCP server"
- In the dialog that appears:
- Name: Enter "Dub.co MCP Server" (or any name you prefer)
- Type: Select "command" from the dropdown
- Command: Enter
env DUBCO_API_KEY=your_api_key_here npx -y dubco-mcp-server(Replaceyour_api_key_herewith your actual Dub.co API key)
- Click "Save" to add the server
Step 4: Verify the Connection
After adding the MCP server, you should see a green status indicator next to the server name. If it shows a red or yellow status, try:
- Checking that your API key is correct
- Restarting Cursor IDE
- Verifying that Node.js (16.0.0+) is properly installed
Step 5: Using the Server
The dubco-mcp-server provides tools that can be used with Cursor's AI features:
- Open Cursor's Composer or Agent mode (MCP only works in these modes)
- Explicitly instruct the AI to use the Dub.co tools (create_link, update_link, delete_link)
- Accept the tool usage prompts when they appear
🔧 Usage with MCP
This server provides tools that can be used by AI assistants through the Model Context Protocol. To use it with an MCP-compatible AI assistant, add it to your MCP configuration.
MCP Configuration Example
{
"mcpServers": {
"dubco": {
"command": "npx",
"args": ["-y", "dubco-mcp-server"],
"env": {
"DUBCO_API_KEY": "your_api_key_here"
},
"disabled": false,
"autoApprove": []
}
}
}
Available Tools
create_link
Create a new short link on Dub.co.
Parameters:
{
"url": "https://example.com",
"key": "optional-custom-slug",
"externalId": "optional-external-id",
"domain": "optional-domain-slug"
}
Example:
{
"url": "https://github.com/gitmaxd/dubco-mcp-server-npm",
"key": "dubco-mcp"
}
update_link
Update an existing short link on Dub.co.
Parameters:
{
"linkId": "link-id-to-update",
"url": "https://new-destination.com",
"domain": "new-domain-slug",
"key": "new-custom-slug"
}
Example:
{
"linkId": "clwxyz123456",
"url": "https://github.com/gitmaxd/dubco-mcp-server-npm/releases"
}
delete_link
Delete a short link on Dub.co.
Parameters:
{
"linkId": "link-id-to-delete"
}
Example:
{
"linkId": "clwxyz123456"
}
🔍 How It Works
The server connects to the Dub.co API using your API key and provides a standardized interface for AI assistants to interact with Dub.co through the Model Context Protocol. When a tool is called:
- The server validates the input parameters
- It sends the appropriate request to the Dub.co API
- It processes the response and returns it in a format that the AI assistant can understand
🛠️ Development
Building from Source
git clone https://github.com/gitmaxd/dubco-mcp-server-npm.git
cd dubco-mcp-server-npm
npm install
npm run build
Running in Development Mode
npm run dev
📝 License
This project is licensed under the ISC License - see the LICENSE file for details.
🔗 Links
- Dub.co - The URL shortener service
- Dub.co API Documentation
- Model Context Protocol - Learn more about MCP
👥 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
👨💻 Created By
This unofficial Dub.co MCP Server was created by GitMaxd (@gitmaxd on X).
This project was developed as a learning exercise to understand the Model Context Protocol and how to build MCP servers. I chose Dub.co as the integration target because of its straightforward API and practical utility, making it an ideal candidate for a learning project.
While I have no official affiliation with Dub.co, I highly recommend their service for both manual and automated short link creation. Their API is well-documented and easy to work with, making it perfect for this kind of integration.
If you find this project helpful or have suggestions for improvements, feel free to reach out or contribute to the repository. Happy link shortening!
FAQ
- What is the Dub.co MCP server?
- Dub.co is a Model Context Protocol (MCP) server profile on explainx.ai. MCP lets AI hosts (e.g. Claude Desktop, Cursor) call tools and resources through a standard interface; this page summarizes categories, install hints, and community ratings.
- How do MCP servers relate to agent skills?
- Skills are reusable instruction packages (often SKILL.md); MCP servers expose live capabilities. Teams frequently combine both—skills for workflows, MCP for APIs and data. See explainx.ai/skills and explainx.ai/mcp-servers for parallel directories.
- How are reviews shown for Dub.co?
- This profile displays 10 aggregated ratings (sample rows for discoverability plus signed-in user reviews). Average score is about 4.5 out of 5—verify behavior in your own environment before production use.
Ratings
4.5★★★★★10 reviews- ★★★★★Shikha Mishra· Oct 10, 2024
Dub.co is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.
- ★★★★★Piyush G· Sep 9, 2024
We evaluated Dub.co against two servers with overlapping tools; this profile had the clearer scope statement.
- ★★★★★Chaitanya Patil· Aug 8, 2024
Useful MCP listing: Dub.co is the kind of server we cite when onboarding engineers to host + tool permissions.
- ★★★★★Sakshi Patil· Jul 7, 2024
Dub.co reduced integration guesswork — categories and install configs on the listing matched the upstream repo.
- ★★★★★Ganesh Mohane· Jun 6, 2024
I recommend Dub.co for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.
- ★★★★★Oshnikdeep· May 5, 2024
Strong directory entry: Dub.co surfaces stars and publisher context so we could sanity-check maintenance before adopting.
- ★★★★★Dhruvi Jain· Apr 4, 2024
Dub.co has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.
- ★★★★★Rahul Santra· Mar 3, 2024
According to our notes, Dub.co benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.
- ★★★★★Pratham Ware· Feb 2, 2024
We wired Dub.co into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.
- ★★★★★Yash Thakker· Jan 1, 2024
Dub.co is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.