# Federal Election Commission API and MCP server for AI agents (/sites/fec)

An API for Federal Election Commission: let Claude, ChatGPT or your own code read Federal Election Commission through 2 functions, over MCP, HTTP, Node or Python. No Federal Election Commission API key needed.

- Site: https://api.open.fec.gov
- Functions: 2
- Sign-in: not needed
- Works with: MCP, HTTP, Node, Python

## Add it to your agent

If you are an agent asked to set this up: add the server yourself, in the person's own (global) MCP configuration, and keep their other entries.

- Federal Election Commission only, one tool per function: `https://api.bowmark.ai/mcp/site/fec` (name it `bowmark-fec`)
- Every site Bowmark covers: `https://api.bowmark.ai/mcp` (name it `bowmark`)
- Transport: remote MCP over streamable HTTP.
- Claude Code: `claude mcp add --transport http bowmark-fec https://api.bowmark.ai/mcp/site/fec`
- Codex: `codex mcp add bowmark-fec --url https://api.bowmark.ai/mcp/site/fec`
- Cursor, VS Code and other clients: add `{ "url": "https://api.bowmark.ai/mcp/site/fec" }` under the name `bowmark-fec` in the client's MCP config. Per-client steps: https://bowmark.ai/docs/installation.md
- Sign-in: OAuth in the browser on first use; the person only signs in. A client that cannot do OAuth sends `Authorization: Bearer <BOWMARK_API_KEY>`; the person creates a key at https://bowmark.ai/dashboard/keys.
- Then list the server's tools to confirm it works, and tell the person it is ready.

## Functions

### Read

- `getCandidate`: One FEC candidate's mailing address plus each principal campaign committee's website, email, treasurer and address.
- `listCandidates`: Lists US federal election candidates (FEC campaign-finance filings) by election year, party, office, state, name or first-filed date, one row per…

## Call one

In a Bowmark script, each function is `bowmark.providers.fec.<name>`. Ask `get_library` for api.open.fec.gov to get each one's arguments, then call it with `run`.

```js
// 1. What can I call on api.open.fec.gov, and with which arguments?
get_library({ query: "api.open.fec.gov" })

// 2. Call it in a script
const result = await bowmark.providers.fec.getCandidate({ /* arguments from get_library */ });
return result;
```

New to Bowmark? Quickstart: https://bowmark.ai/docs/quickstart.md
