# Country State City

> Country State City is an open-source MCP server. CountryStateCity MCP — wraps CountryStateCity API (api.countrystatecity.in/v1). It can run locally on your machine or as a hosted remote server.

- **Kind:** MCP server
- **Pricing:** Open source
- **Website:** https://pipeworx.io/packs/country-state-city
- **Repository:** https://github.com/pipeworx-io/mcp-country-state-city
- **MCP Registry name:** io.github.pipeworx-io/country-state-city
- **Listing updated:** 2026-11-13

## About

CountryStateCity MCP — wraps CountryStateCity API (api.countrystatecity.in/v1)

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http country-state-city https://gateway.pipeworx.io/country-state-city/mcp
```

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://gateway.pipeworx.io/country-state-city/mcp
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "country-state-city": {
      "url": "https://gateway.pipeworx.io/country-state-city/mcp"
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "country-state-city": {
      "type": "http",
      "url": "https://gateway.pipeworx.io/country-state-city/mcp"
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "country-state-city": {
      "serverUrl": "https://gateway.pipeworx.io/country-state-city/mcp"
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "country-state-city": {
      "type": "http",
      "url": "https://gateway.pipeworx.io/country-state-city/mcp"
    }
  }
}
```

## FAQ

### Is Country State City free?

Yes. Country State City is open source, so you can use and self-host it for free.

### How do I add Country State City to Claude Code?

Run this command in your terminal: claude mcp add --transport http country-state-city https://gateway.pipeworx.io/country-state-city/mcp

---
Source: https://ai-powered.com/mcp/country-state-city
