Country State City MCP MCP server
This MCP server provides access to the CountryStateCity API, offering hierarchical geographic reference data for approximately 250 countries, states, and cities. It includes tools to list countries with ISO codes and capitals, retrieve states for specific countries, and fetch cities filtered by country and state, supporting applications like dropdowns and data validation.
Endpoint and access
No sign-in: your client connects and lists tools immediately, with no account or key.
No sign-inEndpoint checked 2026-10-05
MCP endpoint (Streamable HTTP)
https://gateway.pipeworx.io/country-state-city/mcpWhat you can do with it
- List all countries with ISO codes, capitals, and currencies
- Get states or provinces for a country by ISO2 code
- Retrieve cities for a country, optionally filtered by state
ask_pipeworxask_pipeworx_betaask_pipeworx_groundedsearch_withindeep_researchdiscover_toolsresolve_entitycompare_entitiessubscribeunsubscribelist_subscriptionsrecent_alertsentity_profilerecent_changesvalidate_claimcompany_factsscan_dependencybet_researchpolymarket_arbitragepolymarket_edgespolymarket_kalshi_spreadpolymarket_fill_riskpolymarket_edge_trackerkalshi_weather_edgeresolution_auditresolution_diffrelease_calendar_marketspipeworx_trendingsuggest_questionsgenerate_llms_txtai_visibility_checkscan_competitor_ai_presencepipeworx_feedbackrememberrecallforgetlist_countriesget_statesget_cities
Connect from your client
Each snippet registers the same endpoint; pick the client you use.
Claude Code
Claude Code configuration
claude mcp add --transport http country-state-city-mcp https://gateway.pipeworx.io/country-state-city/mcpCodex
Codex configuration
codex mcp add country-state-city-mcp --url https://gateway.pipeworx.io/country-state-city/mcpCursor
Cursor configuration
{
"mcpServers": {
"country-state-city-mcp": {
"url": "https://gateway.pipeworx.io/country-state-city/mcp"
}
}
}Cline
Cline configuration
{
"mcpServers": {
"country-state-city-mcp": {
"type": "streamableHttp",
"url": "https://gateway.pipeworx.io/country-state-city/mcp",
"disabled": false
}
}
}VS Code
VS Code configuration
{
"servers": {
"country-state-city-mcp": {
"type": "http",
"url": "https://gateway.pipeworx.io/country-state-city/mcp"
}
}
}Gemini CLI
Gemini CLI configuration
gemini mcp add --transport http country-state-city-mcp https://gateway.pipeworx.io/country-state-city/mcpClaude Desktop
Claude Desktop configuration
{
"mcpServers": {
"country-state-city-mcp": {
"url": "https://gateway.pipeworx.io/country-state-city/mcp"
}
}
}Windsurf
Windsurf configuration
{
"mcpServers": {
"country-state-city-mcp": {
"serverUrl": "https://gateway.pipeworx.io/country-state-city/mcp"
}
}
}Other documentation and reference servers
Do you run Country State City MCP?
Prove ownership with a DNS record, a well-known file, or your Official MCP Registry entry, and your edits publish immediately. Proofs are re-checked weekly; admins can still hide or remove a listing.