census_acs

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

Search American Community Survey data by geography and variable code (e.g., B25077_001E for median home value). Returns housing ownership rates, rental costs, vacancy rates, and home values.

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,B25001_001E,B25077_001E",
  "geography": "state:06",
  "year": 2022,
  "_apiKey": "your-census-api-key"
}

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,B25001_001E,B25077_001E","geography":"state:06","year":2022,"_apiKey":"your-census-api-key"}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('census_acs', {
  "variables": "NAME,B25001_001E,B25077_001E",
  "geography": "state:06",
  "year": 2022,
  "_apiKey": "your-census-api-key"
});

More examples

{
  "variables": "NAME,B25003_002E,B25003_003E",
  "geography": "county:037&in=state:06",
  "_apiKey": "your-census-api-key"
}

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 May 9, 2026