Dub.co MCP Server
Dub.co MCP 服务器
用于与Dub.co链接缩短器 API 交互的 MCP 服务器。此服务器允许 AI 代理通过您的 Dub.co 帐户创建、更新和管理短链接。
特征
使用自定义 slug 创建短链接
更新现有的短链接
插入链接(创建或更新)
删除链接
自动域选择
Related MCP server: linkbit-mcp
安装
通过 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 密钥
登录您的Dub.co帐户
转到您的工作区设置
导航到“API”部分
生成新的 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
}upsert_link
在 dub.co 上创建或更新短链接。
{
"url": "https://example.com",
"key": "example", // optional
"domain": "your-domain.com", // optional
"externalId": "123" // optional
}删除链接
删除 dub.co 上的短链接。
{
"linkId": "link_id_here"
}执照
麻省理工学院
Available Tools
4 toolscreate_linkB
Create a new short link on dub.co, asking the user which domain to use
Inputs: url (required), key, externalId, domain.
delete_linkC
Delete a short link on dub.co
Inputs: linkId (required).
update_linkC
Update an existing short link on dub.co
Inputs: linkId (required), url, domain, key.
upsert_linkA
Create or update a short link on dub.co, asking the user which domain to use if creating
Inputs: url (required), key, externalId, domain.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
The tools have overlapping purposes that could cause confusion. create_link and upsert_link both handle link creation, with upsert_link also updating existing links, making it ambiguous when to choose one over the other. However, delete_link and update_link are clearly distinct, and descriptions help clarify the differences.
All tool names follow a consistent verb_noun pattern with snake_case (create_link, delete_link, update_link, upsert_link). The naming is predictable and readable, with no deviations in style or convention.
Four tools are reasonable for a link management server, covering core operations. It is slightly under-scoped as it lacks a tool for retrieving or listing links, which is a common need, but the count is appropriate for basic CRUD functionality.
There are notable gaps in the tool surface. The server covers create, update, delete, and upsert operations but lacks a get_link or list_links tool for retrieving links, which is essential for full lifecycle management. This omission could lead to agent failures when trying to access existing links.
Related MCP Connectors
Make, find, pause and track short links and QR codes from your AI assistant. Create short links with an optional custom address, title and tags; find links and QR codes; update, pause, resume, archive or restore them; and read click analytics (clicks, unique visitors, countries, referrers, devices, browsers) for a link, a QR code or the whole account. Sign in with OAuth and choose what the assistant may do. Every change can be undone; nothing is ever permanently deleted. Works on every plan, including Free.
Create and manage short links, track clicks, and automate URL management
Create short links and see their click counts from your AI assistant.
Create, search and pause deep links; QR codes; analytics, taps, events; domains; webhooks.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI assistants to create, manage, and analyze short URLs through complete URL shortening functionality. Supports batch operations, custom domains, click statistics, and comprehensive link management.612 npm1MIT
linkbit-mcpDeprecated
AlicenseAqualityBmaintenanceEnables users to shorten links, bulk create URLs, generate QR codes, manage and disable links, and retrieve click analytics from MCP clients like Claude, ChatGPT, Cursor, and n8n.9MIT
esyURL MCP serverofficial
AlicenseNot gradedqualityCmaintenanceEnables AI agents to create, update, organize, and delete short links; render styled QR codes; route visitors by device or country; and read click and scan statistics. Agents can also manage groups and custom domains while changing destinations without breaking printed QR codes or shared short URLs.MIT- AlicenseNot gradedqualityCmaintenanceEnables AI assistants and agents to create and manage branded short links, dynamic QR codes, Link-in-Bio profiles, responsive landing pages, domains, campaigns, A/B tests, and marketing analytics through natural language.11 npmMIT