The agentdata package ships a local stdio MCP server — the same engine and the same command surface as the Python SDK. Install once and your agent (Claude Code, Cursor, Windsurf… any MCP client) queries directly: one tool per domain, call and ask, no command-line syntax to learn.
The call shape has just two layers: op = the command name, params = key/value pairs. Each parameter key is documented in the parameter tables on the domain data pages (first column = the params key); this page covers install, catalog, configuration and errors.
Paste this sentence to your agent and it's installed:
Manual registration is the same pair of coordinates: command uvx, args ["agentdata"] (stdio, local). Equivalent forms: pip install agentdata then run agentdata-mcp (the console script registered in pyproject), or python -m agentdata.mcp; the bare agentdata command with no subcommand serves the server by default, so uvx agentdata works directly.
Key slot: the free plane (every realtime tool in the table below) needs no account and no credential; for the hosted corpus plane set AGENTDATA_API_KEY in the server env to a key created under Console → API keys — the free allowance arrives with the account.
The MCP server is a long-lived process; its configuration is read from env (set in your MCP client's registration entry). Everything below is optional — the free plane works with zero configuration.
| Environment variable | Meaning |
|---|---|
AGENTDATA_BASE_URL |
Hosted API base URL (corpus plane; the official default is fine unless self-hosting/proxying) |
AGENTDATA_API_KEY |
Access credential PAT — the key for the hosted corpus plane and the premium remote catalog (not needed for the free plane) |
AGENTDATA_CACHE_DIR |
Local cache directory (system default when omitted) |
AGENTDATA_MCP_REMOTE |
Override for the premium remote MCP address (default https://mcp.dicaria.com/agentdata/mcp) |
The parallel command-line entry points (Python SDK/CLI) carry equivalent flags --base-url / --api-key / --cache-dir / --no-cache / --execution with the same semantics — see agentdata <domain> <face> --help.
The free plane = agentdata_capabilities + one tool per domain (full name agentdata_<domain>), 369 realtime ops in total, all running on your machine against official sources — keyless, no account. The op catalog is introspected from the server's own dispatch tables (same source as tools/list) and re-syncs with every package release:
| Tool | Ops | Answers |
|---|---|---|
agentdata_capabilities |
— | Capability discovery: every op with its exact parameter names (optional domain/op filter) — call it first when unsure |
agentdata_company |
192 | Legal-entity verification (GLEIF), sanctions/debarment lists, listing & disclosure search |
agentdata_economy |
18 | Country-level denominators: macro indicators, official statistics, reference rates, the trade mirror |
agentdata_esg |
8 | Facility-level emissions (Climate TRACE) and payments to governments (EITI) |
agentdata_healthcare |
34 | Medicines & devices on US/EU/AU official sources: approvals, trials, labeling, shortages |
agentdata_legal |
87 | Sanctions screening, EU competition cases, lobbying disclosure, political finance, case-law search |
agentdata_procurement |
7 | Government contract awards: Brazil PNCP, Colombia SECOP II (buyer × supplier) |
agentdata_research |
10 | Funded projects, scholarly works and citation impact (NSF / NIH / OpenAlex …) |
agentdata_security |
4 | Open-source dependency vulnerabilities (OSV) and the CISA KEV catalog |
agentdata_transportation |
9 | Aircraft/ship/carrier registers, safety lists, port-state controls, ship emissions |
Note: the corpus faces (hosted
search/read) are not in the local MCP tool catalog — corpus queries go through the Python SDK (pip, same account allowance); with a key set, the premium plane's remote tool catalog is decided by the server (next section).
The first column of each face's parameter table on the domain data pages is exactly the params key; the same parameter appears on the command line (SDK/CLI) as a --kebab flag — key = flag minus --, hyphens and dots to underscores (kebab/dot → snake_case, e.g. filter_advanced). Two rules only: op = the face name (verbatim); optional params omitted fall back to defaults. The paired example (one call, both shapes, reproducible on a real machine):
Command line (SDK/CLI):
MCP tools/call (tool agentdata_company):
The example is from the docs quick start — real and reproducible; per-face parameter tables live on the domain data pages (the “Data” nav group).
unknown op '<op>' for domain <domain> with the full Known ops list — call agentdata_capabilities(domain) first.bad_params with a hint (look up the exact names via capabilities, then retry).request_id (closed set below).op and the jurisdiction (issuing authority's scope / GLOBAL).SdkError(code, detail, provider?, status?, retry_after?) — the code set is fixed (closed), so you can branch exhaustively. Two families:
capability_unavailable / rate_limited / thirdparty_rate_limited / thirdparty_upstream_unavailable / upstream_not_found / upstream_rate_limited / upstream_unavailable — retry per Retry-After or later;usage_error / resolve_kind_unknown / op_unknown / corpus-contract 4xx (unauthenticated / forbidden / undeclared_field / bad_value …) — check your arguments and credentials.(The command-line entry points land the two families on process exit codes 1/2; an MCP call only ever sees the structured error object — no exit codes.)
| HTTP | code | Trigger |
|---|---|---|
| 400 | undeclared_field / bad_operator / record_kind_unknown / cursor_invalid / limit_out_of_range / bad_value |
Malformed request shape/value |
| 401 | unauthenticated |
Bearer PAT missing/invalid |
| 403 | forbidden |
PAT not authorized for this data area |
| 404 | unknown_target |
read id outside the collection (not covered ≠ does not exist) |
| 429 | rate_limited |
Over the per-key quota (with Retry-After; retry at that time) |
| 502/503 | thirdparty_upstream_unavailable / thirdparty_rate_limited / capability_unavailable |
Upstream trouble (upstream Retry-After passed through when the upstream rate-limits) |
Note: when an individual upstream is unreachable from your network, the SDK normalizes it to upstream_unavailable with a troubleshooting hint, rather than retrying blindly.
The MCP server is a long-lived process: per-provider/host/group token buckets, circuit-breaker state and concurrency caps persist across tool calls (each CLI command is a process whose state dies with it). Retry pacing is the server's own job, per each upstream's rules; messages are handled sequentially, so no host ever sees a parallel burst. Everything else — caching, output structure — matches the CLI.
When AGENTDATA_API_KEY is set in the server env, startup pulls the tool catalog from the remote MCP (default https://mcp.dicaria.com/agentdata/mcp, override with the AGENTDATA_MCP_REMOTE env) and merges it into the local one: schemas are server-authoritative, so remote additions/changes reach stale local packages without an upgrade; calls to those tools are forwarded verbatim. The free plane's nine realtime tools are unaffected; the catalog contents are whatever the server serves.
params key)