Queries OpenFEC campaign-finance records for candidates, committees, donations, spending, and independent expenditures.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag โ we're steadily working through the catalog.
๐ก Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Fec MCP Server.
search_candidatesCallable MCP tool function
get_committee_financesCallable MCP tool function
get_receiptsCallable MCP tool function
get_disbursementsCallable MCP tool function
get_independent_expendituresCallable MCP tool function
get_committee_flagsCallable MCP tool function
The sh-patterson/fec-mcp-server MCP server provides MCP access to federal campaign-finance records from the OpenFEC API. It has no web interface; an MCP client starts the command-line process and receives formatted text responses.
Its tools cover candidate discovery, committee financial summaries, itemized receipts, itemized disbursements, independent expenditures, committee filing flags, donor searches, and spending searches. Candidate searches can return principal committee IDs, which can then be used for committee-level requests.
The server sends requests to OpenFEC and presents the returned records, source IDs, and URLs in its responses. Financial summaries use committee totals for cycle-level receipts, disbursements, contribution categories, and loans, while cash and debt balances come from the latest final report. The response labels the period model used for each amount.
Each query returns one OpenFEC page rather than the complete matching dataset. Supported tools accept limits from 1 to 100, with a default of 20. Several search and transaction tools return continuation state. Pass the returned continuation value to the same tool with the same effective filters to retrieve later pages. Candidate continuation uses page numbers; transaction continuation uses OpenFEC keyset cursors.
Resolve a candidate or committee before requesting committee data. When comparing a financial summary with receipts or disbursements, keep the cycle and two-year transaction period aligned.
The sh-patterson/fec-mcp-server MCP server requires Node.js 20 or later and an OpenFEC API key. Set the key in the process environment under FEC_API_KEY; keep it private. The package can be installed globally with npm install -g fec-mcp-server, or run through npx fec-mcp-server.
For Claude Desktop, configure an MCP entry that starts the fec-mcp-server command and supplies FEC_API_KEY in its environment. The project also includes a Dockerfile. Build it with docker build -t fec-mcp-server ., then run the image interactively while passing the API key as an environment variable.
Available tools include:
search_candidates for federal candidate records and principal committee IDs.get_committee_finances for cycle totals and final-report balances.get_receipts and get_disbursements for itemized Schedule A and Schedule B records.get_independent_expenditures for Schedule E spending by, for, or against a candidate.get_committee_flags for RFAI and amended-filing records.search_donors for individual Schedule A records across committees.search_spending for Schedule B records across committees.get_receipts and get_disbursements can optionally include a flagged-notables block. This analyst reference data is not FEC data or a legal determination and should be independently checked.
OpenFEC updates data nightly, and API caching may delay refreshed values for up to one hour. A registered API key has a base limit of 1,000 requests per hour. Counts may be exact, approximate, or unspecified, so narrow queries before drawing conclusions from result totals.
An RFAI or amendment returned by get_committee_flags is a review lead, not proof of a violation. Campaign-finance records should be attributed to the Federal Election Commission and OpenFEC. Review applicable FEC terms, acceptable-use requirements, and restrictions on commercial use and contributor data before using the service. The package is licensed under MIT.
Factual signals from GitHub, npm, and our automated checks โ not a rating.
No reviews yet โ be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/sh-patterson-fec-mcp-server)<a href="https://allmcps.com/mcp/sh-patterson-fec-mcp-server"><img src="https://allmcps.com/api/badge/sh-patterson-fec-mcp-server?style=directory" alt="Fec MCP Server on AllMCPs" /></a>