ClawDigest MCP服务

ClawDigest MCP服务定位为AI助手与ClawDigest账户API之间的认证桥接工具,核心功能包括最新内容、标题搜索、热门趋势、来源目录、地区、AI服务状态和用量查询,适用于需要通过MCP协议获取ClawDigest数据的开发与集成场景。

  • by alexfrmn
  • TypeScript
  • 本地部署
  • 更新于
在 GitHub 查看 alexfrmn/clawdigest-mcp

使用说明

clawdigest-mcp

Authenticated stdio MCP sidecar for the ClawDigest account API.

Requires Node.js 20 or newer.

Setup

  1. Sign in at clawdigest.live/account.
  2. Create a named API key and copy it when shown.
  3. Configure the sidecar. The package is not on the npm registry yet; npx installs and builds it straight from this repository:
claude mcp add clawdigest \
  -e CLAWDIGEST_API_KEY=cd_live_... \
  -- npx -y github:alexfrmn/clawdigest-mcp

JSON:

{
  "mcpServers": {
    "clawdigest": {
      "command": "npx",
      "args": ["-y", "github:alexfrmn/clawdigest-mcp"],
      "env": {
        "CLAWDIGEST_API_KEY": "cd_live_..."
      }
    }
  }
}

For a local/self-hosted API, set CLAWDIGEST_API_BASE_URL. Non-HTTPS base URLs are accepted only for localhost. The key is sent only in the X-API-Key header.

Tools

Tool Description
clawdigest_latest Latest or top-ranked entitled items
clawdigest_search Search titles: every word must match, "quoted phrase", category, region, `sort=date
clawdigest_sources Configured source catalog
clawdigest_trending Top cross-source stories for hours (168 = week), optional category and region
clawdigest_regions Regions within the archive entitlement
clawdigest_status Tracked AI-service status
clawdigest_usage Current plan, quota, and usage

Version 2 removes the unauthenticated hosted HTTP mode and arbitrary article URL fetcher. This closes the previous open-proxy/SSRF surface and makes REST and MCP share one account entitlement and quota.

MCP protocol compatibility

The sidecar uses the split MCP TypeScript SDK v2 and supports both protocol eras on the same stdio command:

  • MCP 2026-07-28 stateless negotiation for current SDK v2 clients.
  • Legacy initialization for Claude Code and other clients that have not yet enabled the new protocol.

No client flag is required. New clients probe and select the stateless protocol; existing configurations continue to work unchanged.

Development and release checks

npm ci
npm test
npm run build
npm audit --omit=dev --audit-level=high
npm pack --dry-run

The package is stdio-only. Its release archive intentionally contains only the README, compiled client/server files, and package metadata.