A free MCP server for country & geo data
Hosted MCP server for country, city, postal-code, distance and IP-geolocation data. Point Claude, Cursor, ChatGPT or any MCP client at it — live data, no API key.
https://countries.dev/api/mcpWhy
The whole REST API, over MCP
One endpoint
Point your client at one HTTPS URL. No key, no account, no local process.
Live data, not guesses
Tools query the real dataset, so the model returns current facts instead of hallucinating.
Read-only and lean
Every tool is a GET. Responses are trimmed by default to keep context small.
Tools
11 tools the model can call
Each is a thin wrapper over a REST endpoint — same data, same shape.
get_countryFull record for one country by ISO code or name.
list_countriesFilter by region, currency, language, calling code or timezone.
search_citiesCities by name or country, ranked by population.
reverse_geocodeNearest cities to a lat/lng.
distanceGreat-circle distance between two points.
lookup_postal_codePostal/ZIP code → place and coordinates.
geolocate_ipCountry for an IPv4 or IPv6 address.
get_bordersA country’s neighbours, as full records.
search_placesThe full GeoNames gazetteer — peaks, lakes, landmarks.
random_countryA random country.
list_reference_dataAll regions, currencies, languages or timezones.
Connect
Add it to your client
Paste the URL or drop it in your config. That's the whole setup.
Claude Code
claude mcp add --transport http countries https://countries.dev/api/mcpCursor & other clients
{
"mcpServers": {
"countries": { "url": "https://countries.dev/api/mcp" }
}
}Wire it into your AI client
Drop countries.dev/api/mcp into Claude, Cursor or ChatGPT. The docs cover per-client setup, all 11 tools and a curl test.