Skip to main content
Glama
DiggerKit MCP Server

DiggerKit MCP Server

by SassumiX

DiggerKit

GoldDigger SI Agent 的金铲子 —— Python SDK + MCP server,让你的 AI Agent 一行接入挖客。

SI Agent = Supper Intelligence Agent = 你(外贸供应商)自己的 AI Agent(Claude / Cline / Cursor / 自家 worker)。 DiggerKit 助力赋能 = 我们给你工具,不替你跑。

当前版本

v2.2.0

服务端

https://golddigger.gold

商务合作

factorihub@outlook.com

备案号

浙ICP备2026078906号-1

许可证

MIT


安装

从源码(推荐,PyPI 未发布)

git clone https://github.com/SassumiX/diggerkit.git
cd diggerkit
pip install -e .

零第三方依赖 —— DiggerKitClient 只用 Python 标准库,pip install -e . 不会拖进任何包。

需要 v1.1 旧版 SDK(GolddiggerClient / AgentTokenClient)时:

pip install -e ".[legacy]"

国内网络不通 GitHub 时

用离线 bundle 走服务器侧更新通道(见下方「离线更新通道」),或直接取仓库 releases/ 下的 zip。


Related MCP server: governed-mcp

30 秒接入

from diggerkit import Client

c = Client(api_key="gds_你的KEY")     # 供应商 gds_ / 买家 gdb_
print(c.check_quota())                 # 配额
leads = c.search_leads(query="silk scarf", country="AE", limit=10)

也可以直接用命令行:

python -m diggerkit.client --api-key gds_你的KEY --query "silk scarf" --country AE

认证:API Key 走 X-API-KEY header,注册后在看板 https://golddigger.gold/dashboard.html 查看。 Agent 授权走 AgentTokenClient(agent_token="agt_...")。


MCP server(只读工具集)

diggerkit/mcp/ 是零依赖的 Node 实现(Node ≥ 18)。

cd diggerkit/mcp
node node/index.js --api-key gds_你的KEY

客户端配置(把路径换成你的绝对路径):

{
  "mcpServers": {
    "golddigger": {
      "command": "node",
      "args": ["/absolute/path/to/diggerkit/mcp/node/index.js"],
      "env": {
        "GOLDDIGGER_API_KEY": "gds_xxxxxxxx",
        "GOLDDIGGER_BASE_URL": "https://golddigger.gold"
      }
    }
  }
}

工具集只读 —— 不提供写入、不提供外发、不提供裸数据导出。 每个结果带 provenance(来源 + 置信度),不给没来处的结论。 check_readiness 一次报全所有阻塞项;check_answerable 覆盖不足就明说。

⚠️ npm 上的 golddigger-mcp 包从未发布(404)。请用本仓库的源码跑,别用 npx -y golddigger-mcp。


离线更新通道

本仓库支持用 git bundle 做离线同步(服务器到 GitHub 直连不稳、或内网环境):

# 首次
git clone git@github.com:SassumiX/diggerkit.git /opt/diggerkit

# 之后每次(拿到 diggerkit.bundle 后)
cd /opt/diggerkit
git pull /path/to/diggerkit.bundle main
git push origin main

git bundle 是单文件全量镜像,git pull <bundle> main 会把该 bundle 里的提交并进本地 main。


版本历史

版本

日期

内容

v2.2.0

2026-11-17

MCP 支持标准换行分帧(原来只吃 LSP 分帧 → 标准 MCP 客户端连不上);--api-key 真正生效;客户包换真 SDK(含租户自己的关键词);包内不再带历史坏 zip

v2.1.0

2026-11-11

MCP server 重写:零依赖 Node、只读工具集、check_readiness / check_answerable

v2.0.0

2026-11-11

Python SDK 重写:纯标准库、错误分层(Quota / InvalidKey / RateLimited / ServerError)

v1.1.0

2026-10-09

Agent 授权机制(4 维度控制)+ diggerkit_tools.py 工具箱(服务端)

v1.0.0

2026-10-08

首个公开包

历史 zip 全档在仓库的 releases/(客户下载包里只放当前版本,不带历史坏包)。


边界

  • 我们不替你跑 Agent:Token、LLM、模型你自带。

  • API 池与挖客行动池是两套独立配额,各自 UTC 00:00 重置。

  • 蒸馏永久免费。

  • 我们不持有你的买家数据。

Available Tools

5 tools
check_answerableB
Read-onlyIdempotent

判断当前配额与配置能否支撑这次挖客需求。覆盖不足就明说, 不做无意义的调用。

Inputs: query (required), limit.

check_quotaA
Read-onlyIdempotent

查剩余配额与套餐周期 (只读, 不消耗配额)。挖客前先查, 避免白跑。

Inputs: no named parameters.

check_readinessA
Read-onlyIdempotent

检查部署是否可用: API Key 有效性 + 配额状态 + 后端连通性。一次报出所有阻塞项。接入后先调这个。

Inputs: no named parameters.

mine_leadsA
Read-onlyIdempotent

挖客行动 (DiggerKit C / C+ 档): 按产品关键词 + 国家 + 行业挖潜在买家, 结果自动存进你自己的线索库, 并返回公司 / 网站 / 邮箱; C+ 额外给电话 / 联系人 / 意向评分 (深度抓官网)。⚠️ 走【挖客行动池】(1000 Quota/天, 每次行动扣 100 → 每天 10 次), 与 search_leads 的 API 池互不占用。tier: C = 基础 (最多 8 条) / C+ = 增强 (最多 15 条)。数据只返回给调用方, 我们不持有。

Inputs: query (required), tier, limit, country, +1 more.

search_leadsA
Read-onlyIdempotent

挖客: 按产品关键词 + 国家 + 行业检索潜在买家, 返回带评分的线索列表。⚠️ 消耗配额 (每次 1 次)。limit 1-10。数据只返回给调用方, 我们不持有。

Inputs: query (required), limit, country, industry.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 5 tools

    Disambiguation3/5

    search_leads and mine_leads take the same keyword+country+industry inputs and both return lead lists; they differ only in quota pool and whether results persist to a library, which is easy to misselect despite the descriptions calling it out. The three check_* tools (readiness, quota, answerable) also blur together, though each description states a distinct moment of use (onboarding, pre-mine, pre-flight validation).

    Naming Consistency5/5

    All names are snake_case verb_noun: search_leads, mine_leads, check_readiness, check_quota, check_answerable. The check_ prefix is used consistently for the diagnostic family, making the pattern immediately predictable.

    Tool Count3/5

    Five tools is a workable count, but the mix is lopsided: three of five are quota/config checks while only two perform the actual lead-generation work. check_answerable in particular looks like a composite of check_readiness and check_quota, so not every tool clearly earns its place.

    Completeness3/5

    The core search/mine workflow plus quota and health checks are covered, but mine_leads stores results into a 'lead library' that no tool can list, read back, or export, creating a dead end. There is also no per-lead detail or enrichment lookup beyond the tier flag, so agents cannot verify or revisit what was mined.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to query internal business data for insights into customers, revenue, subscriptions, sales, and churn through controlled, read-only MCP tools.
      -
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to query a read-only data surface through typed tools, enforcing caller-specific row access, field masking, and withheld-row disclosure so they can retrieve entitled information without writes or silent data leakage.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to safely query SQL databases through read-only tools for describing entities, reading records, and aggregating records, with view-based access and fail-closed per-user row-level security.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables Claude to answer seller questions from previously saved research using read-only tools for accounts, initiatives, intent signals, key people, knowledge retrieval, and guarded dataset queries. It supports multi-tenant, authenticated access with tenant isolation and enforced read-only security.
      MIT