Countries
liveGeographyReferenceWorld country data — search by name, ISO code, region, language, or currency via REST Countries API
Tools
search_countriesrequired: querySearch for countries by name. Returns official name, capital, region, population, area, languages, currencies, flag emoji, and the country's land borders by name — so "which countries border Bolivia"
queryreqstringCountry name to search for (partial matches are supported)Try it
get_country_by_coderequired: codeGet country details by ISO code (e.g., "US" for United States or "FRA" for France). Returns capital, population, languages, currencies, area, and region.
codereqstringISO 3166-1 alpha-2 or alpha-3 country codeTry it
countries_by_regionrequired: regionList all countries in a region (e.g., "Africa", "Europe", "Asia"). Returns name, capital, population, area, and flag emoji.
regionreqstringRegion name — one of: africa, americas, asia, europe, oceaniaTry it
countries_by_languagerequired: languageFind countries where a language is spoken (e.g., "Spanish", "Mandarin"). Returns name, capital, region, population, and official language status.
languagereqstringLanguage name (e.g. "spanish", "french", "arabic")Try it
countries_by_currencyrequired: currencyFind countries using a currency (e.g., "EUR" for Euro, "USD" for US Dollar). Returns name, capital, region, and currency details.
currencyreqstringCurrency code or name (e.g. "eur", "usd", "dollar")Try it
Test with curl
The gateway speaks JSON-RPC 2.0 over HTTP POST. You can test any pack directly from the terminal.
curl -X POST https://gateway.pipeworx.io/countries/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'curl -X POST https://gateway.pipeworx.io/countries/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"search_countries","arguments":{"query": "hello"}}}'Use with the SDK
Install @pipeworx/sdk to call tools from any TypeScript/Node project.
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("search_countries", {"query":"example"});// Or ask in plain English:
const answer = await px.ask("world country data — search by name, iso code, region, language, or currency via rest countries api");