@cyanheads/fcc-broadband-mcp-server
Access FCC broadband availability, coverage analysis, and digital divide data for US geographies and census blocks via MCP. STDIO or Streamable HTTP.
Public Hosted Server: https://fcc-broadband.caseyjhand.com/mcp
Overview
FCC broadband data from Form 477 and the Broadband Data Collection (June 2022 onward). Geocode coordinates to census blocks, look up June 2021 ISP offerings and advertised speeds, and summarize, compare, or rank geographies using Area Tables from December 2016 through June 2021.
Tools
| Tool | Description |
|---|---|
fcc_geocode_block | Convert a lat/lon coordinate to a 2010-vintage census block FIPS code, with county and state identifiers |
fcc_search_availability | List the providers and advertised speeds at a census block, filtered by technology and speed |
fcc_search_geographies | Find state, county, congressional district, place, CBSA, and tribal GEOIDs by name |
fcc_get_coverage_summary | Population by provider count for one geography, split by urban/rural and tribal/non-tribal |
fcc_compare_areas | Rank coverage across several geographies of the same type, worst first |
fcc_find_underserved | Rank the most underserved areas in a state or nationwide by unserved population |
fcc_search_providers | Search holding companies by name, state, and technology; returns hoconum identifiers |
fcc_get_provider | National coverage profile for one holding company: technologies and population per speed tier |
fcc_list_filing_periods | List Form 477 filing periods, which ones support Area Table queries, and BDC as-of dates |
fcc_list_downloads | List BDC bulk data files for one as-of date |
Resources
| Resource | Description |
|---|---|
fcc-broadband://geography/{type}/{id}/summary | Coverage summary for one geography at 25 Mbps |
fcc-broadband://providers/list/{offset} | One page of the Form 477 holding-company directory, 25 entries per page |
Resource data is also reachable through tools: fcc_get_coverage_summary for geographies, fcc_search_providers for holding companies.
Prompts
| Prompt | Description |
|---|---|
broadband_equity_analysis | Structure a digital divide analysis that chains FCC coverage with Census and BLS data |
Skill
fcc-broadband-guide covers geography and holding-company identifier chains, comparable population scopes, and sampling limits. It ships with plugin installs, npm, Docker, and the desktop bundle, and is available over MCP at skill://fcc-broadband-guide/SKILL.md.
Capability reference
fcc_geocode_block tool
latitudeandlongitudein decimal degrees, resolved against 2010 census boundaries through the FCC Geo API- Returns
blockFips(15 digits, ready forfcc_search_availability),censusVintage,countyFips,countyName,stateFips,stateCode, andstateName; coordinates over water or outside US coverage fail asblock_not_found. Structured FCC backend faults fail asgeo_backend_unavailablewith guidance to retry the same coordinates later
fcc_search_availability tool
block_fips(15 digits, 2010 vintage) is required;tech_filter(Form 477 technology codes),min_speed_down(Mbps), andconsumer(trueconsumer,falsebusiness) narrow the rows- One row per offering with a Form 477 filing number (
providerId), optional FCC Registration Number (frn) and doing-business-as name (dbaName),hoconum,techCode/techLabel,maxDownloadMbps,maxUploadMbps,consumer, andbusiness. Filing numbers and FRNs are strings that preserve leading zeros totalProviderscounts distinct holding-company numbers after filtering. Filed names and individual offerings are preserved. An unfiltered block with no providers fails asblock_not_found. A filtered query that matches nothing returns an empty list with anoticespeedBasis: "consumer"identifies advertised consumer bandwidth, including on filings that also serve businesses. Business-only offerings return"not_reported". The two numeric FCC columns andmin_speed_downrefer to consumer bandwidth
fcc_search_geographies tool
- Required nonblank
namematches a case-insensitive literal substring. Optionalgeography_typeisstate,county,cd,place,cbsa, ortribal. The default page is 20 matches and the cap is 12,500 - Returns distinct
{ geography_type, geography_id, name }matches in stable name/type/GEOID order, pluscount,offset, andnextOffsetonly when more matches remain. Empty and past-end pages carry guidance; no total count is computed - Uses the live FCC lookup with
year='2021'even when the mirror is enabled. Include a location qualifier innameto narrow matches; CBSA codes do not establish state membership. Pass the selected type and GEOID tofcc_get_coverage_summary
fcc_get_coverage_summary tool
geography_typeis one ofnation,state,county,cd,place,cbsa,tribal;geography_idis required for every type butnation;urban_rural_filter(all/R/U) andtribal_filter(all/T/N) narrow the population- Omit
as_of_datefor June 2021, or select a supported Area Table date, for example{"geography_type":"county","geography_id":"28115","as_of_date":"2016-12-31"}. The result reports the filing indataVintage - Returns
populationby provider count (noCoverage,oneProvider,twoProviders,threeOrMore,total),coveragePct,unservedPct,competitivePct, and a per-segmentbreakdown. An empty demographic selection returns zero totals and a notice after confirming geography rows exist; a missing geography still fails asgeography_not_found - Required reads share a 48-second deadline (
coverage_timeout); invalid geography inputs fail asinvalid_geography_comboorinvalid_geography_id_shape - National coverage is named
United Stateslocally and retainsgeography.id: "0"; it needs no geography-name lookup
fcc_compare_areas tool
geography_idsof onegeography_type(every type butnation), orcompare_all_states: truefor the 50 states plus DC; the first 300 distinct IDs are compared, with duplicates and excluded IDs disclosed.sort_byisunserved_pct(default),unserved_pop,coverage_pct, orcompetitive_pctas_of_dateselects one supported Area Table filing for the entire comparison. June 2021 is the default- Every sort ranks worst first, so
rank1 is the area most in need; rows carryid,namewhen resolved, the provider-count populations, and all three percentages. Fails asmissing_geography_ids,invalid_all_states_combo,invalid_geography_id_shape, orno_data_found unmatchedIdsidentifies queried IDs without coverage rows, separately from IDs excluded by the comparison cap. Reads run in batches of at most 50; ranking happens once across all returned statistics- Percentages are ranked before display rounding. Exact ties use ascending GEOID
fcc_find_underserved tool
state(USPS state or territory code) scopes the search, otherwise it runs nationwide;geography_typeiscounty(default),cd,place, orcbsa;urban_rural_filterdefaults toRandmin_unserved_popto 1. The default page is 20 areas and the cap is 1,000. Startoffsetat 0 and follownextOffsetas_of_dateselects the filing to rank (default June 2021). Keep it fixed when followingnextOffset. The filing and any comparability notice are included even when the page is empty- For
geography_type: "cbsa", state membership comes from the filing-year metro title. A multistate metro's figures cover the whole metro - Areas are ranked globally by
noCoverage, with GEOID tie-breaking, before paging; rows carryrank,id,name,oneProvider,total,unservedPct, andcoveragePct.totalFoundcounts matches before paging. An unrecognizedstatefails asunknown_state; notices distinguish no matching areas from an exhausted page
fcc_search_providers tool
name_search(case-insensitive literal substring),state,county_fips,market(consumerorbusiness), andtech_filterare optional and must hold on the same filing. The default page is 50 providers and the cap is 200. Startoffsetat 0 and follownextOffset. Unknown USPS state or territory codes fail asunknown_statebefore querying- Deduplicated holding companies with
hoconum,holdingCompanyName, and nationalstatesServed/techCodesthat the filters never narrow. No match returns an empty list with anotice; a live search over its 30-second budget fails aslive_search_timeout - A full-corpus mirror (
FCC_MIRROR_ENABLED=true) pages the complete matching company set inhoconumorder and reportstotalCount. Against the live API,scanTruncated: truemarks a sample and withholdstotalCount; continuation covers only the sampled set, which can change between calls
fcc_get_provider tool
hoconum(digits only) fromfcc_search_providersor the providers directory resourcespeedTierPopulationgives national download-tier counts anduploadSpeedTierPopulationgives upload-tier counts. Each direction counts people separately. The two counts cannot establish how many people meet a paired speed threshold. Profiles without reported population tiers carry block lookup guidance. The response also includestechCodesandtechLabels. Failures includeprovider_not_foundandlive_provider_timeoutafter the 30-second live query budget.
fcc_list_filing_periods tool
- Lists the Form 477 snapshots served here through June 2021. The FCC also collected later Form 477 filings. With credentials,
include_bdc: trueadds BDC dates and their publisheddataType periodsnewest first, each withasOfDateandsource(form477orbdc), plusform477Count,bdcCount, andhasBdcCredentials. Use Form 477 entries withareaCoverageAvailable: truefor the three area tools. BDC entries omit that flag. Missing credentials leavebdcCountat 0
fcc_list_downloads tool
- Choose an
as_of_dateanddata_typepair fromfcc_list_filing_periods. Availability supports the Summary, State, and Provider categories, technology, state, and provider name filters. Challenge supports its own categories and a state filter. The default page is 50 files and the cap is 2,200. Startoffsetat 0 and follownextOffset - Incompatible filters fail as
invalid_download_filters. An unsupported date for the requested data type fails asinvalid_as_of_date - Each file has a string
fileIdand an authenticateddownloadUrl. When provided,recordCountis numeric andstateFipspreserves leading zeros. Challenge rows can lack a filename.totalFilescounts every match andnextOffsetis omitted on the last page - Available to MCP clients only when both BDC credentials are configured at startup. Otherwise the HTTP landing page retains its disabled card and setup guidance
fcc-broadband://geography/{type}/{id}/summary resource
typetakes the sevenfcc_get_coverage_summarygeography types. Tribal IDs use four digits followed byRorT. Use0for the nation. A national URI with another ID returns the national result and identifies the ignored ID- Fixed at June 2021, 25/3 Mbps, and satellite-inclusive
acfosw. Returnspopulation, the three percentages, andsegmentsasapplication/json. Usefcc_get_coverage_summaryto select a filing date, threshold, or filter
fcc-broadband://providers/list/{offset} resource
offsetpages the directory 25 entries at a time inhoconumorder; start at0and follownextOffset- Entries carry
hoconumand, when resolved,holdingCompanyName. The directory total counts companies with a national all-technology population row. To find companies that appear only in deployment filings, usefcc_search_providerswith a full mirror
broadband_equity_analysis prompt
- Arguments:
region(free text) andfocus(underserved,rural,tribal, orall), both required - Returns one user message laying out a five-step analysis: baseline coverage, focus area, demographic cross-reference, provider landscape, and historical screening context
Features
Built on @cyanheads/mcp-ts-core: stdio and Streamable HTTP transports, pluggable auth (none / jwt / oauth), swappable storage (in-memory, filesystem, Supabase, Cloudflare KV/R2/D1), structured logging with optional OpenTelemetry tracing.
FCC-specific:
- Three FCC sources, all US government public-domain data: Form 477 on FCC Open Data (Socrata), the BDC Public Data API, and the FCC Geo API
- Form 477 tools and resources work without credentials. Block availability, provider tools, and resources use the June 2021 snapshot. BDC data is available as bulk-file manifests.
fcc_list_downloadsis advertised to MCP clients when bothFCC_BDC_USERNAMEandFCC_BDC_HASH_VALUEare configured - The area tools accept every nonempty alphabetical combination of
aDSL,ccable,ffiber,oother,ssatellite, andwfixed wireless. The defaultacfowexcludes satellite; explicitacfoswincludes it. Deployment tools use numeric technology codes instead - Area speed keys select download/upload pairs in Mbps:
0.2→ 0.2/0.2,4→ 4/1,10→ 10/1,25→ 25/3 (default),100→ 100/10,250→ 250/25, and1000→ 1000/100. Historical population aggregates cannot establish current BEAD eligibility or address service; the 100/10 tier does not establish 100/20 availability - The three area tools query pre-aggregated Area Tables. They accept the ten June and December filing dates from
2016-12-31through2021-06-30and resolve geography names in the filing year. Unsupported dates fail asinvalid_arguments. Results before2020-12-31carry avintageNoticeabout comparing across that boundary - The optional local Form 477 mirror (
FCC_MIRROR_ENABLED=true) serves covered June 2021 records from SQLite. Older Area Tables use FCC Open Data directly
Agent-friendly output:
- Filter echo: search, summary, and ranking tools return
appliedFilters, and every Form 477 result carriesdataVintage - Partial results say so:
scanTruncatedandscanRowCapflag a result drawn from a capped upstream scan (fcc_search_providers,fcc_find_underserved), and an empty match returns anoticeinstead of an error - Typed failures: reasons such as
block_not_found,invalid_geography_id_shape, andcredentials_required, each with a recovery hint
Getting started
Public Hosted Instance
A public instance is available at https://fcc-broadband.caseyjhand.com/mcp — no installation required. Point any MCP client at it via Streamable HTTP:
{
"mcpServers": {
"fcc-broadband-mcp-server": {
"type": "streamable-http",
"url": "https://fcc-broadband.caseyjhand.com/mcp"
}
}
}
Self-Hosted / Local
Add the following to your MCP client configuration file.
{
"mcpServers": {
"fcc-broadband-mcp-server": {
"type": "stdio",
"command": "bunx",
"args": ["@cyanheads/fcc-broadband-mcp-server@latest"],
"env": {
"MCP_TRANSPORT_TYPE": "stdio",
"MCP_LOG_LEVEL": "info"
}
}
}
}
Or with npx (no Bun required):
{
"mcpServers": {
"fcc-broadband-mcp-server": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@cyanheads/fcc-broadband-mcp-server@latest"],
"env": {
"MCP_TRANSPORT_TYPE": "stdio",
"MCP_LOG_LEVEL": "info"
}
}
}
}
For Streamable HTTP, set the transport and start the server:
MCP_TRANSPORT_TYPE=http MCP_HTTP_PORT=3010 bun run start:http
# Server listens at http://localhost:3010/mcp
Prerequisites
- Bun v1.4.4 or higher (or Node.js v24+).
- Optional: FCC BDC credentials for
fcc_list_downloadsand BDC filing periods. Generate a token at broadbandmap.fcc.gov under "Manage API Access". - Optional: a Socrata app token (
FCC_OPENDATA_APP_TOKEN) for higher Form 477 rate limits.
Installation
- Clone the repository:
git clone https://github.com/cyanheads/fcc-broadband-mcp-server.git
- Navigate into the directory:
cd fcc-broadband-mcp-server
- Install dependencies:
bun install
- Configure environment:
cp .env.example .env
# edit .env and set FCC_BDC_USERNAME, FCC_BDC_HASH_VALUE, and FCC_OPENDATA_APP_TOKEN as needed
Configuration
| Variable | Description | Default |
|---|---|---|
FCC_BDC_USERNAME | FCC account email for the BDC API. Needed by fcc_list_downloads and for BDC dates in fcc_list_filing_periods. | none |
FCC_BDC_HASH_VALUE | API token hash from broadbandmap.fcc.gov "Manage API Access". Pairs with FCC_BDC_USERNAME. | none |
FCC_OPENDATA_APP_TOKEN | Socrata app token; raises FCC Open Data rate limits. | none |
FCC_CLAMP_LIMITS | Serve oversized page requests at the tool's cap and report the adjustment. Set false to advertise and enforce a strict maximum in the input schema. | true |
FCC_MIRROR_ENABLED | Serve covered June 2021 Form 477 data from the local SQLite mirror. | false |
FCC_MIRROR_PATH | Directory holding the mirror SQLite files. | data/fcc-mirror |
MCP_TRANSPORT_TYPE | Transport: stdio or http. | stdio |
MCP_HTTP_PORT | HTTP server port. | 3010 |
MCP_SESSION_MODE | HTTP session mode: stateless, stateful, or auto. | stateless |
MCP_AUTH_MODE | Authentication: none, jwt, or oauth. | none |
MCP_JWT_EXPECTED_AUDIENCE | Required aud claim in JWT mode. JWT mode warns at startup if unset. | Unset |
MCP_JWT_EXPECTED_ISSUER | Required iss claim in JWT mode. | Unset |
MCP_LOG_LEVEL | Log level (debug, info, warning, error, etc.). | info |
LOGS_DIR | Directory for log files (Node.js only). Relative paths resolve from the server's package root. | <server-package-root>/logs |
STORAGE_PROVIDER_TYPE | Storage backend: in-memory, filesystem, supabase, cloudflare-kv/r2/d1. | in-memory |
OTEL_ENABLED | Enable OpenTelemetry. | false |
See .env.example for the full list of optional overrides.
BDC credentials can come from the process environment or .env; process values take precedence. Empty, whitespace-only, and unsubstituted placeholder values count as absent. Restart after configuring both credentials to enable fcc_list_downloads; Form 477 filing periods remain available without them.
Running the server
Local development
-
Build and run:
# One-time build bun run rebuild # Run the built server bun run start:stdio # or bun run start:http -
Run checks and tests:
bun run devcheck # Lint, format, typecheck, security bun run test # Vitest test suite bun run lint:mcp # Validate MCP definitions against spec
Docker
docker build -t fcc-broadband-mcp-server .
docker run --rm -p 3010:3010 fcc-broadband-mcp-server
The Dockerfile defaults to HTTP transport and stateless session mode, logging to /var/log/fcc-broadband-mcp-server. OpenTelemetry peer dependencies are installed by default — build with --build-arg OTEL_ENABLED=false to omit them. The image also ships the mirror scripts and a writable data/ directory.
Local Form 477 mirror
The local SQLite mirror indexes the June 2021 Form 477 snapshot. The mirror is off by default. A full ingest pulls about 9 GB of source data and takes hours, so you can bootstrap just the states you query.
bun run mirror:init -- --states 11,53 # specific states by 2-digit FIPS (11 = DC, 53 = WA)
bun run mirror:init -- --full # the whole corpus
bun run mirror:verify # coverage, row counts, SQLite integrity
Then set FCC_MIRROR_ENABLED=true. In Docker, run the same scripts with docker exec <container> bun run mirror:init -- --states 11,53. Run them from a source checkout or the image: the scripts import through the @/ path alias, which an npm install does not map.
- June 2021 block and state-scoped area queries use the mirror once the queried state is fully ingested. Provider search, provider summaries, and June 2021 area queries for
cbsa,tribal, andnationrequire full coverage to serve locally. - Earlier Area Tables and geography names use FCC Open Data. Standalone geography discovery uses the 2021 lookup, and area tools use the requested filing year for name resolution. Coverage statistics remain available when a name lookup fails.
- Existing mirror files gain
frnanddbaNamemetadata as legacy offerings are read. Confirmed values and source blanks are saved locally. If FCC Open Data is temporarily unavailable, local offerings still return with a notice and the missing metadata can be retried on a later read. mirror:verifyreports the provider dimension as derived, alongside its row count and integrity check. Use the state roster and full-corpus marker to check coverage.- Provider names use a case-insensitive literal substring, including punctuation and interior fragments such as
mcastin Comcast. On an existing mirror, runmirror:initto rebuild filed aliases from local deployment rows and refresh the provider summary for upload tiers. - The ingest is idempotent and resumes an interrupted run from its saved cursor. Set
FCC_OPENDATA_APP_TOKENfirst for a full ingest. Bun uses the built-inbun:sqlite; Node.js needs the optionalbetter-sqlite3peer dependency.
Project structure
| Directory | Purpose |
|---|---|
src/index.ts | createApp() entry point — registers tools, resources, and prompts and inits services. |
src/config | Server-specific environment variable parsing and validation with Zod. |
src/mcp-server/tools | Tool definitions (*.tool.ts). Ten tools across FCC Open Data, the BDC API, and the Geo API. |
src/mcp-server/resources | Resource definitions (*.resource.ts). Geography summary and provider directory. |
src/mcp-server/prompts | Prompt definitions (*.prompt.ts). Broadband equity analysis prompt. |
src/services/open-data | FCC Open Data (Socrata) service for Form 477 deployment, area, and provider tables; mirror/ holds the local SQLite mirror. |
src/services/bdc-api | BDC Public Data API service — authenticated filing periods and download manifests. |
src/services/geo-api | FCC Geo API service — lat/lon to census block FIPS. |
scripts/ | Build, devcheck, and packaging scripts, plus fcc-mirror-init.ts / fcc-mirror-verify.ts. |
skills/ | Published broadband-analysis guide, also served as an MCP skill resource. |
tests/ | Unit and integration tests mirroring src/. |
Development guide
See CLAUDE.md for development guidelines and architectural rules. The short version:
- Handlers throw, framework catches — no
try/catchin tool logic - Use
ctx.logfor request-scoped logging,ctx.statefor tenant-scoped storage - Register new tools and resources via the barrels in
src/mcp-server/*/definitions/index.ts - Wrap external API calls: validate raw → normalize to domain type → return output schema; never fabricate missing fields
- Socrata returns every field as a string, so parse counts and speeds (
has_0–has_3more,maxaddown,maxadup) explicitly
Contributing
Issues are welcome. Run checks and tests before submitting:
bun run devcheck
bun run test
License
Apache-2.0 — see LICENSE for details.