I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

Dubco-MCP-Server-NPM
Le Dubco-MCP-Server (non officiel) permet aux assistants AI de gérer les liens courts Dub.co via le protocole de contexte du modèle. Il fournit trois outils MCP: create_link pour générer de nouvelles URL courtes, Update_link pour modifier les liens existants et Delete_link pour supprimer les liens courts.
3 years
Works with Finder
1
Github Watches
3
Github Forks
4
Github Stars
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.
🚀 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
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_here
with 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!
相关推荐
Confidential guide on numerology and astrology, based of GG33 Public information
A geek-themed horoscope generator blending Bitcoin prices, tech jargon, and astrological whimsy.
Therapist adept at identifying core issues and offering practical advice with images.
A medical specialist offering assistance grounded in clinical guidelines. Disclaimer: This is intended for research and is NOT safe for clinical use!
A world class elite tech co-founder entrepreneur, expert in software development, entrepreneurship, marketing, coaching style leadership and aligned with ambition for excellence, global market penetration and worldy perspectives.
A GPT designed to provide everyday financial advice and tools to Canadians, primarily inspired by the subreddit Personal Finance Canada.
Découvrez la collection la plus complète et la plus à jour de serveurs MCP sur le marché. Ce référentiel sert de centre centralisé, offrant un vaste catalogue de serveurs MCP open-source et propriétaires, avec des fonctionnalités, des liens de documentation et des contributeurs.
Manipulation basée sur Micropython I2C de l'exposition GPIO de la série MCP, dérivée d'Adafruit_MCP230XX
Une passerelle API unifiée pour intégrer plusieurs API d'explorateur de blockchain de type étherscan avec la prise en charge du protocole de contexte modèle (MCP) pour les assistants d'IA.
MCP Server pour récupérer le contenu de la page Web à l'aide du navigateur sans tête du dramwright.
Miroir dehttps: //github.com/suhail-ak-s/mcp-typeseense-server
Un bot de chat IA pour les petites et moyennes équipes, soutenant des modèles tels que Deepseek, Open AI, Claude et Gemini. 专为中小团队设计的 Ai 聊天应用 , 支持 Deepseek 、 Open Ai 、 Claude 、 Gemini 等模型。
Reviews

user_ej8HKE9W
As a dedicated user of dubco-mcp-server-npm, I must commend Gitmaxd for this impressive tool. It simplifies the process of managing my applications efficiently. The product's documentation on GitHub is clear and comprehensive, making it easy to set up and use. Highly recommend for developers looking for a robust MCP solution!