# civic-library-mcp [Health: Active]

**Category:** 🗺️ Location Services  
**Repository:** https://github.com/adriancisnerosspeed-hub/civic-library-mcp  
**GitHub Stars:** 1  
**npm Downloads (last month):** 258  
**Views:** 4  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/civic-library-mcp

## Description
US civic & property data: geocoding, census tracts, Opportunity Zones, FEMA flood zones.

## Tools
Capabilities this server exposes over MCP:

- **geocode_address** — Convert a US street address into latitude/longitude plus its Census geographies (state, county, 2020 census tract GEOID). Free, no API key. Source: U.S. Census Bureau Geocoder.
- **lookup_census_tract** — Return the 2020 census tract (with county and state) that contains a latitude/longitude point. Free, no API key. Source: U.S. Census Bureau Geocoder.
- **check_opportunity_zone** — Determine whether a location is in a designated Qualified Opportunity Zone (Round 1, Tax Cuts and Jobs Act of 2017). Accepts an address, a lat/lng, or an 11-digit 2010 census tract GEOID. OZ designations are keyed to 2010 tracts, so address/coordinate inputs are resolved to their 2010 tract automatically. Free, no API key.
- **get_tract_demographics** — Return demographic indicators for an 11-digit census tract GEOID from the American Community Survey 5-Year (2023). Requires a free Census API key in the CENSUS_API_KEY environment variable (get one instantly at https://api.census.gov/data/key_signup.html). Available fields: population, median_household_income, median_home_value, median_gross_rent, median_age, households, poverty_rate. Omit 'fields' to get a sensible default set.
- **check_flood_zone** — Return the FEMA flood-hazard zone for a latitude/longitude point, including whether it falls in a Special Flood Hazard Area (SFHA, where flood insurance is typically required). Free, no API key. Source: FEMA National Flood Hazard Layer.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "civic-library-mcp": {
    "command": "npx",
    "args": ["-y","civic-library-mcp"],
    "env": {
      "CENSUS_API_KEY": ""
    }
  }
}
```

**Requires environment variables:** `CENSUS_API_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What civic-library-mcp does

The civic-library-mcp MCP server exposes five tools for analyzing US addresses, coordinates, and census tracts. It can geocode a street address, identify the 2020 census tract containing a coordinate, test whether a location belongs to a Qualified Opportunity Zone, retrieve selected ACS 5-Year demographic indicators, and look up FEMA flood-hazard information.

Results are designed for agent workflows: responses use compact JSON and identify the relevant public source. The data comes from the U.S. Census Bureau, U.S. Treasury CDFI Fund, and FEMA rather than scraped pages, paid proprietary databases, or private datasets.

## How it works

The server accepts MCP tool calls through a standard process launched with `npx -y civic-library-mcp`. Address geocoding uses the Census Bureau Geocoder. Census tract demographic requests use the ACS 5-Year Data API, while flood checks use FEMA’s National Flood Hazard Layer. Opportunity Zone checks use a bundled list of Round 1 designations from the Treasury CDFI Fund.

Opportunity Zones require special handling because their designations use 2010 census tract boundaries, while ordinary geocoding returns 2020 tracts. The civic-library-mcp MCP server re-resolves an address or coordinate to its 2010 tract before matching an Opportunity Zone. A directly supplied `tract_geoid` is interpreted as a 2010 GEOID.

## Setup and configuration

Add the server to an MCP client configuration with the `npx` command. For example, configure the server name and command, then optionally provide `CENSUS_API_KEY` in its environment. Claude Code can add it with `claude mcp add civic-library -- npx -y civic-library-mcp`.

No environment variable is needed for geocoding, tract lookup, Opportunity Zone checks, or flood-zone checks. `get_tract_demographics` requires a free Census API key, which must be stored as `CENSUS_API_KEY`. Without that variable, the other four tools remain available.

## Tools and capabilities

- `geocode_address` converts a US street address into latitude, longitude, state, county, and a 2020 tract GEOID.
- `lookup_census_tract` finds the 2020 tract, county, and state containing a latitude/longitude pair.
- `check_opportunity_zone` checks an address, point, or tract against designated Qualified Opportunity Zones.
- `get_tract_demographics` returns requested ACS 5-Year indicators, including population, income, home value, and poverty rate.
- `check_flood_zone` returns a FEMA hazard zone, zone subtype, description, and Special Flood Hazard Area status for coordinates.

## Limitations and notes

Coverage is focused on the United States and the listed federal datasets. Opportunity Zone results represent Round 1 designations and should be interpreted using the 2010 tract boundary rules described above. Census demographics depend on the requested ACS dataset and available fields.

The civic-library-mcp MCP server provides public data for informational use, not legal, financial, tax, insurance, or investment advice. Opportunity Zone, flood-zone, and demographic results should be checked against the official source before use in a transaction. The software is MIT-licensed, and the underlying federal datasets are public domain.

_Full upstream README: https://allmcps.com/mcp/civic-library-mcp/readme_

