openfec-mcp-server — Claude Code MCP server: what it does, install
openfec-mcp-server connects your AI assistant to US Federal Election Commission data to investigate campaign contributions, committee expenses, and filings.
Apache-2.0 2,092 installs ★ 2 updated 2026-10-09
claude mcp add --transport http openfec-mcp-server https://openfec-mcp-server--cyanheads.run.toolsWhat openfec-mcp-server does
This server integrates the OpenFEC API into MCP environments. It supplies 12 specialized tools to inspect US campaign finance data: locating candidates by state and election cycle, reviewing political committee balances, and querying Schedule A through F records for receipts, disbursements, and independent campaign spending.
It also registers resource URIs for candidate and committee profiles, along with prompt templates such as openfec_money_trail to trace political donations. When running locally via npx, you must supply a FEC_API_KEY token, whereas the hosted HTTP endpoint connects without local packaging.
What it helps with
- retrieve total funds raised and spent by a federal candidate
- audit committee receipts and expenditures across two-year cycles
- track independent and coordinated political committee spending
- look up FEC advisory opinions, administrative fines, and filing deadlines
Example prompts for the agent
- Search for 2024 Senate candidates in Texas and compare their fundraising totals
- Run the openfec_money_trail prompt to investigate outside spending on this race
- Fetch the latest Schedule B disbursements for committee C00401224
How to install openfec-mcp-server
Platform CLI: remote server
claude mcp add --transport http openfec-mcp-server https://openfec-mcp-server--cyanheads.run.toolsPlatform CLI: remote server
codex mcp add openfec-mcp-server --url https://openfec-mcp-server--cyanheads.run.toolsConfig file
{
"mcpServers": {
"openfec-mcp-server": {
"url": "https://openfec-mcp-server--cyanheads.run.tools"
}
}
}Config file
{
"servers": {
"openfec-mcp-server": {
"type": "http",
"url": "https://openfec-mcp-server--cyanheads.run.tools"
}
}
}Platform CLI: remote server
gemini mcp add -t http openfec-mcp-server https://openfec-mcp-server--cyanheads.run.toolsStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about openfec-mcp-server
How to install openfec-mcp-server in Claude Code?
Run claude mcp add --transport http openfec-mcp-server https://openfec-mcp-server--cyanheads.run.tools in your terminal.
What does openfec-mcp-server do?
It provides tools, resources, and prompt templates to query US campaign finance records, election calendars, and candidate filings from the FEC.
Is an FEC API key required?
A valid FEC_API_KEY environment variable is needed when running the package via npx. Connecting to the hosted HTTP URL uses the remote service configuration directly.