# Census (ACS by ZIP) MCP server

> Lets an AI client look up U.S. Census American Community Survey data including income, demographics, housing, and education by ZIP code.

- Repository: https://github.com/mcpwright/census-mcp
- Page: https://hostedmcp.org/servers/mcpwright/census-mcp
- Transport: stdio
- Stars: 0
- License: MIT
- Latest version: 0.1.3

## Install

### Claude Code

```sh
claude mcp add --env 'CENSUS_API_KEY=<CENSUS_API_KEY>' census-mcp -- uvx mcpwright-census
```

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

```json
{
  "mcpServers": {
    "census-mcp": {
      "command": "uvx",
      "args": [
        "mcpwright-census"
      ],
      "env": {
        "CENSUS_API_KEY": "<CENSUS_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "servers": {
    "census-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mcpwright-census"
      ],
      "env": {
        "CENSUS_API_KEY": "<CENSUS_API_KEY>"
      }
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"census-mcp","type":"stdio","command":"uvx","args":["mcpwright-census"],"env":{"CENSUS_API_KEY":"<CENSUS_API_KEY>"}}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "census-mcp": {
      "command": "uvx",
      "args": [
        "mcpwright-census"
      ],
      "env": {
        "CENSUS_API_KEY": "<CENSUS_API_KEY>"
      }
    }
  }
}
```

### Codex

```sh
codex mcp add census-mcp --env 'CENSUS_API_KEY=<CENSUS_API_KEY>' -- uvx mcpwright-census
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.census-mcp]
command = "uvx"
args = ["mcpwright-census"]

[mcp_servers.census-mcp.env]
CENSUS_API_KEY = "<CENSUS_API_KEY>"
```

### Gemini CLI

```sh
gemini mcp add -s user -e 'CENSUS_API_KEY=<CENSUS_API_KEY>' census-mcp uvx -- mcpwright-census
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "census-mcp": {
      "command": "uvx",
      "args": [
        "mcpwright-census"
      ],
      "env": {
        "CENSUS_API_KEY": "<CENSUS_API_KEY>"
      }
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `CENSUS_API_KEY` | yes | no | Free Census API key (get one at https://api.census.gov/data/key_signup.html). Required for the one-time bulk download of the ACS dataset. |

## FAQ

### Does this server require an API key?

Yes, a free Census API key is required for the one-time bulk download of the ACS dataset.

### Is the data available offline?

Yes, the server bulk-downloads the data into a local SQLite store so that subsequent lookups are served offline and instantly.

### Can I find ZIP codes for a specific city?

Yes, the find_zips tool allows you to perform a reverse lookup to find ZIPs within a city, town, or CDP.

### Does the server collect my personal data?

No, the server runs entirely on your machine and does not collect, store, or transmit any personal data.
