FEC MCP Server
fec-mcp-server is a command-line Model Context Protocol server for federal campaign-finance research. It has no web interface. It queries the OpenFEC API and returns formatted text for an MCP client.
Install and configure
Install Node.js 20 or later. Get an API key from the OpenFEC developer site. Keep the key private.
npm install -g fec-mcp-serverSet FEC_API_KEY in the MCP server environment. For example, this Claude Desktop configuration starts the installed command-line server.
{
"mcpServers": {
"fec": {
"command": "fec-mcp-server",
"env": {
"FEC_API_KEY": "your-api-key-here"
}
}
}
}You can also run the package through npx fec-mcp-server.
Tools
The server exposes eight tools.
search_candidatesfinds federal candidate records and principal committee IDs.get_committee_financesreturns cycle totals and latest final-report balances.get_receiptsreturns itemized Schedule A receipts for one committee.get_disbursementsreturns itemized Schedule B disbursements for one committee.get_independent_expendituresreturns Schedule E spending by a committee or against or for a candidate.get_committee_flagslists RFAI and amended-filing records for one committee.search_donorssearches individual Schedule A records across committees.search_spendingsearches Schedule B records across committees.






