crawldata-engine
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@crawldata-engine get price.close of Moutai for the last 30 days"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
crawldata-engine
By FindData — powers the 柏讯 (Wire) product line. MIT licensed.
English | 中文
crawldata-engine is a data-stream acquisition and processing engine: a crawl-control plane, an open-data ontology, and an analysis surface in one deployable service.
You declare what you want by concept + entity ("price.close of Moutai", "GDP of China"); the engine resolves concepts to physical columns in each source, ranks candidate sources by quality and reachability, and fetches from the best one (with failover). Around that core it runs the full crawl lifecycle:
Crawl control plane — declarative policies (
crawl_policies) → compiled plans (CrawlPlan) → scheduled k8s Jobs or a lease-queue worker fleet; per-source rate limiting, proxy pools, ban rules and circuit breakers built in.Storage & governance — a governed observation store (
semantic_observations) with date-shape checks, month-bucket (obs_month) indexing, and O(Δ) incremental rollups feeding a storage watermark.Event stream — an at-least-once Redis Streams plane (envelopes with monotonic-ULID idempotency keys) landing realtime pushes with idempotent natural-key writes; cron stays as gapfill reconciliation.
Analysis plane — pluggable
AnalysisBackend(default: rollup-backed aggregates + time series) behind capped, fail-loud API endpoints.Operations panel — a bilingual (EN/中文)
/panelconsole for coverage, scheduling, login stations and stream health, with permission tiers and a ships-dark gate.
Quick start
Zero-setup (Docker) — Postgres + Redis + engine + operations panel:
docker compose -f docker-compose.dev.yaml up --build
# panel: http://localhost:8300/panel MCP: http://localhost:8300/mcpCLI (your own Postgres or the default SQLite):
pip install "crawldata-engine" # +[data] for akshare/yfinance SDKs
crawldata-engine migrate # create the ontology tables
crawldata-engine import-catalog # load the in-code example catalog
# (World Bank wbgapi is key-free)
crawldata-engine serve # MCP server (stdio)The in-code seed catalog works with no workspace and no keys. Providers that
need API keys (POLYGON_API_KEY, EDGAR_IDENTITY, …) or a local datasource
workspace are skipped with a stated reason, never a crash. See CONFIG.md for
the full environment reference and docs/ for datasource integration guides.
Related MCP server: fd-open-data-mcp
Architecture
Datasources (pluggable) Engine layer (this repo)
akshare / yfinance / polygon / concepts + concept_bindings (column -> concept)
EDGAR / World Bank / cn-gov / entities + per-source identifiers
datacommons / your own provider source_rankings (quality x reach x freshness)
│ semantic_observations (governed store)
Catalog loaders: import-catalog, rollups + storage watermark
consume-concepts, propose- crawl: policies -> plans -> k8s Jobs
bindings, seed-entities, or lease-queue worker fleet
generate-schedules stream: Redis Streams + idempotent landing
│ analysis: pluggable backends (aggregates,
Runtime: read() -> cache hit? : time series)
dispatch (ranked + failover) panel: /panel operations console
Search: semantic_search + graph_search + ai_searchEight capabilities (see openspec/changes/add-crawldata-engine/specs/):
open-data-catalog, semantic-layer, entity-identity, source-ranking,
concept-fetch, scheduled-refresh, entity-graph, vector-search.
Install
cd crawldata-engine
uv sync # base install
# full datasource support (akshare, yfinance, edgar, world bank, ...)
uv sync --extra dataThe database path defaults to fd_open_data_mcp/metadata/daas.db (SQLite),
overridable via FD_OPEN_DATA_MCP_DATABASE_URL (Postgres recommended for
production; the Docker quickstart provisions one). FINDDATA_ROOT (optional)
points at a local datasource workspace for providers that need it — the in-code
seed catalog works without it.
Note: before using SEC EDGAR data, set
EDGAR_IDENTITY="your_email@example.com" in the environment.
Quick start
Zero-setup option — bring up Postgres + Redis + the engine (MCP server and
the /panel console on http://localhost:8300/panel) with one command. The
init service runs migrate + import-catalog automatically, loading the
in-code example catalog (World Bank wbgapi is key-free, so fetch works out
of the box; providers that need a local workspace or API keys are skipped with
a reason, never a crash):
docker compose -f docker-compose.dev.yaml up --build
# teardown + reset data: docker compose -f docker-compose.dev.yaml down -vNote: the panel ships dark (no auth) in this dev stack — never expose it
publicly without setting PANEL_TOKEN or LOGTO_* (see SECURITY.md).
Or run the CLI directly against your own Postgres:
# 1. Create the ontology tables
crawldata-engine migrate
# 2. Import catalogs (akshare 673, yfinance 12, cn-gov 11, cn-report 44, edgar 6, ...)
crawldata-engine import-catalog
# or a single provider: crawldata-engine import-catalog akshare
# 3. Consume the 926 indicator_defs as concepts and propose column->concept bindings
crawldata-engine consume-concepts
crawldata-engine propose-bindings
# 4. Seed per-source entity identifiers (stocks for akshare/yfinance, countries for worldbank)
crawldata-engine seed-entities
# 5. Generate refresh schedules from indicator_defs.frequency
crawldata-engine generate-schedules
# 6. Read by concept + entity (read-through cache + ranked dispatch + failover)
crawldata-engine read --concept-id 234 --entity-type stock --entity-id 1 --date 2024-07-26MCP server
crawldata-engine serve # FastMCP, stdio transport71 tools, registered across six files (49 @mcp.tool in server.py + 22 from the five register_* modules; count verified 2026-10-06 against the live instance's tools/list = 71):
Group | Tools |
Catalog/bindings ( |
|
Entity identity ( |
|
Entity graph ( |
|
Vector/semantic search ( |
|
Ranking/read ( |
|
Search scopes ( |
|
Refresh schedules/indexes ( |
|
Crawl policy control plane ( |
|
Crawl platform control ( |
|
Crawl visibility ( |
|
Coverage gaps ( |
|
Authenticated-crawling identity pool ( |
|
Catalog expansion and the read boundary
The list_concepts family (MCP tools and the list-concepts CLI) also returns
entries from the unified indicator registry (registry_entries table) that
passed the naming-quality gate (verified), covering world_bank / gta_panel /
china_city_panel / the fd_open_data mirror; yearbook's numeric-placeholder
entries stay unverified and out of the catalog.
Merge semantics: local concepts (
conceptstable) first, registry entries after (ordered by domain, semantic_code); entries whose semantic_code duplicates a local concept code are deduped (local row wins). Registry rows carrynative_codeandsource_dbidentity fields, so retrieval works with either the native or the semantic code (thequeryparameter substring-matches code/name). Without that table in the local DB, the tool falls back to the pure local catalog — behavior unchanged.Read boundary (important): this server does not read observation data for those external-registry indicators — forwarding reads through business-mcp is a later change; in this version
read/fetchon registry indicators does not return external-source data. This expansion affects the indicator dictionary only, not any data-reading capability.
Full-registry enumeration (list_registry_entries, v0.5.38)
The parallel tiered-browsing channel (ADR-0002): pages through ALL
registered entries — verified and not — ordered by (source_db, native_code),
each row carrying the authoritative verified flag, with an optional
status filter (verified | registered; default all). The catalog/search/
read verified gate is untouched: list_concepts, ai_search and the read
paths still exclude unverified entries. Consumers: the Wire public catalog
mirror re-keyed its ids to source_db:native_code from this feed. An optional
scope filters rows by the indicator-scope rules (source_db / domain /
semantic_code dimensions); unscoped calls return a plain list (the Wire sync
contract).
Data sources
The dispatcher run_upstream() routes by source name to adapters. The table
below is ordered by verified reachability, not self-reported status.
Verified online ✅
Source | Notes |
akshare | A-share stocks/funds/financials |
yfinance | Yahoo Finance global equities |
cn-report | Chinese financial reports (44 tools, see fd-cn-report) |
edgar | SEC EDGAR filings (needs |
wbgapi | World Bank data API |
cnstats | National Bureau of Statistics data |
ckan | CKAN catalog data |
nbs-gdp | NBS GDP data |
datacommons | Google Data Commons (needs |
polygon | Polygon.io US equities (external package fd-polygon) |
edinet | Japan EDINET filings |
dartlab | Korea DARTLab disclosures |
The
polygonanddatacommonsrunners live in externalfd-*packages, lazily loaded via the manifest'sfetch.module—crawldata-enginedoes not depend onpolygon-api-client/requestsunless a fetch actually happens.
Stub adapters ⚠️ (sample data only, no network)
Source | Status |
cisa-industry | stub — static sample rows |
amac-fund | stub |
shfe-metal-futures | stub |
agriculture | stub (DCE) |
cme-agricultural-futures | stub (CME) |
chemicals | stub |
electronics | stub |
nonferrous | stub |
flowers-kifc | stub |
fin_platforms | stub (Wind) |
sac-securities | stub |
These adapters expose run_<source>() entries and manifest registrations, so
list-sources self-reports "✅ Full support" — but they return synthetic
sample rows, not real exchange or association data. Read the adapter file
before depending on any of them.
Read-only catalogs
Source | Status |
cn-gov | manifest registration only (11 ministry catalogs) |
world | CKAN + Chinese NBS statistical catalogs |
Crawl control center (panel + reconciler)
A policy describes what to crawl: concept × entity scope × date range ×
frequency × mode. CrawlPolicy objects are created on the panel, compiled into
CrawlPlans by the reconciler, and executed by scraw-fd-open-data-mcp writing
into semantic_observations.
# Start the control panel (default http://0.0.0.0:8000)
FD_OPEN_DATA_MCP_DATABASE_URL=<db url> crawldata-engine panel
# Run the reconciler once (due policies -> launch; close stale runs)
python -m fd_open_data_mcp.refresh.reconcilerEnvironment variables:
PANEL_TOKEN— when set,/panel/*requires it (headerX-Panel-Token,?token=, or cookie).POLICY_MAX_FETCHES(default50000) — plan-size guardrail; a due policy whose fetch estimate exceeds it is rejected (recorded as a failed run) unless the policy setsforce.RECONCILER_LAUNCHER—scrapyd(default) ork8s(K8sJobLauncher).SCRAPYD_URL/SCRAW_PLAN_DIR(scrapyd launcher);SCRAW_K8S_NAMESPACE/SCRAW_K8s_IMAGE/SCRAW_K8S_DATABASE_URL/SCRAW_K8S_REDIS_URL(k8s launcher).FD_PROXY_FORWARDER— empty for local dev (the injection layer returns a direct sentinel → direct egress); cluster crawling uses the standalonefd-proxy-serviceforwarder for proxy selection. The legacy varsFD_PROXY_POOL/FD_EGRESS_MODEare no longer read.
Tests
uv run --with pytest pytest -qDesign notes / v1 limitations
Propose-confirm flow: column→concept bindings carry
confidence+provenance; below-threshold bindings stay out of dispatch (into the review queue). One real fetch promotes a binding tosample-confirmed.Ranking is per
(source × concept), self-tuning fromfetch_log(bounded — one failure never removes a source).Conflict policy: one cached value per
(concept, entity, date)with itssource_used; cross-source values are never merged.LLM providers power semantic enrichment / cross-language concept mapping. v1 uses rule tables +
semantic_typehints.
Full specifications: openspec/changes/add-crawldata-engine/.
Proxy pool & circuit breaker
The fetch stack rotates IPs through a proxy pool to avoid source bans, with
per-(source, real_source×proxy_ip) circuit breakers and ban rules. Pool state is
a plain table (proxies), so any deployment that keeps the table fresh works;
FD_PROXY_POOL / FD_PROXY_FORWARDER select the pool implementation.
Key files: fd_open_data_mcp/proxy/ (selector, breaker, ban rules, injection);
real-source failover in fd_open_data_mcp/fetch/dispatch.py.
Standard real-source names
eastmoney— Eastmoney (A-share primary, via akshare)tencent— Tencent Finance (A-share failover)sina— Sina Finance (A-share alternative)yahoo_finance— Yahoo Finance (global markets, via yfinance)
Libraries (akshare, yfinance) call several real sources underneath; the
breaker tracks health per real source, not per library, enabling smart
failover.
LLM configuration (PDF report extraction)
fd-cn-report uses an LLM to extract financial indicators from annual-report
PDFs. The current provider is DeepSeek on Ark (see the
fd-cn-report README):
# crawldata-engine/.env
LLM_BASE_URL=…/api/plan/v1 # Ark endpoint
LLM_API_KEY=… # Ark key
LLM_MODEL=deepseek-v4-flashLLM_API_KEY and OPENAI_API_KEY (legacy) are both accepted;
LLM_API_KEY wins when both are set.
Images
docker build -t crawldata-engine . produces the runtime image (the compose
quickstart builds it locally). CI (.github/workflows/image.yml) builds and
pushes per-commit sha-<short> + rolling main tags to the registry configured
in repository secrets; pin the sha tag in deployment manifests for immutable
rollouts.
License
MIT
Available Tools
72 toolsadd_entityC
Add a new entity to the registry.
Inputs: code (required), entity_type (required), name_en, name_zh, +1 more. Returns: object
add_entity_identifierCIdempotent
Upsert a per-source entity identifier.
Inputs: source (required), entity_id (required), identifier (required), entity_type (required). Returns: object
add_relationshipC
Add a new relationship between two entities.
Inputs: source_code (required), target_code (required), relation_type (required), source_entity_type (required), +4 more. Returns: object
ai_searchAIdempotent
Default search entry point — call this for fuzzy/natural-language discovery. Superset of semantic_search/semantic_search_entities/semantic_search_unified (concepts + entities + cached values); do not call those in parallel with this.
Inputs: query (required), limit, scope, value_date, +2 more. Returns: object
auth_eventsARead-onlyIdempotent
Identity event stream (crawl_identity_events), newest first: the login/probe/lease audit trail with the identity (source + account alias) attached. Same projection the Console auth panel renders.
Inputs: limit, source. Returns: result
auth_launch_loginA
Launch a login station for an identity (login-station-console).
Registers/resets the identity as login_required with an egress proxy
(auto-assigned, or the operator's explicit proxy:<id>), then
launches the station (a headful-browser Job + the panel-gated noVNC
observation channel). The login itself happens inside the station: the
operator completes slider/captcha in the panel's embedded view at
vnc_url (RELATIVE — open it through the panel with your own
credential; no token is embedded and the station is reachable only
through the panel). Station status then advances
launching -> waiting_operator -> completed; see auth_status.
Inputs: source (required), account_alias (required), automation, egress_ref. Returns: object
auth_request_loginA
Register or reset an identity as login_required (the 需登录队列).
Only writes crawl_identities + a note identity_event — the
login itself happens on the login site (headful, via the observation
channel); this tool never executes it. An existing identity is reset
(status -> login_required, lease cleared); a new one is registered
with the given automation level (auto | assisted).
Inputs: source (required), account_alias (required), automation. Returns: object
auth_statusBIdempotent
Authenticated-crawling identity-pool overview.
Per source: identity count, the five-state status distribution
(login_required / active / cooldown / banned / retired) and the
currently-leased count; plus pool-level totals and the in-flight
login-station count (stations.active — launching / waiting for
operator; login-station-console). With source: also the detail
rows for that source's identities (account, status, automation, last
login/success, zero-run streak, lease view) — an unknown source
returns zero totals and empty rows, not an error. Read-only.
Inputs: source. Returns: object
confirm_bindingBIdempotent
Confirm a binding in the review queue (provenance -> manual).
Inputs: binding_id (required). Returns: object
consume_conceptsCIdempotent
Seed concept families + variables from the protocol vocabulary.
Inputs: no named parameters. Returns: object
coverage_reportCRead-onlyIdempotent
Crawl-coverage gap inventory (read-only).
Inputs: detail, entity_type. Returns: object
crawl_statusARead-onlyIdempotent
Return a structured snapshot of crawl state (on-demand visibility).
Answers "what is the scraw doing / what will it crawl" without a manual DB query. Datasource-centric, matching the daily digest. Read-only.
Inputs: hours, run_limit. Returns: object
crossborder_merchant_statusBRead-onlyIdempotent
Report merchant-authorization status for a cross-border platform connector.
The inner-ring data channel (store operations, platform bestsellers,
after-sales reviews) is merchant-authorization-gated BY DESIGN: the
connector reads platform OFFICIAL APIs only, with the merchant's explicit
store authorization; scraping is out of contract (triage discipline:
never reverse-engineer). Until a merchant completes authorization the
tool answers with a structured unavailable (unauthorized) response —
never an error object and never a silent empty list, so agents can report
「不可得(未授权)」 verbatim.
Authorized deployments register merchant grants via the
FD_CROSSBORDER_MERCHANT_AUTH_JSON env ({"": {"authorized":
true, "merchant_id": "...", "scopes": [...]}}); the same response shape
then flips to authorized with the granted scopes.
Inputs: platform. Returns: object
data_statsARead-onlyIdempotent
Observation coverage: a fast aggregate summary, or per-concept detail.
Default (no arguments): an aggregate summary — total_concepts
(catalog size), covered_concepts (routable and crawled, the same
figure coverage_report reports), concepts_with_observations
(raw distinct concepts holding rows), total_stored_rows,
gap_concepts / stale_concepts, and a per-entity-type rollup —
plus a stores section from the latest data census (local master
exact + each shard's catalog-based estimate, chunk count, data
time-range end). total_stored_rows counts stored ROWS: sources
coexist per point, so two sources on one point count twice; the
per-concept listing below counts distinct observation points instead.
The per-concept listing (point count, latest date, distinct sources,
most recent fetch) is returned only when narrowed — pass concept_id
or entity_type for a filtered listing, or detail=True for the
unfiltered one. That listing sweeps the observations table and is
deliberately not the default.
Read-only: census rows are READ, never collected (refresh via the panel
action or the census CLI). The same data powers the panel's
/panel/data page.
Inputs: detail, concept_id, entity_type. Returns: object
enumerate_wbgapi_indicatorsBIdempotent
Enumerate all WDI indicators into columns + concepts + bindings (idempotent).
Inputs: database. Returns: object
fetchB
Force a fetch for one (concept, entity, date), bypassing cache freshness.
Inputs: date (required), entity_id (required), concept_id (required), entity_type (required). Returns: object
generate_refresh_schedulesBIdempotent
Generate cron schedules for concepts from their indicator_defs.frequency.
Inputs: no named parameters. Returns: object
get_entityARead-onlyIdempotent
Look up one entity by exact type+code (ticker AAPL, country CN). Use when the code is known; do not use search tools for this.
Inputs: code (required), entity_type (required). Returns: result
graph_searchCRead-onlyIdempotent
Perform graph-based entity relationship queries using NetworkX.
Inputs: algorithm (required), start_entity_code (required), max_depth, end_entity_code, +1 more. Returns: object
import_catalogBIdempotent
Import one (by name) or all fd-* provider registries into the catalog.
Inputs: provider. Returns: object
import_crosswalksAIdempotent
Ingest the shipped crosswalk registry (crosswalks/*.yaml) as mappings.
Inputs: no named parameters. Returns: object
list_bindingsBRead-onlyIdempotent
List column->concept bindings (optionally filtered by concept code).
Inputs: concept_code. Returns: result
list_cnreport_rulesCRead-onlyIdempotent
Browse cn-report's extraction rules (llm_rules + script_rules).
Inputs: kind, limit, module, indicator, +1 more. Returns: object
list_concept_familiesARead-onlyIdempotent
List the concept families (the curated semantic vocabulary) + variable counts.
Paginated with the same limit (1..1000) / offset semantics as
list_concepts, ordered by family code.
Inputs: limit, offset. Returns: result
list_concept_mappingsARead-onlyIdempotent
List concept mappings forward (by Variable) or in reverse (by external term).
Inputs: term, concept_id, vocabulary. Returns: result
list_conceptsARead-onlyIdempotent
List concepts (Variables) with their concept family; optionally filtered.
Paginated: rows are ordered by (entity_type, code, id) and a page returns at
most limit rows (clamped to 1000). Page with increasing offset until
a page comes back shorter than limit — that enumerates the full catalog
even when one entity type exceeds the per-call cap.
The catalog also serves verified entries of the unified indicator registry
(world_bank / gta_panel / china_city_panel / fd_open_data mirror sources).
Registry rows are appended after the native rows, ordered by
(domain, semantic_code); they carry additive native_code and
source_db fields, so an entry is findable by either identifier, and a
read_via hint naming the domain tool that serves its values. Reading
a registry-only indicator: pass its semantic_code (or native_code) as
concept_id to read / read_series — the read routes
transparently through the indicator's source-database read channel.
Entries whose semantic_code duplicates a non-deprecated native concept
code are deduped (native row wins); deprecated legacy rows never shadow a
verified entry.
Inputs: limit, query, offset, entity_type, +1 more. Returns: result
list_entitiesCRead-onlyIdempotent
List entities of a specific type.
Inputs: entity_type (required), limit, offset. Returns: result
list_registry_entriesAIdempotent
Enumerate the WHOLE unified indicator registry — verified AND not.
The registration-surface enumeration channel (tiered browsing sync, e.g.
the public indicator catalog): every registered entry, each carrying its
authoritative verified flag (true = directly readable caliber,
false = registered/on-demand caliber). This is deliberately PARALLEL to
the catalog: list_concepts / ai_search / read keep their verified
gate untouched — unverified entries stay out of the catalog, search and
every read channel, and this tool does not change that.
Paginated like list_concepts: rows ordered by (source_db, native_code),
limit clamped to 1..1000; page with increasing offset until a page
comes back shorter than limit — that enumerates the full registry
(57k+ entries at ~1000/page).
Inputs: limit, scope, offset, status. Returns: result
list_relationshipsCRead-onlyIdempotent
List relationships for an entity.
Inputs: code (required), entity_type (required), direction. Returns: result
list_schedulesBRead-onlyIdempotent
List all refresh schedules.
Inputs: no named parameters. Returns: result
plan_crawlAIdempotent
Plan a concept crawl -> CrawlPlan artifact (concepts in, methods out).
Compiles desired concepts + entity scope + date range into a ranked, failover-aware CrawlPlan. Does not fetch. Unroutable concepts (no confirmed binding) and unmapped entities (no per-source identifier) are reported, not silently dropped.
If since_last is True, the plan's date_range.start is derived from the minimum
per-concept max(date) already in semantic_observations (incremental crawl).
Either start or since_last must be provided. If both, start wins.
end defaults to today if not provided.
mode is per_date (one request per concept x entity x date) or series
(one request per concept x entity against a bulk_history endpoint; the pipeline
explodes the returned frame). Series mode refuses concepts bound only to non-bulk
functions.
Inputs: concept_ids (required), entity_type (required), end, mode, +4 more. Returns: object
platform_cancel_pendingA
Cancel a pending platform run (pending_runs row). CAS: only rows still pending/claimed can be cancelled; terminal rows return an explanation, unknown ids {"status": "not_found"}.
Inputs: pending_id (required). Returns: object
platform_cancel_runA
Request cancellation of a RUNNING platform run (sets the cancel_requested flag; the runner terminates as cancelled at its next checkpoint). Terminal runs return an explanation, unknown ids {"status": "not_found"}.
Inputs: run_id (required). Returns: object
platform_runsARead-onlyIdempotent
Platform run history from crawl_runs (all member sites), newest
first, with the pending_runs trigger lineage (requested_by) when the
run was started from the control plane.
Inputs: limit, source. Returns: result
platform_sourcesARead-onlyIdempotent
Crawl-platform source inventory with health and stall hints.
Every source mirrored into crawl_sources (content-repo manifests +
federation members), each with: site, schedule (null = registered but
not lit), enabled, the latest crawl_runs status/time/rows_written,
the active pending-run count, and a stalled hint (a lit, enabled
source with no run record for >7 days). Read-only.
Inputs: site. Returns: object
platform_triggerA
Trigger an immediate platform run for source (insert pending_runs).
Same validation and guardrails as the panel's trigger button: the source must be registered in crawl_sources and enabled, and single- flight applies (refused while an open run exists). Returns {"status": "triggered", "pending_id": ...} or a clear refusal text.
Inputs: source (required), limit. Returns: object
policy_createC
Create a crawl policy.
Inputs: name (required), concept_ids (required), entity_type (required), mode, +11 more. Returns: object
policy_deleteADestructive
Delete a crawl policy and all its runs (cascade).
Inputs: policy_id (required). Returns: object
policy_disableCIdempotent
Disable a crawl policy.
Inputs: policy_id (required). Returns: object
policy_enableCIdempotent
Enable a crawl policy.
Inputs: policy_id (required). Returns: object
policy_estimateCIdempotent
Estimate the fetch count for a policy payload (used by the panel editor).
Returns {"estimate": int, "unroutable": [...], "unmapped": [...], "policy_max_fetches": int}.
Inputs: concept_ids (required), entity_type (required), mode, frequency, +3 more. Returns: object
policy_getBRead-onlyIdempotent
Get a single crawl policy by ID.
Inputs: policy_id (required). Returns: object
policy_listCRead-onlyIdempotent
List crawl policies. Optional filter by enabled status.
Inputs: enabled. Returns: result
policy_runsBRead-onlyIdempotent
List policy runs. Optional filters: policy_id, status (running/success/failed).
Inputs: limit, status, policy_id. Returns: result
policy_trigger_nowB
Trigger a crawl for the policy immediately.
Bypasses the cron schedule but still enforces single-flight (skips if an open run exists) and the plan-size guardrail (refuses if estimate exceeds POLICY_MAX_FETCHES unless force=true).
Inputs: policy_id (required). Returns: object
policy_updateCIdempotent
Update a crawl policy. Only provided fields are changed.
Inputs: policy_id (required), mode, name, force, +12 more. Returns: object
propose_bindingsAIdempotent
Propose column->concept bindings (propose-and-confirm; below-threshold withheld).
Inputs: no named parameters. Returns: object
rank_sourcesCIdempotent
Rank candidate sources for a concept (best-first) with composite scores.
Inputs: concept_id (required), requested_date. Returns: result
readAIdempotent
Read a concept for an entity over dates (read-through cache + ranked dispatch).
Local concepts: concept_id is the numeric id; entity_type/entity_id/dates
are required; source pins the read (and any dispatch) to one source;
all_sources returns every held row per date, best-ranked first, without
dispatching — for cross-source comparison.
Registry-only indicators (catalog rows with id=None): pass the
semantic_code (or native_code) as concept_id — the read is routed
transparently through the indicator's source-database read channel and
returns the same row shape; entity carries the region/country/city
name when the channel needs one (world_bank requires it). Provenance
travels in source_used.
scope (optional): restrict this call to a named retrieval scope — an
indicator outside the scope returns an explicit out-of-scope response;
the reserved name unscoped forces the full corpus.
Inputs: concept_id (required), dates, scope, entity, +4 more. Returns: result
read_seriesAIdempotent
Read a series for one concept x entity over [start, end].
Local concepts (numeric concept_id): serves the stored cache only,
highest-ranked source per point, ordered by date. It NEVER dispatches
upstream — an empty window is a coverage fact reported as such, not a
failure. Use read for a point read (cache + live dispatch) or
fetch to force a refresh of one point.
Registry-only indicators (semantic_code / native_code as concept_id):
the window is routed transparently through the indicator's source
database read channel (same response shape; entity carries the
region/country/city when the channel needs one). Provenance travels in
each point's source_used.
scope (optional): restrict this call to a named retrieval scope —
out-of-scope indicators return an explicit out-of-scope response; the
reserved name unscoped forces the full corpus.
Inputs: concept_id (required), end, scope, start, +4 more. Returns: object
record_concept_mappingBIdempotent
Assert that a Variable maps to an external vocabulary term.
Inputs: term (required), relation (required), concept_id (required), vocabulary (required), +3 more. Returns: object
re_embed_conceptCIdempotent
Re-embed a single concept.
Inputs: concept_id (required). Returns: object
register_datasourceBIdempotent
Register a datasource manifest into the ontology database.
Inputs: manifest_path (required). Returns: object
register_discoveredAIdempotent
Auto-discover + register manifests from entry points + a datasources/ dir.
Inputs: no named parameters. Returns: object
resolve_entityARead-onlyIdempotent
Resolve an entity <-> per-source identifier, in either direction.
Forward (entity -> identifier), the default: resolve_entity(entity_type="country", entity_id=1, source="worldbank") -> {"identifier": "CN"} (or null when that source has no mapping)
Reverse (external anchor -> entity), pass identifier instead of the
entity: wikidata (QID, e.g. Q148) and datacommons (DCID, e.g.
country/CHN) are the anchor sources.
resolve_entity(source="wikidata", identifier="Q148")
-> {"match": {"entity_type": "country", "code": "CN", ...}}
An identifier no entity carries returns {"match": null}, not an error.
Inputs: source, entity_id, identifier, entity_type. Returns: object
review_bindingsBRead-onlyIdempotent
Return the below-threshold review queue (propose-and-confirm).
Inputs: no named parameters. Returns: result
run_scheduleB
Run one refresh schedule now (ranked-failover dispatch + execution record).
Inputs: schedule_id (required). Returns: object
scope_bind_callerAIdempotent
Bind a caller's default scope (applies when the caller passes no
explicit scope; an explicit parameter — or the reserved unscoped —
always wins). caller_key is opaque: the X-FD-Caller request
header value for HTTP callers, or the FD_MCP_CALLER_KEY env identity for
integrations.
Inputs: caller_key (required), scope_name (required). Returns: object
scope_createA
Create a named retrieval scope.
rules: allow-lists over the registry dimensions —
{source_dbs: [...], domains: [...], semantic_codes: [...], native_codes: [...]} (every list optional; a scope with no allow-lists
is rejected). Allow-list values are validated against the live
registry_entries/concepts tables: a scope matching nothing known is
rejected; the number of matched indicators is returned. unscoped is
reserved. Scope is a precision/cost tool, not a permission wall.
Inputs: name (required), rules (required), description. Returns: object
scope_deleteBDestructive
Delete a scope (its caller default bindings go with it; stats remain).
Inputs: name (required). Returns: object
scope_listARead-onlyIdempotent
List every retrieval scope with its allow-list rules.
Inputs: no named parameters. Returns: result
scope_list_bindingsBRead-onlyIdempotent
List caller default-scope bindings (optionally one caller's).
Inputs: caller_key. Returns: result
scope_statsARead-onlyIdempotent
Per-day hit counters for one scope (calls, results_returned), most recent first — the cost-savings evidence (spec「Scope effectiveness is observable」). An unknown scope is an explicit error naming it.
Inputs: scope_name (required), days. Returns: object
scope_unbind_callerC
Drop a caller's default scope binding.
Inputs: caller_key (required). Returns: object
scope_updateBIdempotent
Update a scope's rules and/or description (same validation as create).
Inputs: name (required), rules, description. Returns: object
seed_entity_identifiersCIdempotent
Seed akshare/yfinance (stocks) and worldbank (countries) identifier mappings.
Inputs: no named parameters. Returns: object
semantic_searchBIdempotent
Search concepts semantically using vector embeddings.
Returns {cached, count, results}: results are the matching concepts with
scores, ordered by similarity; cached=true marks a TTL-cache hit. Pass
scope to constrain retrieval to a named scope (see scope_list); a
scoped response names the scope that governed it.
Inputs: query (required), limit, scope, frequency, +1 more. Returns: object
semantic_search_entitiesCRead-onlyIdempotent
Search entities semantically using vector embeddings.
Inputs: query (required), limit, entity_type. Returns: object
semantic_search_unifiedCIdempotent
Unified semantic search across both entities and concepts.
Inputs: query (required), limit, scope, entity_type. Returns: object
update_bindingBIdempotent
Update concept binding confidence/provenance/review status.
Inputs: column_id (required), entity_type (required), concept_code (required), reviewed, +2 more. Returns: object
update_conceptCIdempotent
Update concept metadata (name, verification status).
Inputs: entity_type (required), concept_code (required), name_en, name_zh, +1 more. Returns: object
update_entityBIdempotent
Update or create an entity in the ontology database.
This is an admin tool for updating entity metadata after initial registration.
Inputs: code (required), entity_type (required), name_en, name_zh, +1 more. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 72 tools
The set spans multiple subsystems and several tools overlap: ai_search is a superset of the semantic_search variants; read/read_series/fetch all retrieve values; policy_trigger_now/platform_trigger/run_schedule all trigger crawls. Descriptions usually disambiguate, so boundaries are learnable, but the 72-tool surface makes selection error-prone.
All names are snake_case, but conventions split by family: policy_create/scope_create/auth_status use noun_verb while list_concepts/update_entity/read use verb_noun or bare verbs. Names remain readable but are not predictable across the full set.
72 tools far exceeds a well-scoped agent-facing surface, even across many subdomains. Several clusters (semantic_search family, multiple status/read tools, multiple trigger tools) feel like separate endpoints rather than a curated set.
Core read/search/ontology workflows are present, and the crawl platform covers policy, run, and auth operations. But there are notable gaps: no delete for entities/concepts/relationships, no create_concept, no complete schedule lifecycle, and limited run-detail operations.
Related MCP Connectors
Agent-native security, trust, reliability, data and procurement tools for AI workflows.
Structured, cited, real-world data from 300+ sources and the open web for your AI agents.
Normalized official data with provenance, aggregations, insights, free samples and agent access.
Normalized official data with provenance, aggregations, insights, free samples and agent access.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to search, explore data lineage, understand business context, and generate SQL queries across an organization's data ecosystem.Apache 2.0
- AlicenseNot gradedqualityBmaintenanceProvides a semantic concept layer over financial/economic data from multiple sources, enabling users to query data by concept and entity with automatic source selection and failover.312 PyPIMIT
- AlicenseNot gradedqualityCmaintenanceEnables agents to query a single-source ontology of types, entities, statements, evidence, and controlled vocabulary, including bitemporal "as of" and "as recorded" fact lookups. Supports writing by letting agents propose candidate statements while keeping approval, review transitions, and authoritative reasoning restricted to approved facts.MIT
- FlicenseNot gradedqualityAmaintenanceEnables users and AI agents to turn natural-language factual queries into recommended authoritative data sources and guided navigation paths for retrieving original datasets, APIs, and documents with verifiable evidence chains.-