@pipeworx/cia-factbook

Connect: https://pipeworx.io/mcp — every tool in the catalog, including @pipeworx/cia-factbook’s. Install: one-click buttons

Connect to just the @pipeworx/cia-factbook pack

https://gateway.pipeworx.io/cia-factbook/mcp — only @pipeworx/cia-factbook’s own tools, nothing else in the catalog.

No MCP client? Skip the connection: POST https://gateway.pipeworx.io/v1/tools/search_packs {"query":"..."} to find a tool below, GET /v1/tools/<name> for its schema, POST the same URL with arguments for the data — see For AI agents.

Tools: 4

CIA World Factbook country profiles (final 2026 edition) for 261 entities, covering history, geography, people, government, economy, energy, military and transnational issues, plus side-by-side field comparison across countries.

Tools

  • factbook_country(country, sections?): one entity’s profile. Returns Introduction, Geography, People and Society, Government and Economy by default; sections picks others, or ["all"] for everything (~35 KB). Answers “tell me about Kenya” or “what type of government does Chile have”.
  • factbook_compare(countries, fields): up to 10 countries × 10 fields side by side, e.g. Population, Real GDP per capita, Life expectancy at birth. Field names match Factbook headings (case-insensitive, partial match allowed); "Economy > Exports" pins the section.
  • factbook_fields(country?): the sections and field names a profile carries. Use it to find the exact field name for factbook_compare.
  • factbook_entities(query?, region?, limit?): list or search the 261 entities (countries, territories, oceans, the EU, the World) with their Factbook codes and regions.

country accepts a name (“South Korea”, “Myanmar”, “Ivory Coast”), an ISO 3166 code (“KE”, “DEU”), or a Factbook code written as gec:<code>. If a name matches nothing, the tool returns found:false and lists the closest matches.

Every response carries source, licence, data_as_of and an edition_note.

Auth

Keyless.

Data sources

  • Central Intelligence Agency, The World Factbook. The CIA published it in the public domain and discontinued it in February 2026. This pack reads the final edition from the open JSON archive that the factbook project maintains under CC0-1.0. The pack calls the archive on each request and stores no copy.

Things worth knowing:

  • The data is frozen. The archive’s last data update was 2026-01-22, and the Factbook will not be updated again, so data_as_of is always 2026-01-22. Each figure carries its own estimate year, e.g. “55,751,717 (2025 est.)”.
  • Factbook codes are not ISO codes. In GEC codes, au is Austria and gm is Germany. The pack reads a bare 2- or 3-letter input as ISO first and treats it as a GEC code only when no ISO country matches. Use gec:au to force the Factbook code.
  • The Factbook uses its own spellings. It says “Burma”, “Turkey”, “DRC”, “Congo (Brazzaville)”, “Côte d’Ivoire” and “The Gambia”. The pack maps the common alternatives to these names.
  • Some profiles have fewer sections than others. Oceans have no People and Society section, and some territories have no Military section. other_sections and factbook_fields show what a given profile contains.

Tools

  • factbook_country — CIA World Factbook country profile (final 2026 edition): background history, geography, population and demographics, ethnic groups, languages, religions, government type, capital, constitution, legal
  • factbook_compare — Compare CIA World Factbook fields side by side across up to 10 countries — population, median age, life expectancy, real GDP per capita, GDP growth, inflation, unemployment, public debt, military expe
  • factbook_fields — List the sections and field names the CIA World Factbook carries for a country (e.g. Economy → “Real GDP per capita”, “Inflation rate (consumer prices)”, “Exports - partners”). Use before factbook_com
  • factbook_entities — List or search the 261 entities in the CIA World Factbook — sovereign countries, dependencies and territories, the oceans, the European Union and the World — with their Factbook (GEC) codes and region

Tools

  • factbook_compare — Compare CIA World Factbook fields side by side across up to 10 countries — population, median age, life expectancy, real GDP per capita, GDP growth, inflation, unemployment, public debt, military expe
  • factbook_country — CIA World Factbook country profile (final 2026 edition): background history, geography, population and demographics, ethnic groups, languages, religions, government type, capital, constitution, legal
  • factbook_entities — List or search the 261 entities in the CIA World Factbook — sovereign countries, dependencies and territories, the oceans, the European Union and the World — with their Factbook (GEC) codes and region
  • factbook_fields — List the sections and field names the CIA World Factbook carries for a country (e.g. Economy → Real GDP per capita , Inflation rate (consumer prices) , Exports - partners ). Use before factbook_compar

Regenerated from source · build October 13, 2026