An MCP (Model Context Protocol) server providing access to federal education data from NCES CCD, EdFacts, NCHE, and the U.S. Census Bureau. Built for AI-assisted education research and policy analysis.
Tools to search districts and schools, retrieve demographics and attendance data, access homeless-student counts, compare states on key metrics, and pull census-level demographic context. Used in production for Maestro Press research on Texas school finance and federal-funding equity.
District / school lookup
fed_search_districts- Search LEAs by name, state, or NCES IDfed_search_schools- Search schools by name, state, or NCES ID
Demographics and outcomes
fed_get_demographics- Demographic breakdown for district or schoolfed_get_chronic_absenteeism- Chronic absenteeism from EdFactsfed_get_homeless_data- Homeless student data from NCHEfed_get_census_demographics- Census Bureau ACS demographic datafed_get_census_district_profile- District-level census profile
Comparison and discovery
fed_compare_states- Compare metrics across statesfed_list_states- List US states with FIPS codes and ESC region contextfed_get_available_years- Available school years by data sourcefed_list_available_files- Downloadable data filesfed_download_dataset- Download and cache a specific dataset
- NCES Common Core of Data (CCD): https://nces.ed.gov/ccd/files.asp
- EdFacts: https://www2.ed.gov/about/inits/ed/edfacts/data-files/index.html
- NCHE (National Center for Homeless Education): https://nche.ed.gov/data/
- U.S. Census Bureau ACS: https://www.census.gov/programs-surveys/acs.html
git clone https://github.com/kh0pper/fed-gov-data-mcp.git
cd fed-gov-data-mcp
uv syncThe Census Bureau API requires an API key. Set CENSUS_API_KEY in your environment or in your MCP client's env block.
Add to your MCP client configuration (e.g., Claude Code's ~/.claude/settings.json or a project .mcp.json):
{
"mcpServers": {
"fed-gov-data": {
"command": "uv",
"args": ["run", "--directory", "/path/to/fed-gov-data-mcp", "fed-gov-data-mcp"],
"env": {
"CENSUS_API_KEY": "your-census-api-key"
}
}
}
}- FastMCP for MCP protocol handling
- SQLAlchemy (async) + aiosqlite for caching downloaded datasets
- Pydantic for response schemas
- pandas for data manipulation
research-integrationlibrary for citation logging (sister project)
MIT License. See LICENSE.
Released alongside ongoing research at Maestro Press. The repo has a local-path dependency on a sister library (research-integration) that is not yet published; the MCP server runs locally as configured here, but direct pip install from a clean environment will fail until that dependency is hosted publicly. Source is available for reading, forking, and reference.