Skip to main content
Glama

Dub.co MCP Server

Dub.co MCP 服务器

用于与Dub.co链接缩短器 API 交互的 MCP 服务器。此服务器允许 AI 代理通过您的 Dub.co 帐户创建、更新和管理短链接。

特征

  • 使用自定义 slug 创建短链接
  • 更新现有的短链接
  • 插入链接(创建或更新)
  • 删除链接
  • 自动域选择

安装

通过 Smithery 安装

要通过Smithery自动为 Claude Desktop 安装 Dub.co Link Shortener Server:

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

先决条件

  • Node.js 18 或更高版本
  • 具有 API 访问权限的 Dub.co 帐户
  • 来自 Dub.co 的 API 密钥

选项 1:通过 NPM 安装(推荐)

npm install -g dubco-mcp-server

然后将以下内容添加到您的 MCP 配置中:

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

选项 2:克隆并构建

# 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

然后将以下内容添加到您的 MCP 配置中:

{ "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": [] } } }

获取 Dub.co API 密钥

  1. 登录您的Dub.co帐户
  2. 转到您的工作区设置
  3. 导航到“API”部分
  4. 生成新的 API 密钥

用法

一旦安装并配置完成,MCP 服务器将向 AI 代理提供以下工具:

创建链接

在 dub.co 上创建一个新的短链接。

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

更新链接

更新 dub.co 上现有的短链接。

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

在 dub.co 上创建或更新短链接。

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

删除链接

删除 dub.co 上的短链接。

{ "linkId": "link_id_here" }

执照

麻省理工学院

Install Server
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.

使 AI 代理能够通过您的 Dub.co 帐户创建、更新和管理短链接,从而允许创建、修改和删除自定义缩短的 URL。

  1. 特征
    1. 安装
      1. 通过 Smithery 安装
      2. 先决条件
      3. 选项 1:通过 NPM 安装(推荐)
      4. 选项 2:克隆并构建
    2. 获取 Dub.co API 密钥
      1. 用法
        1. 创建链接
        2. 更新链接
        3. upsert_link
        4. 删除链接
      2. 执照

        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
          40
          10
          JavaScript
          Apache 2.0
        • 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
          667
          5
          JavaScript
          MIT License
          • Linux
          • Apple
        • A
          security
          A
          license
          A
          quality
          Provides a simple tool to shorten URLs using the CleanURI API, designed to run as a FastMCP server that can be integrated with agent or tool-based systems.
          Last updated -
          1
          1
          Python
          Apache 2.0

        View all related MCP servers

        MCP directory API

        We provide all the information about MCP servers via our MCP API.

        curl -X GET 'https://glama.ai/api/mcp/v1/servers/Gitmaxd/dubco-mcp-server'

        If you have feedback or need assistance with the MCP directory API, please join our Discord server