
Northdata Mcp
io.github.p-meier由 GitHub 账号 p-meier 发布v0.1.1更新于 Oct 24, 2026
NorthData API for German company, owner, and financial data — with a built-in credit guard.
概览
本地 MCP 服务器,让助手查询 NorthData 的德国公司、人物与财务数据,并内置额度保护以防高额调用。
- 可以做什么
- 免费查询公司与人物名称联想,以及标准、国家、法律形式和行业代码等参考数据,并查看计费用量与本地额度日志。按行业代码、法律形式、地址、国家、状态和营收或利润区间对公司进行高级搜索。按注册号或名称获取完整公司档案,包括股东、财务、代表和事件。查询人物出生日期与已知职务,并检索股东名单等公开出版物。任何计费请求可先用试运行预览而不消耗额度。
- 适用场景
- 适合需要德国公司、股东或财务调研的场景,例如按规模或行业筛选公司、查看公司档案、追踪人物与股东出版物。若已有 NorthData API 密钥并希望在聊天客户端中直接使用这些数据,值得安装。
- 运行要求
- 以 Python 包形式本地运行(pipx 或 uvx),由 MCP 客户端通过 stdio 启动。需要 NorthData API 密钥,通过环境变量 NORTHDATA_API_KEY 提供。可选环境变量 NORTHDATA_APPROVAL_THRESHOLD、NORTHDATA_ABSOLUTE_MAX 和 NORTHDATA_CREDIT_LOG 用于调整额度保护与日志路径。需要访问 NorthData API 的网络连接。
安装
在 SourceWeft 中
- 打开 控制台中的 Northdata Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
NorthData MCP Server
Connect the NorthData company-data API to Claude Desktop, Claude Code, Cursor, and other AI assistants.
The Model Context Protocol (MCP) standardizes how Large Language Models (LLMs) talk to external services like NorthData. This server exposes NorthData's suggest, search, company, person, publications, reference, and billing endpoints as MCP tools, with a built-in credit guard that prevents accidental high-cost calls. See the full list of tools.
Built on FastMCP v3. Uses stdio transport — the MCP client launches northdata-mcp as a subprocess.
Setup
1. Read the security notes
Before running the server, skim the security considerations. NorthData costs real money per returned company, and MCP lets LLMs spend those credits autonomously. The credit guard mitigates this, but defence in depth matters.
2. Install the server
This pulls in the sibling northdata-cli package automatically and exposes the northdata-mcp console script globally.
Alternative via uv:
3. Get a NorthData API key
Obtain a key at https://www.northdata.com. You'll put it into the MCP client config in the next step.
Optional credit-guard overrides (set as env vars in the MCP client config):
4. Configure your MCP client
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json
(macOS) — adjust the path on Windows / Linux:
Restart Claude Desktop. The NorthData tools will appear in the tool picker.
Claude Code
Cursor
Add to ~/.cursor/mcp.json:
Any MCP client (generic)
Run northdata-mcp as a subprocess and speak MCP over stdio. The environment must contain NORTHDATA_API_KEY.
Tools
Note: this server is pre-1.0, expect minor breaking changes between versions.
Every tool is a thin wrapper around the equivalent northdata-cli command. Tools are tagged free (no credits spent) or billed (consumes NorthData credits). MCP annotations (readOnlyHint, openWorldHint) are set on every tool so well-behaved clients can surface them in the UI.
Free tools
No NorthData credits are consumed by these tools.
suggest— Autocomplete company or person names. Cheap first step before spending a credit oncompanyorperson.billing— Current remote credit usage for the billing period (numberOfRequests,periodStart,periodEnd).reference_overview— API reference data: standards, countries, legal forms, events.reference_segment_codes— Complete segment-code list for a given standard (defaultNACE2025).local_credit_log— Credit log maintained locally by this server: total, per-month, per-entry breakdown.
Billed tools
Every one of these spends NorthData credits. NorthData charges per returned company, not per request. The credit guard enforces a two-tier ceiling on search (see Credit guard). All billed tools accept dry_run=true to build and return the URL without spending credits.
search— Power search. Cost: up tolimitcredits. Filters:segment_codes,segment_standard,legal_forms,address,max_distance_km,countries,status,revenue_min/max,earnings_min/max,limit,pos,approve_high_cost.company— Full company profile (1 credit). Identify byregister(e.g.HRB 123456/Muenchen) or byname+ optionalcity. Toggles:owners,financials,representatives,extras,sheets,events.person— Person lookup (1 credit). Returns birth date and known roles. Takesfirst_name,last_name, optionalcity.publications— Publications lookup (1 credit). Useful for shareholder lists viasource="Hrb".
Credit guard
NorthData bills per returned company. A single search call with limit=100 costs up to 100 credits. This server enforces two tiers:
Every billed tool call is appended to the local credit log (JSON-lines). The local_credit_log tool surfaces it. The log is informational; billing remains the source of truth.
Use dry_run=true on any billed tool to inspect the request URL before spending anything.
Security considerations
Connecting a credit-consuming data source to an LLM carries real costs and real risks. A malicious or malformed prompt can cause an agent to burn credits, leak structured company data into an untrusted chat, or combine NorthData data with other tools in unintended ways.
Recommendations
- Keep the credit guard strict. The defaults (approval 25, absolute max 100) exist to prevent a runaway agent from draining your credits in a single call. Only raise them deliberately.
- Prefer free tools during exploration.
suggest,reference_*, andbillingare free. LLMs should call these before moving tocompany/person/publications. - Use
dry_run=truewhen experimenting with new search parameters or register identifiers. - Review tool calls before approval. Most MCP clients (Claude Desktop, Cursor) ask you to approve each tool call. Leave that setting on.
- Limit scope per session. Launch the server with a trial API key, not your main production key, when giving it to an agent for open-ended work.
- Prompt injection. NorthData responses contain user-generated text (company descriptions, publications) that an adversary could stuff with instructions. Treat tool output as untrusted data, not as trusted instructions to the LLM.
Development
Tests use FastMCP's in-memory transport — no subprocess, no network. The underlying NorthDataClient is injected via a mock factory backed by httpx.MockTransport.
Resources
- Model Context Protocol: https://modelcontextprotocol.io
- FastMCP v3 docs: https://gofastmcp.com
- NorthData API: https://github.com/northdata/api
- Sibling package:
northdata-cli— same tools, plain command-line
License
MIT. See LICENSE.
来源:northdata-mcp/README.md,提交 a9779dd
工具
0版本历史
1- v0.1.1最新Sep 16, 2026
评分
已满足适用检查项的 40%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
请在仓库或注册中心条目中声明许可证。