A Model Context Protocol (MCP) server that provides access to Federal Election Commission (FEC) campaign finance data through the OpenFEC API.
git clone https://github.com/psalzman/mcp-openfec
cd mcp-openfec
npm install
.env
file in the root directory and add your OpenFEC API key:OPENFEC_API_KEY=your_api_key_here
npm run build
To use this MCP server with Claude Desktop:
Locate your Claude Desktop configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
Add the following configuration to the file:
{
"mcpServers": {
"openfec": {
"command": "node",
"args": ["/absolute/path/to/mcp-openfec/build/server.js"],
"env": {
"OPENFEC_API_KEY": "your_api_key_here"
},
"disabled": false,
"autoApprove": []
}
}
}
Important configuration notes:
/absolute/path/to/mcp-openfec
with the actual path where you cloned the repositorydisabled
to false
to enable the serverautoApprove
as an empty array for securityenv
sectionget_candidate
: Get detailed information about a candidateget_candidate_financials
: Get financial data for a candidatesearch_candidates
: Search for candidates by name or other criteriaget_committee
: Get detailed information about a committeeget_candidate_contributions
: Get individual contributions for a candidateget_filings
: Retrieve official FEC filingsget_independent_expenditures
: Get independent expendituresget_electioneering
: Get electioneering communicationsget_party_coordinated_expenditures
: Get party coordinated expendituresget_communication_costs
: Get corporate/union communication costsget_audit_cases
: Get FEC audit cases and findingsget_bulk_downloads
: Get links to bulk data downloadsThe server implements rate limiting to comply with OpenFEC API guidelines:
To modify the server:
src
directorynpm run build
This project is licensed under the BSD 3-Clause License - a permissive open source license that ensures maximum freedom for users while maintaining attribution requirements. The license allows you to:
With three main conditions:
The BSD 3-Clause License is widely used in academic and commercial settings, offering a good balance between permissiveness and protecting contributors.
git checkout -b feature/my-new-feature
)git commit -am 'Add some feature'
)git push origin feature/my-new-feature
)Copyright (c) 2025, Phillip Salzman & Foundry Peak, LLC. All rights reserved. Web: http://foundrypeak.com/
For licensing details, see the LICENSE file.
Seamless access to top MCP servers powering the future of AI integration.