KosmoKrator

data

World Bank MCP Integration for OpenAI Agents SDK

Connect World Bank to OpenAI Agents SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.

6 functions 6 read 0 write No credentials auth

Connect World Bank to OpenAI Agents SDK

Attach KosmoKrator integration tools to OpenAI Agents SDK workflows through a local MCP gateway.

Start the KosmoKrator MCP gateway locally and point the OpenAI Agents SDK MCP tool at that process or wrapper. The gateway is local, scoped to this integration, and starts with --write=deny so OpenAI Agents can inspect read-capable tools without receiving write access by default.

World Bank MCP Config for OpenAI Agents SDK

Use headless JSON commands for CI-style execution and MCP for agent tool discovery.

{
  "mcpServers": {
    "kosmokrator-worldbank": {
      "type": "stdio",
      "command": "kosmo",
      "args": [
        "mcp:serve",
        "--integration=worldbank",
        "--write=deny"
      ]
    }
  }
}

Run the Gateway Manually

kosmokrator mcp:serve --integration=worldbank --write=deny

Why Use KosmoKrator Here

Scoped tools

Expose only World Bank instead of a broad multi-service tool list.

Local credentials

Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.

Write policy

Start read-only, then opt into ask or allow for trusted workspaces.

World Bank Tools Visible to OpenAI Agents

OpenAI Agents sees stable MCP tool names generated from the World Bank integration catalog.

MCP toolSource functionTypeDescription
integration__worldbank__worldbank_countries worldbank.worldbank_countries Read List or search countries from the World Bank. Optional query filters by name. Filter by region (EAS, ECS, LCN, MEA, NAC, SAS, SSF) or income level (HIC, UMC, LMC, LIC).
integration__worldbank__worldbank_indicators worldbank.worldbank_indicators Read Search economic indicators by keyword. If no query is provided, returns common indicators. Use the indicator code with `worldbank_get_data` to fetch data. Common indicator codes: {$indicators}
integration__worldbank__worldbank_topics worldbank.worldbank_topics Read List the 21 World Bank topic categories (e.g., Education, Health, Economy). Optionally provide a topic ID to list indicators in that topic.
integration__worldbank__worldbank_country_info worldbank.worldbank_country_info Read Get detailed information for a specific country by ISO code, including region, income level, lending type, capital city, and coordinates.
integration__worldbank__worldbank_get_data worldbank.worldbank_get_data Read Fetch economic indicator data for one or more countries from the World Bank. Supports date ranges and most-recent-value mode. Use `worldbank_indicators` to find indicator codes and `worldbank_countries` to find ISO codes.
integration__worldbank__worldbank_compare_data worldbank.worldbank_compare_data Read Compare a single economic indicator across multiple countries. Returns the most recent value for each country side-by-side. Use `worldbank_indicators` to find indicator codes.

Related World Bank Pages