Federal Election Commission API and MCP server for AI agents
Let Claude, ChatGPT or your own agent read Federal Election Commission. No Federal Election Commission API key needed.
Add to your agent
Paste this into Claude Code, Cursor, Codex or any agent. It adds the server itself.
Read https://bowmark.ai/sites/fec.md and add Bowmark's Federal Election Commission MCP server to my agent.Run this in a terminal, then sign in when the browser opens. Claude Code keeps its own sign-in (a claude.ai sign-in does not carry over), so add only this one server. Adding the Bowmark plugin as well lists every tool twice.
claude mcp add --transport http bowmark-fec https://api.bowmark.ai/mcp/site/fecPress the button, or add this to ~/.cursor/mcp.json.
{
"mcpServers": {
"bowmark-fec": {
"url": "https://api.bowmark.ai/mcp/site/fec"
}
}
}Press the button, or run this in a terminal.
code --add-mcp '{"name":"bowmark-fec","type":"http","url":"https://api.bowmark.ai/mcp/site/fec"}'Run this in a terminal.
codex mcp add bowmark-fec --url https://api.bowmark.ai/mcp/site/fecIn Claude, open Plugins → Add → Add custom connector, paste this URL, and pick Sign in now.
https://api.bowmark.ai/mcp/site/fecIn ChatGPT, open Plugins, press +, choose Add custom MCP server and paste this URL.
https://api.bowmark.ai/mcp/site/fecAny MCP client that takes a remote (streamable HTTP) server: give it this URL.
https://api.bowmark.ai/mcp/site/fecFunctions
Open a function to see its parameters and run it with your own API key.
getCandidateOne FEC candidate's mailing address plus each principal campaign committee's website, email, treasurer and address.POST /v1/sites/fec/getCandidate
Parameters
curl -X POST https://api.bowmark.ai/v1/sites/fec/getCandidate \ -H "Authorization: Bearer $BOWMARK_API_KEY" \ -H "Content-Type: application/json" \ -d '{"args":{"candidateId":"S2MA00170"}}'import { bowmark } from "@bowmark/web"; const result = await bowmark.providers.fec.getCandidate({ candidateId: "S2MA00170" });import asyncio from bowmark_web import bowmark result = asyncio.run(bowmark.providers.fec.getCandidate({"candidateId": "S2MA00170"}))Responsereturns GetCandidateResultinterface FecCommittee { committeeId: string; name: string; treasurer: string | null; email: string | null; website: string | null; address: string | null; } interface GetCandidateResult { candidateId: string; name: string; party: string | null; office: string; state: string; district: string | null; incumbentStatus: string | null; electionYears: number[]; address: string | null; committees: FecCommittee[]; }listCandidatesLists US federal election candidates (FEC campaign-finance filings) by election year, party, office, state, name or first-filed date, one row per…POST /v1/sites/fec/listCandidates
Parameters
FEC party code, e.g. "DEM", "REP", "LIB".
"H", "S" or "P".
Two-letter code, e.g. "MA".
1-100, default 20.
curl -X POST https://api.bowmark.ai/v1/sites/fec/listCandidates \ -H "Authorization: Bearer $BOWMARK_API_KEY" \ -H "Content-Type: application/json" \ -d '{"args":{"electionYear":2024,"party":"DEM","office":"S","state":"MA","limit":5}}'import { bowmark } from "@bowmark/web"; const result = await bowmark.providers.fec.listCandidates({ electionYear: 2024, party: "DEM", office: "S", state: "MA", limit: 5 });import asyncio from bowmark_web import bowmark result = asyncio.run(bowmark.providers.fec.listCandidates({ "electionYear": 2024, "party": "DEM", "office": "S", "state": "MA", "limit": 5 }))Responsereturns ListCandidatesResultinterface FecCandidate { candidateIds: string[]; // every FEC id this person filed under name: string; party: string | null; office: string; // H, S or P state: string; district: string | null; incumbentStatus: string | null; electionYears: number[]; firstFileDate: string | null; lastFileDate: string | null; principalCommittees: { committeeId: string; name: string; treasurer: string | null }[]; } interface ListCandidatesResult { candidates: FecCandidate[]; duplicatesMerged: number; page: number; totalPages: number; totalRows: number; }