Wraps the FEC's OpenFEC API with nine tools covering candidates, committees, contributions, disbursements, independent expenditures, filings, elections, legal documents, and the FEC calendar. You can search itemized Schedule A contributions with filters for employer, occupation, state, and amount range, or pull aggregated breakdowns by size bracket. The disbursements tool works the same way for Schedule B spending. Independent expenditures show support or oppose positions per candidate. Five resources expose candidate profiles, committee details, and election races at the presidential, senate, and house district level. Two prompts frame campaign finance analysis and money trail investigations. Requires an FEC API key. Available via stdio, streamable HTTP, or a hosted instance at openfec.caseyjhand.com/mcp.
Public tool metadata for what this MCP can expose to an agent.
openfec_search_candidatesFind federal candidates by name, state, office, party, or cycle. Retrieve a specific candidate by FEC ID with financial totals. Candidate IDs start with H (House), S (Senate), or P (President) followed by digits.14 paramsFind federal candidates by name, state, office, party, or cycle. Retrieve a specific candidate by FEC ID with financial totals. Candidate IDs start with H (House), S (Senate), or P (President) followed by digits.
pagenumbercyclenumberpartystringquerystringstatestringofficestringH · S · Pdistrictstringper_pagenumbercandidate_idstringelection_yearnumberinclude_totalsbooleancandidate_statusstringC · F · N · Phas_raised_fundsbooleanincumbent_challengestringI · C · Oopenfec_search_committeesFind political committees (campaign, PAC, Super PAC, party) by name, type, candidate affiliation, or state. Retrieve a specific committee by FEC ID. Committee IDs start with C followed by digits (e.g., C00358796).11 paramsFind political committees (campaign, PAC, Super PAC, party) by name, type, candidate affiliation, or state. Retrieve a specific committee by FEC ID. Committee IDs start with C followed by digits (e.g., C00358796).
pagenumbercyclenumberpartystringquerystringstatestringper_pagenumberdesignationstringcandidate_idstringcommittee_idstringcommittee_typestringtreasurer_namestringopenfec_search_contributionsSearch itemized individual contributions (Schedule A) or get aggregate breakdowns by size, state, employer, or occupation. Use to answer "who is funding this committee?" Itemized mode requires a committee_id. Aggregate by_size/by_state can use candidate_id instead.18 paramsSearch itemized individual contributions (Schedule A) or get aggregate breakdowns by size, state, employer, or occupation. Use to answer "who is funding this committee?" Itemized mode requires a committee_id. Aggregate by_size/by_state can use candidate_id instead.
modestringitemized · by_size · by_state · by_employer · by_occupationdefault: itemizedsortstringcontribution_receipt_date · contribution_receipt_amountcyclenumbercursorstringmax_datestringmin_datestringper_pagenumbermax_amountnumbermin_amountnumbercandidate_idstringcommittee_idstringis_individualbooleancontributor_zipstringcontributor_citystringcontributor_namestringcontributor_statestringcontributor_employerstringcontributor_occupationstringopenfec_search_disbursementsSearch itemized committee spending (Schedule B) or get aggregate breakdowns by purpose or recipient. All modes require a committee_id. Use to answer "what is this committee spending money on?" or "who is receiving payments from this committee?"16 paramsSearch itemized committee spending (Schedule B) or get aggregate breakdowns by purpose or recipient. All modes require a committee_id. Use to answer "what is this committee spending money on?" or "who is receiving payments from this committee?"
modestringitemized · by_purpose · by_recipient · by_recipient_iddefault: itemizedsortstringdisbursement_date · disbursement_amountcyclenumbercursorstringmax_datestringmin_datestringper_pagenumbermax_amountnumbermin_amountnumbercommittee_idstringrecipient_citystringrecipient_namestringrecipient_statestringrecipient_committee_idstringdisbursement_descriptionstringdisbursement_purpose_categorystringopenfec_search_expendituresSearch independent expenditures (Schedule E) — outside spending supporting or opposing federal candidates. Covers Super PACs, party committees, and other groups. Use itemized mode for individual expenditure records, or by_candidate for aggregated totals per candidate.18 paramsSearch independent expenditures (Schedule E) — outside spending supporting or opposing federal candidates. Covers Super PACs, party committees, and other groups. Use itemized mode for individual expenditure records, or by_candidate for aggregated totals per candidate.
modestringitemized · by_candidatedefault: itemizedsortstringexpenditure_date · expenditure_amount · office_total_ytdcyclenumbercursorstringmax_datestringmin_datestringper_pagenumberis_noticebooleanmax_amountnumbermin_amountnumberpayee_namestringmost_recentbooleancandidate_idstringcommittee_idstringsupport_opposestringS · Ocandidate_partystringcandidate_officestringH · S · Pcandidate_office_statestringopenfec_search_filingsSearch FEC filings and reports by committee, candidate, form type, or date range. Covers financial reports (F3/F3P/F3X), statements of candidacy (F2), organizational filings (F1), 24-hour IE notices (F24), and amendments.13 paramsSearch FEC filings and reports by committee, candidate, form type, or date range. Covers financial reports (F3/F3P/F3X), statements of candidacy (F2), organizational filings (F1), 24-hour IE notices (F24), and amendments.
pagenumbercyclenumberper_pagenumberform_typestringfiler_namestringis_amendedbooleanmost_recentbooleanreport_typestringreport_yearnumbercandidate_idstringcommittee_idstringmax_receipt_datestringmin_receipt_datestringopenfec_lookup_electionsLook up federal election races and candidate financial summaries. Find who's running in a race with fundraising totals, or get an aggregate race summary.7 paramsLook up federal election races and candidate financial summaries. Find who's running in a race with fundraising totals, or get an aggregate race summary.
zipstringmodestringsearch · summarydefault: searchcycleintegerstatestringofficestringpresident · senate · housedistrictstringelection_fullbooleanopenfec_search_legalSearch FEC legal documents: advisory opinions, enforcement cases (MURs), alternative dispute resolutions, and administrative fines.13 paramsSearch FEC legal documents: advisory opinions, enforcement cases (MURs), alternative dispute resolutions, and administrative fines.
typestringadvisory_opinions · murs · adrs · admin_fines · statutesquerystringfrom_hitintegermax_datestringmin_datestringao_numberstringrespondentstringcase_numberstringhits_returnedintegermax_penalty_amountnumbermin_penalty_amountnumberstatutory_citationstringregulatory_citationstringopenfec_lookup_calendarLook up FEC calendar events, filing deadlines, and election dates.12 paramsLook up FEC calendar events, filing deadlines, and election dates.
modestringevents · filing_deadlines · election_datesdefault: eventspageintegerstatestringofficestringH · S · Pcategorystringmax_datestringmin_datestringper_pageintegerdescriptionstringreport_typestringreport_yearintegerelection_yearintegerAccess FEC campaign finance data through MCP. Query data about candidates, money trails, and election filings. STDIO & Streamable HTTP.
Public Hosted Server: https://openfec.caseyjhand.com/mcp
Nine tools for querying federal election campaign finance data:
| Tool Name | Description |
|---|---|
openfec_search_candidates | Find federal candidates by name, state, office, party, or cycle. |
openfec_search_committees | Find political committees by name, type, candidate affiliation, or state. |
openfec_search_contributions | Search itemized individual contributions or aggregate breakdowns by size, state, employer, or occupation. |
openfec_search_disbursements | Search itemized committee spending or aggregate breakdowns by purpose or recipient. |
openfec_search_expenditures | Search independent expenditures supporting or opposing federal candidates. |
openfec_search_filings | Search FEC filings and reports by committee, candidate, form type, or date range. |
openfec_lookup_elections | Look up election races and candidate financial summaries. |
openfec_search_legal | Search FEC legal documents: advisory opinions, enforcement cases, and administrative fines. |
openfec_lookup_calendar | Look up FEC calendar events, filing deadlines, and election dates. |
openfec_search_candidatesFind federal candidates with optional financial totals.
openfec_search_committeesFind political committees (campaign, PAC, Super PAC, party).
openfec_search_contributionsSearch Schedule A contribution data with five query modes.
openfec_search_disbursementsSearch Schedule B spending data with four query modes.
openfec_search_expendituresSearch Schedule E independent expenditure data.
openfec_search_filingsSearch FEC filings and reports.
openfec_search_legalSearch across FEC legal document types.
openfec_lookup_electionsLook up federal election races.
openfec_lookup_calendarLook up FEC dates and deadlines.
| URI Pattern | Description |
|---|---|
openfec://candidate/{candidate_id} | Federal candidate profile with current financial totals. |
openfec://committee/{committee_id} | Political committee profile with type, designation, and financial summary. |
openfec://election/{cycle}/{office} | Presidential or at-large election race with candidate financial totals. |
openfec://election/{cycle}/{office}/{state} | Senate or state-level election race with candidate financial totals. |
openfec://election/{cycle}/{office}/{state}/{district} | House district election race with candidate financial totals. |
| Prompt | Description |
|---|---|
openfec_campaign_analysis | Structured analysis of a candidate's financial position — fundraising trajectory, burn rate, cash reserves, donor composition, and opponent comparison. |
openfec_money_trail | Framework for tracing the flow of money around a candidate or race — direct fundraising, PAC support, independent expenditures, and party spending. |
Built on @cyanheads/mcp-ts-core:
none, jwt, oauth)in-memory, filesystem, Supabase, Cloudflare KV/R2/D1OpenFEC-specific:
A public instance is available at https://openfec.caseyjhand.com/mcp — no installation required. Point any MCP client at it via Streamable HTTP:
{
"mcpServers": {
"openfec-mcp-server": {
"type": "streamable-http",
"url": "https://openfec.caseyjhand.com/mcp"
}
}
}
Add the following to your MCP client configuration file.
{
"mcpServers": {
"openfec-mcp-server": {
"type": "stdio",
"command": "bunx",
"args": ["@cyanheads/openfec-mcp-server@latest"],
"env": {
"MCP_TRANSPORT_TYPE": "stdio",
"FEC_API_KEY": "your-api-key"
}
}
}
}
Or with Docker:
{
"mcpServers": {
"openfec-mcp-server": {
"type": "stdio",
"command": "docker",
"args": ["run", "-i", "--rm", "-e", "MCP_TRANSPORT_TYPE=stdio", "-e", "FEC_API_KEY=your-api-key", "ghcr.io/cyanheads/openfec-mcp-server:latest"]
}
}
}
For Streamable HTTP, set the transport and start the server:
MCP_TRANSPORT_TYPE=http MCP_HTTP_PORT=3010 FEC_API_KEY=your-key bun run start:http
# Server listens at http://localhost:3010/mcp
DEMO_KEY)git clone https://github.com/cyanheads/openfec-mcp-server.git
cd openfec-mcp-server
bun install
| Variable | Description | Default |
|---|---|---|
FEC_API_KEY | OpenFEC API key. Optional — defaults to DEMO_KEY (30 req/hr). Provide your own key (free at api.data.gov/signup) for 1,000 req/hr. | DEMO_KEY |
FEC_BASE_URL | OpenFEC API base URL. | https://api.open.fec.gov/v1 |
FEC_MAX_RETRIES | Max retry attempts for failed API requests. | 3 |
FEC_REQUEST_TIMEOUT | Request timeout in milliseconds. | 30000 |
MCP_TRANSPORT_TYPE | Transport: stdio or http. | stdio |
MCP_HTTP_PORT | Port for HTTP server. | 3010 |
MCP_HTTP_HOST | Hostname for HTTP server. | localhost |
MCP_AUTH_MODE | Auth mode: none, jwt, or oauth. | none |
MCP_LOG_LEVEL | Log level (RFC 5424). | info |
LOGS_DIR | Directory for log files (Node.js only). | <project-root>/logs |
STORAGE_PROVIDER_TYPE | Storage backend. | in-memory |
OTEL_ENABLED | Enable OpenTelemetry instrumentation (spans, metrics, completion logs). | false |
Build and run:
bun run rebuild
bun run start:stdio # or start:http
Run checks and tests:
bun run devcheck # Lint, format, typecheck, security audit
bun run test # Runs test suite
| Directory | Purpose |
|---|---|
src/mcp-server/tools/definitions/ | Tool definitions (*.tool.ts). |
src/mcp-server/resources/definitions/ | Resource definitions (*.resource.ts). |
src/mcp-server/prompts/definitions/ | Prompt definitions (*.prompt.ts). |
src/services/openfec/ | OpenFEC API client and domain types. |
src/config/ | Environment variable parsing and validation with Zod. |
tests/ | Unit and integration tests. |
scripts/ | Build, clean, devcheck, tree, and lint scripts. |
docs/ | Design docs and OpenAPI spec. |
See CLAUDE.md for development guidelines and architectural rules. The short version:
try/catch in tool logicctx.log for domain-specific logging, ctx.state for storageindex.ts barrel filesIssues and pull requests are welcome. Run checks before submitting:
bun run devcheck
bun run test
Apache-2.0 — see LICENSE for details.
FEC_API_KEYOpenFEC API key — optional (falls back to DEMO_KEY: 30 req/hr). Own key: 1000 req/hr. Free signup at api.data.gov.
MCP_LOG_LEVELdefault: infoSets the minimum log level for output (e.g., 'debug', 'info', 'warn').
MCP_HTTP_HOSTdefault: 127.0.0.1The hostname for the HTTP server.
MCP_HTTP_PORTdefault: 3010The port to run the HTTP server on.
MCP_HTTP_ENDPOINT_PATHdefault: /mcpThe endpoint path for the MCP server.
MCP_AUTH_MODEdefault: noneAuthentication mode to use: 'none', 'jwt', or 'oauth'.
com.mcparmory/google-sheets
domdomegg/google-sheets-mcp
henilcalagiya/google-sheets-mcp
cct15/war-dashboard-data
moooonad/mcp-google-sheets-full
io.github.br0ski777/csv-to-json