Openfec Mcp Server
Read and query FEC campaign finance data on candidates, committees, contributions, and spending.
- CCM score
- 86 of 100
- GitHub stars
- 2
- tools
- 12
- transport
- STDIO, HTTP
- env vars
- 7
- last updated
- Nov 16, 2026
Own this MCP server? Claim it
What it does
- Searches with
openfec_search_candidates,openfec_search_committees, andopenfec_search_filings, filtered by state, party, office, cycle, or FEC ID - Traces money with
openfec_search_contributions,openfec_search_disbursements, andopenfec_search_expenditures(Schedules A, B, and E) - Requires a FEC API key and runs locally over stdio, with a public hosted option also available
- Designed for campaign-finance investigations, donor and spending research, and checking race fundraising totals
Install
$ npx -y add-mcp https://openfec.caseyjhand.com/mcp --name openfec -yAdds the server to every agent config it finds in this project.
Review the command, arguments and environment values before installing. MCP servers run with your local permissions.
Other ways
Claude Code
$ claude mcp add --transport http openfec https://openfec.caseyjhand.com/mcpRun in your terminal. Add --scope user to make it available in every project.
Tools
Verified live · 12 toolsVerified live against the running server on Nov 6, 2026.
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 exactly eight letters or digits.14 params
Find 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 exactly eight letters or digits.
candidate_idstringcandidate_statusstringC · F · N · Pcyclenumberdistrictstringelection_yearnumberhas_raised_fundsbooleaninclude_totalsbooleanincumbent_challengestringI · C · OofficestringH · S · Ppageintegerpartystringper_pageintegerquerystringstatestringopenfec_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 exactly eight digits (e.g., C00358796).11 params
Find 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 exactly eight digits (e.g., C00358796).
candidate_idstringcommittee_idstringcommittee_typestringcyclenumberdesignationstringpageintegerpartystringper_pageintegerquerystringstatestringtreasurer_namestringopenfec_get_committee_totalsGet pre-aggregated committee financial totals — receipts, disbursements, cash on hand, debts, and the itemized/unitemized breakdown — without paginating Schedule A. Use mode "single" (the default) with a committee_id for one committee's totals, one row per two-year cycle it ha...15 params
Get pre-aggregated committee financial totals — receipts, disbursements, cash on hand, debts, and the itemized/unitemized breakdown — without paginating Schedule A. Use mode "single" (the default) with a committee_id for one committee's totals, one row per two-year cycle it ha...
committee_designationstringcommittee_idstringcommittee_statestringcommittee_typestringcyclenumberentity_typestringpresidential · pac · party · pac-party · house-senate · ie-onlymax_disbursementsnumbermax_receiptsnumbermin_disbursementsnumbermin_receiptsnumbermodestringsingle · by_entity_typedefault: singleorganization_typestringpageintegerper_pageintegersortstringcycle · -cycle · receipts · -receipts · disbursements · -disbursementsopenfec_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.19 params
Search 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.
candidate_idstringcommittee_idstringcontributor_citystringcontributor_employerstringcontributor_namestringcontributor_occupationstringcontributor_statestringcontributor_zipstringcursorstringcyclenumberis_individualbooleanmax_amountnumbermax_datestringmin_amountnumbermin_datestringmodestringitemized · by_size · by_state · by_employer · by_occupationdefault: itemizedpageintegerper_pageintegersortstringcontribution_receipt_date · -contribution_receipt_date · contribution_receipt_amount · -contribution_receipt_amountopenfec_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?"17 params
Search 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?"
committee_id*stringcursorstringcyclenumberdisbursement_descriptionstringdisbursement_purpose_categorystringmax_amountnumbermax_datestringmin_amountnumbermin_datestringmodestringitemized · by_purpose · by_recipient · by_recipient_iddefault: itemizedpageintegerper_pageintegerrecipient_citystringrecipient_committee_idstringrecipient_namestringrecipient_statestringsortstringdisbursement_date · -disbursement_date · disbursement_amount · -disbursement_amountopenfec_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; by_candi...21 params
Search 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; by_candi...
candidate_idstringcandidate_officestringH · S · Pcandidate_office_districtstringcandidate_office_statestringcandidate_partystringcommittee_idstringcursorstringcyclenumberelection_fullbooleanis_noticebooleanmax_amountnumbermax_datestringmin_amountnumbermin_datestringmodestringitemized · by_candidatedefault: itemizedmost_recentbooleanpageintegerpayee_namestringper_pageintegersortstringexpenditure_date · -expenditure_date · expenditure_amount · -expenditure_amount · office_total_ytd · -office_total_ytd+1 more parameters. See the server's own documentation for the full schema.
openfec_search_coordinated_expendituresSearch coordinated party expenditures (Schedule F) — spending a party committee makes on behalf of a candidate it supports, in coordination with that campaign. Distinct from independent expenditures (openfec_search_expenditures), which cannot be coordinated with the candidate,...11 params
Search coordinated party expenditures (Schedule F) — spending a party committee makes on behalf of a candidate it supports, in coordination with that campaign. Distinct from independent expenditures (openfec_search_expenditures), which cannot be coordinated with the candidate,...
candidate_idstringcommittee_idstringcyclenumbermax_amountnumbermax_datestringmin_amountnumbermin_datestringpageintegerpayee_namestringper_pageintegersortstringexpenditure_date · -expenditure_date · expenditure_amount · -expenditure_amountopenfec_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 params
Search 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.
candidate_idstringcommittee_idstringcyclenumberfiler_namestringform_typestringis_amendedbooleanmax_receipt_datestringmin_receipt_datestringmost_recentbooleanpageintegerper_pageintegerreport_typestringreport_yearnumberopenfec_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.9 params
Look up federal election races and candidate financial summaries. Find who's running in a race with fundraising totals, or get an aggregate race summary.
cycle*integerdistrictstringelection_fullbooleanmodestringsearch · summarydefault: searchoffice*stringH · S · Ppageintegerper_pageintegerstatestringzipstringopenfec_search_legalSearch FEC legal documents: advisory opinions, enforcement cases (MURs), alternative dispute resolutions, administrative fines, and statutes. The citation, penalty, respondent, ao_number, and case_number filters each apply to only some document types; with type omitted, the se...14 params
Search FEC legal documents: advisory opinions, enforcement cases (MURs), alternative dispute resolutions, administrative fines, and statutes. The citation, penalty, respondent, ao_number, and case_number filters each apply to only some document types; with type omitted, the se...
ao_numberstringcase_numberstringdate_kindstringissue_date · request_date · open_date · close_date · document_date · rtb_datefrom_hitintegerhits_returnedintegermax_datestringmax_penalty_amountnumbermin_datestringmin_penalty_amountnumberquerystringregulatory_citationstringrespondentstringstatutory_citationstringtypestringadvisory_opinions · murs · adrs · admin_fines · statutesopenfec_get_legal_documentFetch one FEC legal document — advisory opinion, MUR, ADR, administrative fine, or statute — by its type and number. openfec_search_legal replaces each result's documents and dispositions arrays with a count and category summary and cuts every commission vote down to a date an...4 params
Fetch one FEC legal document — advisory opinion, MUR, ADR, administrative fine, or statute — by its type and number. openfec_search_legal replaces each result's documents and dispositions arrays with a count and category summary and cuts every commission vote down to a date an...
arraystringdoc_type*stringadvisory_opinions · murs · adrs · admin_fines · statutesno*stringoffsetintegeropenfec_lookup_calendarLook up FEC calendar events, filing deadlines, and election dates. Use to find upcoming filing windows for a committee, locate when a federal election occurred, or scope FEC events by date range and category.13 params
Look up FEC calendar events, filing deadlines, and election dates. Use to find upcoming filing windows for a committee, locate when a federal election occurred, or scope FEC events by date range and category.
categorystring20 · 21 · 22 · 23 · 24 · 25descriptionstringdistrictstringelection_yearintegermax_datestringmin_datestringmodestringevents · filing_deadlines · election_datesdefault: eventsofficestringH · S · Ppageintegerper_pageintegerreport_typestringreport_yearintegerstatestringConfiguration
FEC_API_KEYOpenFEC API key — optional (DEMO_KEY: a small daily allowance shared per IP). Own key: OpenFEC publishes 1,000 req/hr. Free at api.data.gov.
MCP_LOG_LEVELdefault: infoSets the minimum log level for output (e.g., 'debug', 'info', 'warn').
MCP_TRANSPORT_TYPEdefault: httpSelects the HTTP transport.
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'.
Readme
@cyanheads/openfec-mcp-server
Access FEC campaign finance data on candidates, money trails, and election filings via MCP. STDIO or Streamable HTTP.
Details
- Repository
- github.com/cyanheads/openfec-mcp-server
- Categories
- Data & Analytics, Research & Academic
- Package
@cyanheads/openfec-mcp-server- Transport
- STDIO, HTTP
- Registry
- MCP registry, active
- Resources
- 1
- Prompts
- 2
- Tools verified
- Nov 6, 2026
Questions
What can an agent do with the openfec MCP server?
It gives an agent access to US federal campaign finance data from the FEC's OpenFEC API. It can search candidates, committees and filings, trace contributions and disbursements, and look up election races, legal documents and filing deadlines.
Which tools does the openfec MCP server provide?
It provides 12 tools, including openfec_search_candidates, openfec_search_committees, openfec_get_committee_totals and openfec_search_contributions. Others cover disbursements, independent and coordinated party expenditures, filings, elections, legal documents and the FEC calendar.
How do I install the openfec MCP server in Claude Code?
Run claude mcp add --transport http openfec https://openfec.caseyjhand.com/mcp in a terminal. Once it is added, the agent can query FEC data through the hosted server without running anything locally.
Does the openfec MCP server need an API key?
The FEC_API_KEY environment variable is optional. Without it the server uses a small daily allowance shared per IP, and a personal key from api.data.gov raises the limit.
Where does the openfec MCP server rank in its category?
It is in the Data & Analytics category and ranks in the top 50 on that category page. Other servers listed alongside it include Metabase, PostHog and Microsoft Fabric MCP Server, and this one focuses on US campaign finance records.
More from cyanheads
All 18- Smithsonian Mcp Server2
- Git Mcp Server246
- Workflows Mcp Server32
- Ntfy Mcp Server27
- Mailchimp Mcp Server2
- Mcp Ts Template155
- Pubmed Mcp Server171
- Clinicaltrialsgov Mcp Server103
- Openalex Mcp Server18
- Congressgov Mcp Server2
- Obsidian Mcp Server721
- Open Meteo Mcp Server14
- Pubchem Mcp Server13
- Cdc Health Mcp Server5
- Usaspending Mcp Server5
- Eia Energy Mcp Server3
- Mcp Ts Core155
Similar to Openfec Mcp Server
More Data & AnalyticsfecfilePluginhodgesmr/agent-fecfile42 starsAnalyze FEC (Federal Election Commission) campaign finance filings. Use when working with FEC filing IDs, campaign finance data, contributions, disbursements, o
Usaspending Mcp ServerMCP servercyanheads5 starsRead-only access to US federal award, recipient, agency, and spending data from USAspending.gov.
Congressgov Mcp ServerMCP servercyanheads2 starsRead-only access to U.S. congressional data: bills, votes, members, committees, and the Congressional Record.
StringTheoryMCP serverpq-stringtheoryCivic research over congressional votes, bill text, and FEC and STOCK Act records, with primary-source receipts.
Mcp Private Company Funding HistoryMCP servermambalabsdevRetrieves SEC funding filings for private US companies, including Form D and Form C offerings.