trackmcp
Back to directory
gitmaxd

dubco-mcp-server

View on GitHub

MCP server for Dub.co link shortener API integration

0 stars JavaScriptServers & Infrastructure Updated Apr 15, 2025

Documentation

Dub.co MCP Server

smithery badge
MCP Compatible
License: MIT

An MCP server for interacting with the Dub.co link shortener API. This server allows AI agents to create, update, and manage short links through your Dub.co account.

Features

  • Create short links with custom slugs
  • Update existing short links
  • Upsert links (create or update)
  • Delete links
  • Automatic domain selection

Installation

Installing via Smithery

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

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

Prerequisites

  • Node.js 18 or higher
  • A Dub.co account with API access
  • An API key from Dub.co
bash
npm install -g dubco-mcp-server

Then add the following to your MCP configuration:

json
{
  "mcpServers": {
    "dubco-server": {
      "command": "dubco-mcp-server",
      "env": {
        "DUBCO_API_KEY": "your_api_key_here"
      },
      "disabled": false,
      "autoApprove": []
    }
  }
}

Option 2: Clone and Build

bash
# Clone the repository
git clone https://github.com/Gitmaxd/dubco-mcp-server.git
cd dubco-mcp-server

# Install dependencies
npm install

# Build the project
npm run build

Then add the following to your MCP configuration:

json
{
  "mcpServers": {
    "dubco-server": {
      "command": "node",
      "args": ["/path/to/dubco-mcp-server/build/index.js"],
      "env": {
        "DUBCO_API_KEY": "your_api_key_here"
      },
      "disabled": false,
      "autoApprove": []
    }
  }
}

Getting a Dub.co API Key

1. Log in to your Dub.co account

2. Go to your workspace settings

3. Navigate to the "API" section

4. Generate a new API key

Usage

Once installed and configured, the MCP server provides the following tools to AI agents:

Create a new short link on dub.co.

json
{
  "url": "https://example.com",
  "key": "example",  // optional
  "domain": "your-domain.com",  // optional
  "externalId": "123"  // optional
}

Update an existing short link on dub.co.

json
{
  "linkId": "link_id_here",
  "url": "https://new-example.com",  // optional
  "domain": "new-domain.com",  // optional
  "key": "new-slug"  // optional
}

Create or update a short link on dub.co.

json
{
  "url": "https://example.com",
  "key": "example",  // optional
  "domain": "your-domain.com",  // optional
  "externalId": "123"  // optional
}

Delete a short link on dub.co.

json
{
  "linkId": "link_id_here"
}

License

MIT

Frequently asked questions

What is dubco-mcp-server?

dubco-mcp-server is MCP server for Dub.co link shortener API integration

How do I install dubco-mcp-server?

Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.

Is dubco-mcp-server open source?

Yes — it is hosted on GitHub at https://github.com/gitmaxd/dubco-mcp-server.

Related MCP tools

Run your own MCP server? See who uses it and what to fix.

Measure it with TrackMCP