# Openfec MCP Server

> Openfec MCP Server is an open-source MCP server for legal and government. Search FEC campaign finance data on candidates, committees, filings and spending. It can run locally on your machine or as a hosted remote server.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API, self-hosted
- **Repository:** https://github.com/cyanheads/openfec-mcp-server
- **MCP Registry name:** io.github.cyanheads/openfec-mcp-server
- **Categories:** [legal and government](https://ai-powered.com/categories/legal-and-government), [analytics and data](https://ai-powered.com/categories/analytics-and-data)
- **Listing updated:** 2026-11-14

## About

Where most finance data servers return one table, this one is organised around the FEC filing schedules. Separate tools cover itemized contributions (Schedule A), disbursements (Schedule B), independent expenditures (Schedule E) and coordinated party expenditures (Schedule F), each with itemized and aggregate modes such as by size, state, employer, occupation or purpose.

Other tools find candidates and committees, return committee totals by two-year cycle or ranked by entity type, search filings by form type and date, look up race fundraising summaries, and search FEC legal documents, enforcement cases and the filing calendar. The server also exposes five resource templates for candidate, committee and race profiles and two prompts, a money-trail trace and a campaign financial analysis.

It runs over stdio or streamable HTTP, with a public hosted endpoint listed. An OpenFEC API key is optional: without one it falls back to the shared DEMO_KEY with a small daily allowance, while a free key from api.data.gov gets 1,000 requests an hour.

## Features

- **Filing schedules:** Separate tools for Schedules A, B, E and F.
- **Committee totals:** Receipts, disbursements, cash on hand and debts by cycle.
- **Race lookup:** Candidates in a race with fundraising totals.
- **Legal search:** Advisory opinions, enforcement cases and statutes.
- **Resources and prompts:** Profile templates plus money-trail and analysis prompts.
- **Filing calendar:** Deadlines, events and election dates.

## Good for

- Trace the money around a candidate
- Find top contributors by employer or occupation
- Look up independent spending for or against a candidate
- Check an upcoming filing deadline
- Review FEC enforcement cases

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http openfec-mcp-server https://openfec.caseyjhand.com/mcp
```

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://openfec.caseyjhand.com/mcp
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "openfec-mcp-server": {
      "url": "https://openfec.caseyjhand.com/mcp"
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "openfec-mcp-server": {
      "type": "http",
      "url": "https://openfec.caseyjhand.com/mcp"
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "openfec-mcp-server": {
      "serverUrl": "https://openfec.caseyjhand.com/mcp"
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "openfec-mcp-server": {
      "type": "http",
      "url": "https://openfec.caseyjhand.com/mcp"
    }
  }
}
```

## Tools

- `openfec_search_candidates`: Finds federal candidates or fetches one by FEC ID.
- `openfec_search_committees`: Finds political committees.
- `openfec_get_committee_totals`: Financial totals for a committee or ranked committees.
- `openfec_search_contributions`: Itemized or aggregated contributions.
- `openfec_search_disbursements`: Itemized or aggregated committee spending.
- `openfec_search_expenditures`: Independent expenditures.
- `openfec_search_coordinated_expenditures`: Coordinated party expenditures.
- `openfec_search_filings`: FEC filings and reports.
- `openfec_lookup_elections`: Race candidates and fundraising totals.
- `openfec_search_legal`: Advisory opinions, cases and statutes.
- `openfec_get_legal_document`: One legal document in full.
- `openfec_lookup_calendar`: Filing deadlines and election dates.

## FAQ

### Do I need an API key?

No, but the optional FEC_API_KEY raises limits. DEMO_KEY has a small shared daily allowance; own keys get 1,000 requests an hour.

### Is there a hosted version?

Yes, the registry lists a public endpoint at openfec.caseyjhand.com/mcp.

### How many tools are there?

Twelve tools, five resource templates and two prompts.

### Does it cover legal documents?

Yes, it searches advisory opinions, enforcement cases, alternative dispute resolutions, administrative fines and statutes.

### Is Openfec MCP Server free?

Yes. Openfec MCP Server is open source, so you can use and self-host it for free.

### How do I add Openfec MCP Server to Claude Code?

Run this command in your terminal: claude mcp add --transport http openfec-mcp-server https://openfec.caseyjhand.com/mcp

### What are the best alternatives to Openfec MCP Server?

The closest alternatives to Openfec MCP Server are Agent-Native Analytics, Google Ads + Meta Ads + SEO/GEO MCP, dashboard-icons, Tapetide - Indian Stock Market MCP and World Monitor.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Agent-Native Analytics](https://ai-powered.com/mcp/agent-native-analytics): Agent-Native Analytics is an open-source MCP server for analytics and data.
- [Google Ads + Meta Ads + SEO/GEO MCP](https://ai-powered.com/mcp/google-ads-meta-ads-seo-geo-mcp): Google Ads + Meta Ads + SEO/GEO MCP is a freemium MCP server for marketing and seo.
- [dashboard-icons](https://ai-powered.com/mcp/dashboard-icons): dashboard-icons is an open-source MCP server for analytics and data.
- [Tapetide - Indian Stock Market MCP](https://ai-powered.com/mcp/tapetide-indian-stock-market-mcp): Tapetide - Indian Stock Market MCP is a freemium MCP server for finance and payments.
- [World Monitor](https://ai-powered.com/mcp/world-monitor): World Monitor is a freemium MCP server for analytics and data.
- [DataArcus for Power BI](https://ai-powered.com/mcp/dataarcus-for-power-bi): DataArcus for Power BI is a free MCP server for analytics and data.
- [CompanyData](https://ai-powered.com/mcp/companydata): CompanyData is a paid MCP server for analytics and data.
- [Cipo](https://ai-powered.com/mcp/cipo): Cipo is a freemium MCP server for legal and government.

---
Source: https://ai-powered.com/mcp/openfec-mcp-server
