Dub.co MCP Server

Dub.co MCP Server

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:

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
npm install -g dubco-mcp-server

Then add the following to your MCP configuration:

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

Option 2: Clone and Build

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

{ "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.

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

Update an existing short link on dub.co.

{ "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.

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

Delete a short link on dub.co.

{ "linkId": "link_id_here" }

License

MIT

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Enables AI agents to create, update, and manage short links through your Dub.co account, allowing for creation, modification, and deletion of custom shortened URLs.

  1. Features
    1. Installation
      1. Installing via Smithery
      2. Prerequisites
      3. Option 1: Install via NPM (Recommended)
      4. Option 2: Clone and Build
    2. Getting a Dub.co API Key
      1. Usage
        1. create_link
        2. update_link
        3. upsert_link
        4. delete_link
      2. License

        Related MCP Servers

        • A
          security
          A
          license
          A
          quality
          Enables AI assistants to download images from URLs and perform basic image optimization tasks.
          Last updated -
          2
          4
          JavaScript
          Apache 2.0
        • -
          security
          A
          license
          -
          quality
          Provides code manipulation, execution, and version control capabilities. It allows AI assistants to read, write, and execute code while maintaining a history of changes.
          Last updated -
          8
          Python
          MIT License
        • A
          security
          A
          license
          A
          quality
          A Model Context Protocol server that enables AI assistants to create, update, and delete Dub.co short links through the Dub.co API.
          Last updated -
          3
          11
          5
          JavaScript
          MIT License
          • Linux
          • Apple
        • -
          security
          A
          license
          -
          quality
          Enables AI assistants to interact with WordPress sites through the REST API. Supports multiple WordPress sites with secure authentication, enabling content management, post operations, and site configuration through natural language.
          Last updated -
          18
          MIT License

        View all related MCP servers

        ID: p293dlsvcn