Dub.co链式服务器是一个用于与 Dub.co 链接缩短器 API 交互的 MCP 服务器。它允许 AI 代理通过您的 Dub.co 账户创建、更新和管理短链接,为链接管理提供了便捷的解决方案。
Dub.co链式服务器可帮助您轻松与 Dub.co 链接缩短器 API 进行交互。通过该服务器,AI 代理能够借助您的 Dub.co 账户对短链接进行创建、更新和管理等操作。
要自动安装适用于 Claude Desktop 的 Dub.co 链接缩短器服务器 MCP 服务器,可使用 Smithery:
npx -y @smithery/cli install @Gitmaxd/dubco-mcp-server --client claude
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": []
}
}
}
# 克隆仓库
git clone https://github.com/Gitmaxd/dubco-mcp-server.git
cd dubco-mcp-server
# 安装依赖项
npm install
# 构建项目
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": []
}
}
}
创建一个新的短链接:
{
"url": "https://example.com",
"phrase": "shortener"
}
更新现有短链接:
{
"id": "12345",
"url": "https://newexample.com",
"phrase": "updated_shortener"
}
创建或更新短链接:
{
"id": "12345",
"url": "https://existingexample.com",
"phrase": "existing_shortener"
}
删除短链接:
{
"id": "12345"
}
本项目采用 MIT License 许可协议。