Logo vun Data360 MCP

Data360 MCP

Organisatioun
worldbank

Model Context Protocol (MCP) server that gives LLM agents and chatbots direct access to the World Bank's Data360 Platform. Search, validate, and retrieve development indicators—from GDP and poverty to gender equality and climate—with structured metadata and time-series data, without hallucinating values.

Editeurworldbank
Repositorydata360-mcp
SproochPython
Forks
8
Stären
42
Disponibel Tools
0
Transporttypstdio
Linken
  • Tools mat KI-Workflows verbannen

    Data360 MCP stellt MCP-Funktioune bereit, déi vu kompatibele KI-Clienten a KI-Agente kënne benotzt ginn.

  • 0 disponibel Tools

    Kuckt Iech déi opruffbar Aktiounen hei drënner un, mat Nimm a Beschreiwungen, wa se vum Server geliwwert ginn.

  • Konfiguratioun fir ze kopéieren

    Benotzt d'Installatiounsbeispiller, fir dëse Server an Ärem bevorzugte MCP-Client ze konfiguréieren.

  • Indicateure fir Open Source

    42 Stären an 8 Forks aus dem verlinkte Repository.

Data360 MCP Server

A Model Context Protocol (MCP) server that gives LLM agents direct access to the World Bank's Data360 Platform. Agents can search, validate, and retrieve development indicators—covering topics from GDP and poverty to gender equality and climate—without hallucinating data values.

Audience: Developers building AI agents and chatbots that need reliable, structured access to World Bank development data.


Key Features

  • Smart indicator discovery — search across hundreds of indicators with enriched metadata and country coverage checks
  • Rich metadata retrieval — fetch methodology, definitions, limitations, and statistical concepts on demand
  • Reliable time-series data — query historical data points with filters for country, time period, sex, age, and urbanization
  • LLM-optimized resources — built-in system prompts, codelists, and chain-of-thought guidance for chatbot integration
  • Agent-friendly design — significant "glue" logic makes the raw Data360 API composable and safe for LLM tool use

Installation & Version Pinning

Releases follow Semantic Versioning; every release publishes a vX.Y.Z git tag plus a corresponding GitHub Release. Minor releases keep backward-compatible API contracts, so pin a major/minor to lock behavior.

Install the Python server from PyPI and pin a known-good release:

bash
pip install data360-mcp==0.1.3

Roll back to an earlier verified release by installing any prior version listed on the Releases page:

bash
pip install data360-mcp==<previous-version>

The @data360/* npm UI packages are published on every release under the same version number; pin them the same way:

bash
npm install @data360/mcp-ui@X.Y.Z

See DEVELOPMENT.md for how releases are cut.


Prerequisites

  • Python 3.11+
  • uv (recommended) — or pip

Installation

With uv (recommended):

bash
git clone https://github.com/worldbank/data360-mcp.git
cd data360-mcp
uv sync
# LangChain / LangGraph client + examples + repo-root shim (data360_mcp_service.py):
uv sync --extra agent --group dev

With pip:

bash
git clone https://github.com/worldbank/data360-mcp.git
cd data360-mcp
pip install -e .

Configuration

Copy the example environment file and adjust as needed:

bash
cp .env.example .env
VariableDescriptionDefault
DATA360_API_BASE_URLBase URL for the World Bank Data360 APIhttps://data360api.worldbank.org
MCP_PORTPort for the MCP server8000
MCP_TRANSPORTTransport protocol (http or sse)http
MCP_CHARTS_API_URLOptional URL for an external chart rendering API(none)
DATA360_READ_TIMEOUTSeconds to wait for a Data360 API response (connect/write/pool have their own knobs)8
DATA360_RETRY_MAX_ATTEMPTSAttempts for retry-safe requests (idempotent methods and read-only Data360 POSTs)3
DATA360_RETRY_BUDGET_SECONDSWall-clock ceiling for retrying one request; set <= DATA360_READ_TIMEOUT to never retry a timeout16
DATA360_DEGRADATION_COOLDOWN_SECONDSHow long a stale metadata snapshot is reused before the API is retried30
DATA360_BACKGROUND_READ_TIMEOUTRead timeout for background/bulk calls (dimension catalog, dataset catalogue, group hierarchy) on their own client + pool30
DATA360_BACKGROUND_INLINE_WAIT_SECONDSHow long a user request may wait for the dimension catalog before serving raw codes (0 never waits)2

Run the Server

bash
uv run poe serve
# Server starts at http://localhost:8000/mcp

Or with custom port/transport:

bash
uv run poe serve --port 8021 --transport sse
# SSE endpoint: http://localhost:8021/sse

Connect Your Agent

SettingValue
Transporthttp (default) or sse
URL (http)http://localhost:8000/mcp
URL (sse)http://localhost:8021/sse
Docker / externalReplace localhost with host.docker.internal

Try the Demo

bash
uv run scripts/llm_mcp_demo.py
# DEBUG mode:
DEBUG=true uv run scripts/llm_mcp_demo.py

Minimal external agent (one-shot): examples/agents/langchain-minimal/README.md — copy-paste run_once.py that loads data360://system-prompt and tools, then calls the model.

Multi-agent / LangGraph: examples/agents/langchain-graph/README.md — register Data360 as a node (create_data360_langgraph_node or gated create_data360_gated_langgraph_node) alongside supervisors and other specialists. Client library (publishable on PyPI): packages/data360-mcp-agent/ (pip install data360-mcp-agent). The repo-root data360_mcp_service.py shim re-exports data360_mcp_agent for older import paths.


MCP Tools

ToolDescription
data360_search_indicatorsSearch indicators with enriched metadata. Pass required_country for server-side coverage check. Returns covers_country, latest_data, dimensions.
data360_get_dataFetch data points with filters (country, time period, SEX, AGE, etc.).
data360_get_metadataGet indicator metadata. Use select_fields for specific fields.
data360_get_disaggregationCheck available filter values (countries, years, dimensions) for an indicator.
data360_find_codelist_valueResolve human-readable names to codes (e.g., "Kenya" → KEN, "female" → F).
data360_list_indicatorsList all indicators for a given database.

Recommended Agent Workflow

1. Search    → data360_search_indicators(query, required_country="Kenya")
               Returns: covers_country, latest_data, dimensions per indicator

2. Get Data  → data360_get_data(database_id, indicator_id, filters)
               Use REF_AREA code from search; add time period filters

MCP Resources

ResourceDescription
data360://system-promptChain-of-thought guidance for chatbot integration
data360://databasesAvailable databases (WB_WDI, WB_SSGD, etc.)
data360://codelistsCodelist reference (REF_AREA, SEX, AGE, etc.)
data360://metadata-fieldsField mapping for smart question routing
data360://data-filtersAvailable filters and usage guidance
data360://search-usageSearch examples and best practices

For chatbot integration, copy data360://system-prompt into your system prompt. It includes chain-of-thought reasoning templates and filter guidance.


Documentation

Project site: worldbank.github.io/data360-mcp — landing page with features, tools, and connection details.

A markdown overview lives in docs/overview.md. The site is deployed with GitHub Actions on pushes to main or dev. In the repository Settings → Pages, set Build and deployment source to GitHub Actions (first-time setup).

Preview locally: from the repository root, run python -m http.server --directory docs and open http://127.0.0.1:8000/.

For developer setup, testing, and contribution instructions, see DEVELOPMENT.md.


Contact

AI for Data - Data for AI Team (ai4data@worldbank.org) Development Data Group / Office of the World Bank Group Chief Statistician World Bank Group


License

This project is licensed under the MIT License together with the World Bank IGO Rider. The Rider is purely procedural: it reserves all privileges and immunities enjoyed by the World Bank, without adding restrictions to the MIT permissions. Please review both files before using, distributing or contributing.

See LICENSE and WB-IGO-RIDER.md for the full license texts.


Data360 MCP MCP mat verschiddene KI-Modeller benotzen

TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Soubal Data360 MCP verbonnen ass, kënnt Dir et mat verschiddene KI-Modeller an TypingMind benotzen, amplaz et fir all Modell separat anzeriichten. Dës MCP-Integratioun leeft lokal iwwer den TypingMind-MCP-Connector op Ärem Apparat.

Ariichtungsuleedung fir de lokale Connector ze benotzen

Benotzt dës Optioun, wann den MCP-Server Zougrëff op lokal Fichieren, Appen oder privat Ressourcen op Ärem Computer brauch.

1

D'MCP-Astellungen opmaachen

Gitt an TypingMind op „Astellungen“, „Erweidert Astellungen“, dann op „Model Context Protocol“ a wielt „Connector ariichten“.

  1. Maacht TypingMind an Ärem Browser op.
  2. Klickt op d'Astellungssymbol.
  3. Gitt op „Erweidert Astellungen“.
  4. Maacht d'Sektioun „Model Context Protocol“ op.
  5. Klickt op „Connector ariichten“ a wielt „Dësen Apparat“.
Ariichtungsbildschierm vum TypingMind-MCP-Connector mat „Dësen Apparat“ ausgewielt
2

De Connector-Befeel ausféieren

Wielt „Dësen Apparat“, kopéiert de Befeel aus TypingMind a féiert en am Terminal aus. Loosst de Prozess lafen, wärend Dir MCP benotzt.

  1. Kopéiert den Ariichtungsbefeel, deen TypingMind uweist.
  2. Maacht Terminal op macOS oder Windows Terminal op Windows op.
  3. Pescht de Befeel an a féiert en aus.
  4. Bestätegt d'Installatioun vum Package, wann den Terminal Iech freet, ob Dir weiderfuere wëllt.
  5. Loosst den Terminal an de Prozess doranner lafen, wärend Dir MCP-Tools benotzt.
3

Data360 MCP als Server derbäisetzen

Wann de Connector-Status „Prett“ ass, klickt op „Serveren änneren“ a pescht d'MCP-Serverkonfiguratioun an.

  1. Waart, bis de Connector-Status „Prett“ weist.
  2. Klickt op „Serveren änneren“.
  3. Pescht d'MCP-Serverkonfiguratioun vu Data360 MCP an.
  4. Späichert d'Serverlëscht.
  5. Aktualiséiert, wann Dir kontrolléiere wëllt, ob de Connector nach ëmmer prett ass.
MCP-Astellunge vun TypingMind mat aktivem Server an dem Knäppchen „Serveren änneren“
{
  "mcpServers": {
    "data360-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

D'Verbindung mat verschiddene Modeller benotzen

Späichert d'Serverlëscht, maacht „Plugins“ op an aktivéiert d'MCP-Tools vu Data360 MCP. Wielt dann e belibegen ënnerstëtzte KI-Modell an TypingMind a benotzt d'Tools am Chat oder weist se engem KI-Agent zou.

  1. Maacht d'Säit „Plugins“ an TypingMind op.
  2. Aktivéiert d'MCP-Tools vu Data360 MCP.
  3. Start e Chat a wielt de KI-Modell, deen Dir benotze wëllt.
  4. Benotzt d'MCP-Tools am Chat oder weist se engem KI-Agent zou.
  5. Wiesselt bei Bedarf op en anere KI-Modell, ouni MCP nei ze verbannen.
TypingMind-Chat mat aktivéierte MCP-Tools an engem ausgewielte KI-Modell
Hëlleft Dir mir bei dëser Aufgab mat Data360 MCP?
Data360 MCP
Jo. Ech hunn et gelies.
Dat hunn ech mat Data360 MCP fonnt.

Heefeg gestallte Froen

Fir wat gëtt de MCP-Server Data360 MCP benotzt?

Data360 MCP ass e MCP-Server, deen et kompatibele KI-Clienten erlaabt, sech mat externen Tools a Kontext ze verbannen. An TypingMind kënnt Dir dëse MCP-Server eemol derbäisetzen a seng Tools an Ärem KI-Aarbechtsberäich zur Verfügung stellen.

Kann ech Data360 MCP MCP mat méi KI-Modeller an TypingMind benotzen?

Jo. TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Sou kënnt Dir Data360 MCP mat verschiddene KI-Modeller wéi Claude, ChatGPT, Gemini oder anere Modeller benotzen, déi Dir an TypingMind konfiguréiert hutt, ouni de MCP-Server fir all Modell separat anzeriichten.

Firwat Data360 MCP MCP mat TypingMind benotzen?

TypingMind ass eng vun de beschte Benotzeruewerfläche fir LLM-Chat, well et méi KI-Modeller, Prompts, Plugins, KI-Agenten, API-Schlësselen a MCP-Tools an engem Aarbechtsberäich zesummebréngt. Wann Data360 MCP verbonnen ass, kënnt Dir seng MCP-Tools mat Äre bevorzugte Modeller benotzen a gläichzäiteg Är Chataarbecht an TypingMind organiséieren.

Wéi verbannen ech Data360 MCP MCP mat TypingMind?

Data360 MCP leeft iwwer de lokale MCP-Connector vun TypingMind. Dat eegent sech am beschten, wann de MCP-Server Zougrëff op lokal Fichieren, Desktop-Apps, Kommandozeilen-Tools oder privat Ressourcen op Ärem Computer brauch.

Wéi eng Tools stellt Data360 MCP MCP an TypingMind zur Verfügung?

Data360 MCP stellt MCP-Funktiounen zur Verfügung, déi Dir op der Plugins-Säit vun TypingMind aktivéiere kënnt, fir se am Chat ze benotzen oder KI-Agenten zouzeweisen.

Muss ech meng API-Schlëssele mat TypingMind deelen, fir Data360 MCP MCP ze benotzen?

Nee. TypingMind setzt op lokal Veraarbechtung a léisst Iech d'Kontroll iwwer Är Modellubidder, API-Schlësselen, Prompts a MCP-Konfiguratioun. Wann Data360 MCP eng Authentifizéierung verlaangt, setzt déi néideg Headeren, OAuth-Astellungen oder lokal Konfiguratioun fir dee MCP-Server derbäi, wann Dir d'Verbindung erstallt.

Änlech MCP-Serveren

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇