Logo von Dub.co

Dub.co

Community
Gitmaxd

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.

HerausgeberGitmaxd
Repositorydubco-mcp-server-npm
SpracheJavaScript
Forks
3
Sterne
6
Verfügbare Tools
0
Transporttypstdio
Kategorien
LizenzMIT
Links
  • Tools mit KI-Workflows verbinden

    Dub.co stellt MCP-Funktionen bereit, die kompatible KI-Clients und Agenten nutzen können.

  • 0 verfügbare Tools

    Sehen Sie sich unten die aufrufbaren Aktionen an, einschließlich Namen und Beschreibungen, sofern der Server diese bereitstellt.

  • Konfiguration zum Kopieren

    Nutzen Sie die Installationsbeispiele, um diesen Server in Ihrem bevorzugten MCP-Client zu konfigurieren.

  • Open-Source-Kennzahlen

    6 Sterne und 3 Forks im verlinkten Repository.

Unofficial dubco-mcp-server

npm version License: ISC Node.js Version smithery badge

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

Installing via Smithery

To install Dub.co MCP Server for Claude Desktop automatically via Smithery:

bash
npx -y @smithery/cli install @Gitmaxd/dubco-mcp-server-npm --client claude

Global Installation

bash
npm install -g dubco-mcp-server

Local Installation

bash
npm install dubco-mcp-server

Direct Usage with npx

bash
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:

bash
export DUBCO_API_KEY=your_api_key_here

For persistent configuration, add this to your shell profile (e.g., .bashrc, .zshrc):

bash
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

  1. Open Cursor IDE
  2. Click on the gear icon in the bottom left corner, or use the keyboard shortcut Cmd+, (Mac) or Ctrl+, (Windows/Linux)
  3. Navigate to the Features section
  4. Scroll down to find the "MCP Servers" section

Step 3: Add the MCP Server

  1. Click on "+ Add new MCP server"
  2. 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 (Replace your_api_key_here with your actual Dub.co API key)
  3. 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:

  1. Checking that your API key is correct
  2. Restarting Cursor IDE
  3. 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:

  1. Open Cursor's Composer or Agent mode (MCP only works in these modes)
  2. Explicitly instruct the AI to use the Dub.co tools (create_link, update_link, delete_link)
  3. 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

json
{
  "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:

json
{
  "url": "https://example.com",
  "key": "optional-custom-slug",
  "externalId": "optional-external-id",
  "domain": "optional-domain-slug"
}

Example:

json
{
  "url": "https://github.com/gitmaxd/dubco-mcp-server-npm",
  "key": "dubco-mcp"
}

update_link

Update an existing short link on Dub.co.

Parameters:

json
{
  "linkId": "link-id-to-update",
  "url": "https://new-destination.com",
  "domain": "new-domain-slug",
  "key": "new-custom-slug"
}

Example:

json
{
  "linkId": "clwxyz123456",
  "url": "https://github.com/gitmaxd/dubco-mcp-server-npm/releases"
}

delete_link

Delete a short link on Dub.co.

Parameters:

json
{
  "linkId": "link-id-to-delete"
}

Example:

json
{
  "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:

  1. The server validates the input parameters
  2. It sends the appropriate request to the Dub.co API
  3. It processes the response and returns it in a format that the AI assistant can understand

🛠️ Development

Building from Source

bash
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

bash
npm run dev

📝 License

This project is licensed under the ISC License - see the LICENSE file for details.

🔗 Links

👥 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. 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!

Installation

TypingMind
Voraussetzungen:

Node.js 18+

{
  "mcpServers": {
    "dubco": {
      "command": "npx",
      "args": [
        "-y",
        "dubco-mcp-server"
      ],
      "env": {
        "DUBCO_API_KEY": "your_api_key_here"
      }
    }
  }
}

Dub.co MCP mit mehreren KI-Modellen nutzen

TypingMind bindet MCP-Tools auf Arbeitsbereichsebene ein. Sobald Dub.co verbunden ist, können Sie die Integration mit verschiedenen KI-Modellen in TypingMind verwenden, statt sie für jedes Modell separat einzurichten. Diese MCP-Integration läuft lokal über den TypingMind-MCP-Konnektor auf Ihrem Gerät.

Einrichtungsanleitung für den lokalen Konnektor

Nutzen Sie diese Option, wenn der MCP-Server Zugriff auf lokale Dateien, Apps oder private Ressourcen auf Ihrem Computer benötigt.

1

MCP-Einstellungen öffnen

Gehen Sie in TypingMind zu „Einstellungen“, „Erweiterte Einstellungen“ und dann „Model Context Protocol“ und wählen Sie „Konnektor-Setup“.

  1. Öffnen Sie TypingMind in Ihrem Browser.
  2. Klicken Sie auf das Symbol „Optionen“.
  3. Gehen Sie zu „Erweiterte Einstellungen“.
  4. Öffnen Sie den Abschnitt „Model Context Protocol“.
  5. Klicken Sie auf „Konnektor-Setup“ und wählen Sie „Dieses Gerät“.
Einrichtungsbildschirm des TypingMind-MCP-Konnektors mit ausgewählter Option „Dieses Gerät“
2

Konnektor-Befehl ausführen

Wählen Sie „Dieses Gerät“, kopieren Sie den Befehl aus TypingMind und führen Sie ihn im Terminal aus. Lassen Sie den Prozess laufen, solange Sie MCP verwenden.

  1. Kopieren Sie den in TypingMind angezeigten Einrichtungsbefehl.
  2. Öffnen Sie unter macOS Terminal bzw. unter Windows Windows Terminal.
  3. Fügen Sie den Befehl ein und führen Sie ihn aus.
  4. Bestätigen Sie die Paketinstallation, wenn Sie im Terminal zum Fortfahren aufgefordert werden.
  5. Lassen Sie das Terminalfenster geöffnet und den Prozess darin laufen, solange Sie MCP-Tools verwenden.
3

Dub.co als Server hinzufügen

Wenn der Konnektorstatus „Bereit“ anzeigt, klicken Sie auf „Server ändern“ und fügen Sie die MCP-Server-Konfiguration ein.

  1. Warten Sie, bis der Konnektorstatus „Bereit“ anzeigt.
  2. Klicken Sie auf „Server ändern“.
  3. Fügen Sie die MCP-Server-Konfiguration für Dub.co ein.
  4. Speichern Sie die Serverliste.
  5. Aktualisieren Sie die Ansicht, um bei Bedarf zu prüfen, ob der Konnektor weiterhin bereit ist.
MCP-Einstellungen in TypingMind mit aktivem Server und der Schaltfläche „Server ändern“
{
  "mcpServers": {
    "dub-co": {
      "command": "npx",
      "args": [
        "-y",
        "dubco-mcp-server"
      ]
    }
  }
}
4

Verbindung modellübergreifend nutzen

Speichern Sie die Serverliste, öffnen Sie „Plugins“ und aktivieren Sie die MCP-Tools von Dub.co. Wählen Sie dann ein beliebiges unterstütztes KI-Modell in TypingMind und verwenden Sie die Tools im Chat oder weisen Sie sie einem KI-Agenten zu.

  1. Öffnen Sie die Seite „Plugins“ in TypingMind.
  2. Aktivieren Sie die MCP-Tools von Dub.co.
  3. Starten Sie einen Chat und wählen Sie das KI-Modell, das Sie verwenden möchten.
  4. Nutzen Sie die MCP-Tools im Chat oder weisen Sie sie einem KI-Agenten zu.
  5. Wechseln Sie bei Bedarf zu einem anderen KI-Modell, ohne die MCP-Verbindung erneut herzustellen.
TypingMind-Chat mit aktivierten MCP-Tools und einem ausgewählten KI-Modell
Können Sie mir mit Dub.co bei dieser Aufgabe helfen?
Dub.co
Gerne. Ich habe es gelesen.
Das habe ich mit Dub.co gefunden.

Häufig gestellte Fragen

Wofür wird der MCP-Server Dub.co verwendet?

Dub.co ist ein MCP-Server, über den kompatible KI-Clients auf externe Tools und Kontext zugreifen können. In TypingMind können Sie diesen MCP-Server einmal hinzufügen und seine Tools in Ihrem KI-Arbeitsbereich verfügbar machen.

Kann ich Dub.co MCP mit mehreren KI-Modellen in TypingMind verwenden?

Ja. TypingMind bindet MCP-Tools auf Arbeitsbereichsebene ein. So können Sie Dub.co mit verschiedenen KI-Modellen wie Claude, ChatGPT, Gemini oder anderen in TypingMind konfigurierten Modellen verwenden, ohne den MCP-Server für jedes Modell separat einzurichten.

Warum Dub.co MCP mit TypingMind nutzen?

TypingMind ist eine der besten Oberflächen für LLM-Chats, da es mehrere KI-Modelle, Prompts, Plugins, KI-Agenten, API-Schlüssel und MCP-Tools in einem Arbeitsbereich vereint. Sobald Dub.co verbunden ist, können Sie die zugehörigen MCP-Tools mit Ihren bevorzugten Modellen nutzen und Ihre Chat-Abläufe in TypingMind übersichtlich organisieren.

Wie verbinde ich Dub.co MCP mit TypingMind?

Dub.co wird über den lokalen MCP-Konnektor von TypingMind angebunden. Das ist die beste Wahl, wenn der MCP-Server auf lokale Dateien, Desktop-Apps, Befehlszeilentools oder private Ressourcen auf Ihrem Computer zugreifen muss.

Welche Tools stellt Dub.co MCP in TypingMind bereit?

Dub.co stellt MCP-Funktionen bereit, die Sie auf der Plugins-Seite in TypingMind aktivieren und im Chat verwenden oder KI-Agenten zuweisen können.

Muss ich meine API-Schlüssel mit TypingMind teilen, um Dub.co MCP zu verwenden?

Nein. TypingMind arbeitet vorrangig lokal, sodass Sie die Kontrolle über Ihre Modellanbieter, API-Schlüssel, Prompts und MCP-Konfiguration behalten. Falls Dub.co eine Authentifizierung erfordert, fügen Sie beim Erstellen der Verbindung die erforderlichen Header, OAuth-Einstellungen oder die lokale Konfiguration für diesen MCP-Server hinzu.

Ähnliche MCP-Server

Alle

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇