Bitly MCP by usefulapi
Shorten links; read bitlinks, click totals, QR code scans and plan limits in Bitly.
我该使用它吗
质量与安全性
发现(2)
- LOW在 bitly_get_bitlink_clicks_summary 中
- LOW在 bitly_get_qr_code_scans_summary 中
基于对工具定义和协议合规性的自动分析。
上下文开销
这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。
安装
一键安装
将以下内容添加到你的 `claude_desktop_config.json` 文件中:
{
"mcpServers": {
"bitly": {
"url": "https://bitly.usefulapi.io/mcp"
}
}
}远程端点
https://bitly.usefulapi.io/mcpstreamable-http它能做什么
工具清单
工具(13)
🟢bitly_get_user
Return the Bitly user that owns the access token (login, name, default group). Bitly API: GET /v4/user.
输入模式
{
"type": "object",
"properties": {},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢bitly_list_organizations(include_all)
List the Bitly organizations this user belongs to. Bitly API: GET /v4/organizations.
输入模式
{
"type": "object",
"properties": {
"include_all": {
"description": "Include organizations the user is no longer active in.",
"type": "boolean"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢bitly_get_plan_limits(organization_guid)
Return the monthly plan limits and usage for an organization (API calls, short links, custom back-halves, redirects). Bitly API: GET /v4/organizations/{organization_guid}/plan_limits.
输入模式
{
"type": "object",
"properties": {
"organization_guid": {
"type": "string",
"minLength": 1,
"description": "Organization GUID (from bitly_list_organizations)."
}
},
"required": [
"organization_guid"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢bitly_list_groups(organization_guid)
List the Bitly groups (workspaces) the user can see, optionally in one organization. Bitly API: GET /v4/groups.
输入模式
{
"type": "object",
"properties": {
"organization_guid": {
"description": "Only groups in this organization.",
"type": "string"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢bitly_get_group(group_guid)
Return one Bitly group with its settings and organization. Bitly API: GET /v4/groups/{group_guid}.
输入模式
{
"type": "object",
"properties": {
"group_guid": {
"type": "string",
"minLength": 1,
"description": "Group GUID, for example Ba1bc23dE4F (from bitly_list_groups)."
}
},
"required": [
"group_guid"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢bitly_list_group_bitlinks(group_guid, size, search_after, query, archived, ...)
List the bitlinks (short links) in a group, newest first, with filters. Page with search_after from the last result. Bitly API: GET /v4/groups/{group_guid}/bitlinks.
输入模式
{
"type": "object",
"properties": {
"group_guid": {
"type": "string",
"minLength": 1,
"description": "Group GUID, for example Ba1bc23dE4F (from bitly_list_groups)."
},
"size": {
"description": "Results per page (default 50).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"search_after": {
"description": "Cursor from the previous page's pagination.search_after.",
"type": "string"
},
"query": {
"description": "Free-text search over the link text.",
"type": "string"
},
"archived": {
"description": "on = only archived, off = only active (default off), both = all.",
"type": "string",
"enum": [
"on",
"off",
"both"
]
},
"created_before": {
"description": "Unix timestamp; only links created before it.",
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"created_after": {
"description": "Unix timestamp; only links created after it.",
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
}
},
"required": [
"group_guid"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢bitly_get_group_clicks(group_guid, unit, units, unit_reference)
Return click counts for every link in a group, bucketed by unit. Bitly API: GET /v4/groups/{group_guid}/clicks.
输入模式
{
"type": "object",
"properties": {
"group_guid": {
"type": "string",
"minLength": 1,
"description": "Group GUID, for example Ba1bc23dE4F (from bitly_list_groups)."
},
"unit": {
"default": "day",
"description": "Time unit for the buckets (default day).",
"type": "string",
"enum": [
"minute",
"hour",
"day",
"week",
"month"
]
},
"units": {
"default": -1,
"description": "How many units to return; -1 returns all (default -1).",
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"unit_reference": {
"description": "ISO 8601 timestamp that ends the window (default now).",
"type": "string"
}
},
"required": [
"group_guid"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢bitly_get_bitlink(bitlink)
Return one bitlink: its long URL, title, tags, archive state and creation time. Bitly API: GET /v4/bitlinks/{bitlink}.
输入模式
{
"type": "object",
"properties": {
"bitlink": {
"type": "string",
"pattern": "^[A-Za-z0-9.-]+\\/[A-Za-z0-9_-]+$",
"description": "Bitlink as domain/hash, for example bit.ly/12a4b6c."
}
},
"required": [
"bitlink"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢bitly_get_bitlink_clicks(bitlink, unit, units, unit_reference)
Return click counts for one bitlink, bucketed by unit. Bitly API: GET /v4/bitlinks/{bitlink}/clicks.
输入模式
{
"type": "object",
"properties": {
"bitlink": {
"type": "string",
"pattern": "^[A-Za-z0-9.-]+\\/[A-Za-z0-9_-]+$",
"description": "Bitlink as domain/hash, for example bit.ly/12a4b6c."
},
"unit": {
"default": "day",
"description": "Time unit for the buckets (default day).",
"type": "string",
"enum": [
"minute",
"hour",
"day",
"week",
"month"
]
},
"units": {
"default": -1,
"description": "How many units to return; -1 returns all (default -1).",
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"unit_reference": {
"description": "ISO 8601 timestamp that ends the window (default now).",
"type": "string"
}
},
"required": [
"bitlink"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢bitly_get_bitlink_clicks_summary(bitlink, unit, units, unit_reference)
Return the total clicks for one bitlink over a window. Bitly API: GET /v4/bitlinks/{bitlink}/clicks/summary.
输入模式
{
"type": "object",
"properties": {
"bitlink": {
"type": "string",
"pattern": "^[A-Za-z0-9.-]+\\/[A-Za-z0-9_-]+$",
"description": "Bitlink as domain/hash, for example bit.ly/12a4b6c."
},
"unit": {
"default": "day",
"description": "Time unit for the buckets (default day).",
"type": "string",
"enum": [
"minute",
"hour",
"day",
"week",
"month"
]
},
"units": {
"default": -1,
"description": "How many units to return; -1 returns all (default -1).",
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"unit_reference": {
"description": "ISO 8601 timestamp that ends the window (default now).",
"type": "string"
}
},
"required": [
"bitlink"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢bitly_get_qr_code(qrcode_id)
Return one Bitly QR code: its destination, design and short link. Bitly API: GET /v4/qr-codes/{qrcode_id}.
输入模式
{
"type": "object",
"properties": {
"qrcode_id": {
"type": "string",
"minLength": 1,
"description": "QR code id from bitly_list_group_bitlinks or the QR code creation response."
}
},
"required": [
"qrcode_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢bitly_get_qr_code_scans_summary(qrcode_id, unit, units, unit_reference)
Return the total scans for one QR code over a window. Bitly API: GET /v4/qr-codes/{qrcode_id}/scans/summary.
输入模式
{
"type": "object",
"properties": {
"qrcode_id": {
"type": "string",
"minLength": 1,
"description": "QR code id."
},
"unit": {
"default": "day",
"description": "Time unit for the buckets (default day).",
"type": "string",
"enum": [
"minute",
"hour",
"day",
"week",
"month"
]
},
"units": {
"default": -1,
"description": "How many units to return; -1 returns all (default -1).",
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"unit_reference": {
"description": "ISO 8601 timestamp that ends the window (default now).",
"type": "string"
}
},
"required": [
"qrcode_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟡bitly_shorten_link(long_url, domain, group_guid, force_new_link)
Shorten a long URL into a bitlink. Without force_new_link, Bitly returns the existing bitlink for the same URL. With force_new_link=true, each call creates another bitlink, so do not retry it. Bitly API: POST /v4/shorten.
输入模式
{
"type": "object",
"properties": {
"long_url": {
"type": "string",
"format": "uri",
"description": "The full URL to shorten, including https://."
},
"domain": {
"description": "Short domain, for example bit.ly (default: the group's default).",
"type": "string"
},
"group_guid": {
"description": "Group that owns the link (default: the user's default group).",
"type": "string"
},
"force_new_link": {
"description": "true = create a new bitlink even if one exists for this URL.",
"type": "boolean"
}
},
"required": [
"long_url"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}社区
证据