Skip to main content
Glama
LucaRSdeCo

sharecut-mcp

sharecut-mcp

适用于 ShareCut 的 MCP 服务器 — 从 Claude、Cursor 或任何 MCP 客户端生成二维码并创建可追踪的短链接。

二维码生成是免费的,无需账户。

安装

远程服务器,无需安装:

claude mcp add --transport http sharecut https://sharecut.site/mcp

或者通过 stdio 运行此包:

npx sharecut-mcp
{
  "mcpServers": {
    "sharecut": {
      "command": "npx",
      "args": ["-y", "sharecut-mcp"],
      "env": { "SHARECUT_API_KEY": "sc_live_..." }
    }
  }
}

SHARECUT_API_KEY 是可选的 — 省略它,create_qr 依然可用。

Related MCP server: OpenQR

工具

create_qr — 免费,无需 API 密钥

将任何 URL 或文本渲染为二维码。返回 SVG 格式;如果指定 format: "png",还会返回 PNG 数据 URL。color 参数可选,使用十六进制值。

该二维码是静态的:目标地址被编码在图案本身中,因此一旦打印出来,就会永远指向那个地址。

shorten_url — 需要 API 密钥

创建一个 ShareCut 短链接以及一个指向该短链接的二维码。因为二维码编码的是短链接而非最终目标,你可以在打印之后改变它跳转的目标,而且每一次扫描都会被统计 — 国家/地区、设备、来源渠道。

这正是它的核心价值。海报、菜单、名片或产品标签的使用寿命,往往长于印在上面的 URL;静态二维码在网站迁移或营销活动变更后会失效,而它可以持续有效。

接收 url 和可选的 customCode。在创建链接之前,目标地址会经过 Google Safe Browsing 的筛查。

API 密钥

只有 shorten_url 需要密钥。请在 sharecut.site/p/profile 创建 — API 访问是 Business 套餐的一部分 — 然后通过 SHARECUT_API_KEY 传入。

没有程序化注册流程:密钥由人工创建。完整的认证契约请参阅 auth.md。

工作原理

此包是一个轻量的 stdio 桥接器,连接到 https://sharecut.site/mcp。它将换行分隔的 JSON-RPC 消息发送到该端点并返回响应,这意味着零运行时依赖(npx 启动更快),也无需追踪升级:工具运行在服务器端,因此在你的配置无需改动的前提下就能收到更新。

将 SHARECUT_MCP_URL 指向其他地址,即可部署到不同的目标环境。

链接

MIT

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    D
    maintenance
    Generate styled QR codes, manage dynamic short links with click analytics, and publish micro-landing pages via AI agents.
    19
    40 npm
    1
    MIT
  • A
    license
    Not graded
    quality
    A
    maintenance
    Generate QR codes and create, edit and track dynamic (editable) QR codes with scan analytics, folders, style themes and branded subdomain management. Free REST API with an OpenAPI spec alongside; every tool takes a free API key.
    12
    AGPL 3.0
  • A
    license
    Not graded
    quality
    B
    maintenance
    Enables AI clients to generate QR codes for URLs, WiFi networks, contacts, text and email, and to list saved codes and read scan analytics by time range, device, OS and approximate location. Connects over a remote streamable HTTP endpoint with no installation required, though the analytics and account tools require an API key.
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Lets an AI assistant create QR codes and short links, re-point or pause them, inspect scan counts and analytics, and read the contents of a QR image you supply. It connects to a hosted workspace over Streamable HTTP, so codes can be managed and tracked without leaving the chat.
    MIT