census_acs

Pack: census · Endpoint: https://gateway.pipeworx.io/census/mcp

Median home value and median rent for a US ZIP CODE, city, town, county or state, from the American Community Survey — the keyless way to answer “what do homes cost in 33158” or “median home price in Miami-Dade County” at a grain below metro level. Pass the geography the way a person says it: a 5-digit ZIP (“33158”), a place with its state (“Palmetto Bay, FL”), a county (“Miami-Dade County, FL”), or a state (“Florida”); FIPS codes and raw Census “for” syntax also work. Median home value is B25077_001E and median gross rent is B25064_001E (B25003 is tenure counts, not rent); the same call also serves ownership rates, vacancy and any other ACS variable code. Values are 5-year survey estimates, so they describe a period rather than this month’s asking prices.

Parameters

NameTypeRequiredDescription
yearnumbernoSurvey year (default 2022). ACS 5-year estimates available from 2009 onward.
variablesstringyesComma-separated variable codes to retrieve (e.g., “NAME,B25001_001E,B25077_001E”). Always include NAME for place names.
geographystringyesGeographic level and filter using Census “for” syntax (e.g., “state:06” for California, “county:” for all counties, “state:” for all states, “county:037&in=state:06” for LA County).
_apiKeystringyesCensus API key

Example call

Arguments

{
  "variables": "NAME,B25077_001E,B25064_001E",
  "geography": "33158"
}

curl

curl -X POST https://gateway.pipeworx.io/census/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"census_acs","arguments":{"variables":"NAME,B25077_001E,B25064_001E","geography":"33158"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('census_acs', {
  "variables": "NAME,B25077_001E,B25064_001E",
  "geography": "33158"
});

More examples

{
  "variables": "NAME,B25077_001E",
  "geography": "Miami-Dade County, FL"
}
{
  "variables": "NAME,B25077_001E",
  "geography": "Palmetto Bay, FL"
}
{
  "variables": "NAME,B25001_001E,B25077_001E",
  "geography": "state:06",
  "year": 2022,
  "_apiKey": "your-census-api-key"
}
{
  "variables": "NAME,B25003_002E,B25003_003E",
  "geography": "county:037&in=state:06",
  "_apiKey": "your-census-api-key"
}
{
  "geography": "us:*",
  "variables": "NAME,B25064_001E"
}

Response shape

Always returns: year, variables, geography, results

FieldTypeDescription
yearnumberSurvey year queried
variablesarrayVariable codes requested
geographystringGeographic filter used
resultsarrayArray of objects with Census data
Full JSON Schema
{
  "type": "object",
  "properties": {
    "year": {
      "type": "number",
      "description": "Survey year queried"
    },
    "variables": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Variable codes requested"
    },
    "geography": {
      "type": "string",
      "description": "Geographic filter used"
    },
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": {
          "type": "string"
        },
        "description": "Census data rows with variable codes as keys"
      },
      "description": "Array of objects with Census data"
    }
  },
  "required": [
    "year",
    "variables",
    "geography",
    "results"
  ]
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "census": {
      "url": "https://gateway.pipeworx.io/census/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build September 10, 2026