Atlas / MCP servers / uscensusbureau / U.S. Census Bureau Data API

U.S. Census Bureau Data APIBLOCK

mcp/uscensusbureau/u-s-census-bureau-data-api

The U.S. Census Bureau Data API MCP connects AI Assistants with official Census Bureau statistics.

Verdict
BLOCK
Grade
D
Trust score
60 /100
Exposed tools
11 11r · 0w · 0d
Transport
stdio
License
CC0-1.0
Stars
98
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

[](https://github.com/uscensusbureau/us-census-bureau-data-api-mcp/blob/main/LICENSE) [](https://github.com/uscensusbureau/us-census-bureau-data-api-mcp/actions/workflows/build.yml) [](https://github.com/uscensusbureau/us-census-bureau-data-api-mcp/actions/workflows/lint.yml) [](https://github.com/uscensusbureau/us-census-bureau-data-api-mcp/actions/workflows/test.yml) [](https://github.com/uscensusbureau/us-census-bureau-data-api-mcp/actions/workflows/test-db.yml)

Bringing official Census Bureau statistics to AI assistants everywhere.

The U.S. Census Bureau Data API MCP is a Model Context Protocol (MCP) server that connects AI assistants with data from the Census Data API and other official Census Bureau sources. This project is built using the MCP Typescript SDK.

Contents

  • Getting Started
  • Using the MCP Server
  • How the MCP Server Works
  • Development
  • [MCP Server Architecture](#mcp-server-a
Read from source at commit b24ba2300a82OBSERVED · 2026-10-07
Advertisement
02

Connect

Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.

claude-code
claude mcp add mcp-server-census-api --env CENSUS_API_KEY=${CENSUS_API_KEY} -- npx -y [email protected]
claude-desktop
{
  "mcpServers": {
    "mcp-server-census-api": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "CENSUS_API_KEY": "${CENSUS_API_KEY}"
      }
    }
  }
}
03

Exposed tools (11)

11 read · 0 write · 0 destructive.

ToolRiskDescription
CountyreadCounties and county equivalents
DatasetreadA great dataset.
NationreadUnited States total
PopulationreadPopulation data about the United States.
StatereadStates and State equivalents
countreadNumber of times to repeat
geography_namereadName of the geographic area (city, state, county, etc.)
messagereadMessage parameter
mock-promptreadMock prompt for testing
test-promptreadA test prompt for testing purposes
valuereadA number value
04

Trust audit

BLOCKgrade D · trust 60/100 Do not install this without reading the findings. The audit found something that could harm you or your machine.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codeFAIL
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfacePASS
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
declared (5 observation(s))
Network
declared (4 observation(s))
Shell
none-observed
Dependencies
not all pinned
Secrets in source
found

Findings (19)

HIGHHard-coded secrets · secret.db_uri · CWE-798, CWE-321
docker-compose.yml:25
DATABASE_URL: postgresql://mcp_user:mcp_pass@census-mcp-db:5432/mcp_db
HIGHHard-coded secrets · secret.db_uri · CWE-798, CWE-321
docker-compose.yml:46
DATABASE_URL: postgresql://mcp_user:mcp_pass@census-mcp-db:5432/mcp_db
HIGHHard-coded secrets · secret.db_uri · CWE-798, CWE-321
docker-compose.yml:81
DATABASE_URL: postgresql://mcp_user_dev:mcp_pass_dev@census-mcp-db-dev:5432/mcp_db_dev
MEDIUMHard-coded secrets · secret.db_uri · CWE-798, CWE-321
.github/workflows/test-db.yml:51
DATABASE_URL: postgresql://mcp_user_test:mcp_pass_test@localhost:5434/mcp_db_test
MEDIUMHard-coded secrets · secret.db_uri · CWE-798, CWE-321
.github/workflows/test.yml:54
DATABASE_URL: postgresql://mcp_user_test:mcp_pass_test@localhost:5434/mcp_db_test
LOWInventory / provenance · inv.hidden_file · CWE-1104
mcp-db/.prettierignore
.prettierignore
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWInventory / provenance · inv.hidden_file · CWE-1104
mcp-server/.prettierignore
.prettierignore
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWInformation disclosure · disclose.log_secret · CWE-209, CWE-532
mcp-server/tests/tools/base/base.tool.test.ts:94
console.log(args, apiKey)
LOWInformation disclosure · disclose.log_secret · CWE-209, CWE-532
mcp-server/tests/tools/base/base.tool.test.ts:121
console.log(args, apiKey)
LOWInformation disclosure · disclose.log_secret · CWE-209, CWE-532
mcp-server/tests/tools/base/base.tool.test.ts:290
console.log(args, apiKey)
LOWInformation disclosure · disclose.log_secret · CWE-209, CWE-532
mcp-server/tests/tools/base/base.tool.test.ts:331
console.log(args, apiKey)
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
mcp-db/src/seeds/configs/components.config.ts:3
import { SeedConfig } from '../../schema/seed-config.schema.js'
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
mcp-db/src/seeds/configs/components.config.ts:4
import { transformComponentData } from '../../schema/components.schema.js'
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
mcp-db/src/seeds/configs/county-subdivision.config.ts:6
import { DivisionRegionMappingsType } from '../../schema/division_region_mappings.schema.js'
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
mcp-db/src/seeds/configs/county-subdivision.config.ts:10
} from '../../schema/seed-config.schema.js'
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
mcp-db/src/seeds/configs/county-subdivision.config.ts:11
import { createGeographyYear } from '../../helpers/geography-years.helper.js'
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
mcp-db/package.json
csv-parse, dotenv, node-pg-migrate, pg, title-case, tsx, typescript, zod
Why it matters. 19 dependency range(s) float
Fix. pin exact versions or ship a lockfile
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
mcp-server/package.json
@modelcontextprotocol/sdk, dotenv, node-fetch, pg, zod, @eslint/js, @types/node, @types/pg
Why it matters. 16 dependency range(s) float
Fix. pin exact versions or ship a lockfile
INFOInventory / provenance · inv.oversize · CWE-1104
mcp-db/data/concept.csv
mcp-db/data/concept.csv
Why it matters. 4025115 bytes not read

Gates applied: no_behavioural_pass.

Audited 2026-10-07 · audit v0.4.1 · source sha b24ba2300a82full audit observations/trust-audit/mcp-server/uscensusbureau__u-s-census-bureau-data-api.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-10-07b24ba2300a82BLOCKD60first audit
06

Questions

What is the U.S. Census Bureau Data API MCP server?

The U.S. Census Bureau Data API MCP connects AI Assistants with official Census Bureau statistics.

What tools does U.S. Census Bureau Data API expose?

11 in total: 11 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.

Is U.S. Census Bureau Data API safe to connect to an agent?

No — not without reading the findings first. The audit graded it D (60/100) and found 3 critical or high issues in the source. Each one is listed on this page with the file and line it is on.

What credentials does U.S. Census Bureau Data API need?

It reads CENSUS_API_KEY from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.

How does U.S. Census Bureau Data API run?

It speaks stdio, so it runs as a local process your client starts. It is published on npm as mcp-server-census-api at 1.0.0.

How current is this page?

The grade is for one exact copy of the source (b24ba2300a82), read on 2026-10-07. The repository is watched and re-audited when it changes.

Advertisement