# openfec-mcp-server

openfec-mcp-server connects your AI assistant to US Federal Election Commission data to investigate campaign contributions, committee expenses, and filings.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · 2092 installs · ★ 2 repo stars
- Author: cyanheads
- License: Apache-2.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/cyanheads/openfec-mcp-server
- Updated: 2026-10-09
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/openfec-mcp-server

## What it 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.

## Requirements
- Remote server: `https://openfec-mcp-server--cyanheads.run.tools`

## Install

### Claude Code (native platform)

**Platform CLI: remote server**
```bash
claude mcp add --transport http openfec-mcp-server https://openfec-mcp-server--cyanheads.run.tools
```

### Codex

**Platform CLI: remote server**
```bash
codex mcp add openfec-mcp-server --url https://openfec-mcp-server--cyanheads.run.tools
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "openfec-mcp-server": {
            "url": "https://openfec-mcp-server--cyanheads.run.tools"
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "openfec-mcp-server": {
            "type": "http",
            "url": "https://openfec-mcp-server--cyanheads.run.tools"
        }
    }
}
```

### Gemini CLI

**Platform CLI: remote server**
```bash
gemini mcp add -t http openfec-mcp-server https://openfec-mcp-server--cyanheads.run.tools
```

## When to use it
- 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
- 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

## Similar
- [agentfec](https://affpapa.org/en/nevibecode/mcp/agentfec.md) — MCP server · 1027 installs
- [fecfile](https://affpapa.org/en/nevibecode/skills/fecfile.md) — skill · 1 install
- [Présidentielle IA](https://affpapa.org/en/nevibecode/mcp/presidentielle-ia.md) — MCP server
- [CIV.IQ](https://affpapa.org/en/nevibecode/mcp/civiq.md) — MCP server · 186 installs
- [Pump SDK MCP Server](https://affpapa.org/en/nevibecode/mcp/pump-sdk-mcp-server.md) — MCP server · ★ 150 repo stars
- [Lunch Money](https://affpapa.org/en/nevibecode/mcp/lunch-money.md) — MCP server · ★ 115 repo stars

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
