CCM
/MCP
SkillsMCPMarketplacesDigestToolsAdvertise

This week in Claude

Every Monday: Claude Code, Agent SDK, MCP, and the Anthropic platform moves worth your time.

Skills by Category
Frontend DevelopmentBackend & APIsTesting & QASecurityDevOps & CI/CDGit & Pull RequestsDocumentationCode Review & QualityAI & Agent BuildingSkill Development
MCP Servers by Category
Sales & MarketingWeb & Browser AutomationDatabasesAI & LLM ToolsCloud & InfrastructureCommunication & MessagingDeveloper ToolsDesign & CreativeDocuments & KnowledgeSearch & Web Crawling
Marketplaces by Category
AI Agents & OrchestrationLLM IntegrationDevelopment ToolsFrontend & UIBackend & APIsDatabasesTesting & Code QualityDevOps & CloudSecurity & ComplianceGit & Version Control

Claude Code Marketplaces

Discover Claude Code plugins, extensions, and tools. Automatically updated directory of Anthropic Claude AI marketplaces with development tools, productivity plugins, and integrations.

Resources

  • Browse Skills
  • Browse MCP Servers
  • Browse Marketplaces
  • Skill index
  • MCP index
  • Marketplace index
  • Plugins Reference

Community

  • About
  • Tools
  • Feedback
  • Privacy Policy
  • Advertise

Built for the Claude Code community with Claude Code by mertbuilds.com

Independent project, not affiliated with Anthropic
cyanheads avatar

Openfec Mcp Server

cyanheads/openfec-mcp-server
19 toolsSTDIO, HTTPregistry active
Summary

Wraps the FEC's OpenFEC API with nine tools covering candidates, committees, contributions, disbursements, independent expenditures, filings, elections, legal documents, and the FEC calendar. You can search itemized Schedule A contributions with filters for employer, occupation, state, and amount range, or pull aggregated breakdowns by size bracket. The disbursements tool works the same way for Schedule B spending. Independent expenditures show support or oppose positions per candidate. Five resources expose candidate profiles, committee details, and election races at the presidential, senate, and house district level. Two prompts frame campaign finance analysis and money trail investigations. Requires an FEC API key. Available via stdio, streamable HTTP, or a hosted instance at openfec.caseyjhand.com/mcp.

CodeRabbit
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Try For Free →
inference shell
inference shell
create and run specialised agents in minutes
build now →
MCP-ready Email SendingMCP-ready Email Sending
MCP-ready Email Sending
Plug Mailtrap into your AI workflow and let it handle the email.
Connect Mailtrap MCP →
Make your agent a DeFi expert
Make your agent a DeFi expert
Agent, run crypto. Access onchain data & trade routes via 1inch.
Install now →
Capacitor - Shared memory for your team’s coding agents.
Capacitor - Shared memory for your team’s coding agents.
Make coding agent sessions - Searchable, Shareable, Vendor-neutral & Scored.
Try For Free →
CodeScene MCP ServerCodeScene MCP Server
CodeScene MCP Server
Your agent targets a perfect 10 Code Health score. Deterministic. Every commit.
Try For Free →
Give your AI the whole web as clean markdownGive your AI the whole web as clean markdown
Give your AI the whole web as clean markdown
Integrate web data into your AI product. One API to scrape website & brand data.
Get API Key Now →
belt - the only tool your agent needs
belt - the only tool your agent needs
belt cli automatically finds the best tools and skills for your agent. image, video, music, tts...
one prompt install →
CodeRabbit
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Try For Free →
inference shell
inference shell
create and run specialised agents in minutes
build now →
MCP-ready Email SendingMCP-ready Email Sending
MCP-ready Email Sending
Plug Mailtrap into your AI workflow and let it handle the email.
Connect Mailtrap MCP →
Make your agent a DeFi expert
Make your agent a DeFi expert
Agent, run crypto. Access onchain data & trade routes via 1inch.
Install now →
Capacitor - Shared memory for your team’s coding agents.
Capacitor - Shared memory for your team’s coding agents.
Make coding agent sessions - Searchable, Shareable, Vendor-neutral & Scored.
Try For Free →
CodeScene MCP ServerCodeScene MCP Server
CodeScene MCP Server
Your agent targets a perfect 10 Code Health score. Deterministic. Every commit.
Try For Free →
Give your AI the whole web as clean markdownGive your AI the whole web as clean markdown
Give your AI the whole web as clean markdown
Integrate web data into your AI product. One API to scrape website & brand data.
Get API Key Now →
belt - the only tool your agent needs
belt - the only tool your agent needs
belt cli automatically finds the best tools and skills for your agent. image, video, music, tts...
one prompt install →

Tools

Public tool metadata for what this MCP can expose to an agent.

9 tools
openfec_search_candidatesFind federal candidates by name, state, office, party, or cycle. Retrieve a specific candidate by FEC ID with financial totals. Candidate IDs start with H (House), S (Senate), or P (President) followed by digits.14 params

Find federal candidates by name, state, office, party, or cycle. Retrieve a specific candidate by FEC ID with financial totals. Candidate IDs start with H (House), S (Senate), or P (President) followed by digits.

Parameters* required
candidate_idstring
FEC candidate ID (e.g., P00003392, H2CO07170). When provided, returns a single candidate with full detail.
candidate_statusstring
Candidate status: C=present, F=future, N=not yet, P=prior.one of C · F · N · P
cyclenumber
Two-year election cycle (even year, e.g., 2024).
districtstring
Two-digit district number for House candidates.
election_yearnumber
Specific election year the candidate ran in.
has_raised_fundsboolean
Only candidates whose committee has received receipts.
include_totalsboolean
Include financial totals (receipts, disbursements, cash on hand). Defaults to true when fetching by candidate_id.
incumbent_challengestring
Incumbent status: I=incumbent, C=challenger, O=open seat.one of I · C · O
officestring
Filter by office: H=House, S=Senate, P=President.one of H · S · P
pagenumber
Page number (1-indexed). Default 1.
partystring
Three-letter party code (e.g., DEM, REP, LIB).
per_pagenumber
Results per page. Default 20, max 100.
querystring
Full-text candidate name search.
statestring
Two-letter US state code (e.g., AZ, CA).
openfec_search_committeesFind political committees (campaign, PAC, Super PAC, party) by name, type, candidate affiliation, or state. Retrieve a specific committee by FEC ID. Committee IDs start with C followed by digits (e.g., C00358796).11 params

Find political committees (campaign, PAC, Super PAC, party) by name, type, candidate affiliation, or state. Retrieve a specific committee by FEC ID. Committee IDs start with C followed by digits (e.g., C00358796).

Parameters* required
candidate_idstring
Find committees linked to this candidate (authorized, leadership, joint fundraising).
committee_idstring
FEC committee ID (e.g., C00358796). Starts with 'C' followed by digits. Returns a single committee with full detail.
committee_typestring
Committee type code. Common: H (House), S (Senate), P (Presidential), O (Super PAC), N (PAC nonqualified), Q (PAC qualified), X (Party nonqualified), Y (Party qualified).
cyclenumber
Two-year election cycle (even year).
designationstring
Committee designation. A (authorized), B (lobbyist PAC), D (leadership PAC), J (joint fundraiser), P (principal campaign), U (unauthorized).
pagenumber
Page number (1-indexed). Default 1.
partystring
Three-letter party code (e.g., DEM, REP).
per_pagenumber
Results per page. Default 20, max 100.
querystring
Full-text committee name search.
statestring
Two-letter state code.
treasurer_namestring
Full-text treasurer name search.
openfec_search_contributionsSearch itemized individual contributions (Schedule A) or get aggregate breakdowns by size, state, employer, or occupation. Use to answer "who is funding this committee?" Itemized mode requires a committee_id. Aggregate by_size/by_state can use candidate_id instead.18 params

Search itemized individual contributions (Schedule A) or get aggregate breakdowns by size, state, employer, or occupation. Use to answer "who is funding this committee?" Itemized mode requires a committee_id. Aggregate by_size/by_state can use candidate_id instead.

Parameters* required
candidate_idstring
Candidate ID. Enables by_size and by_state aggregates without a committee_id.
committee_idstring
Receiving committee ID (e.g., C00703975).
contributor_citystring
Contributor city. Itemized only.
contributor_employerstring
Full-text employer search. Itemized only.
contributor_namestring
Full-text donor name search. Itemized only.
contributor_occupationstring
Full-text occupation search. Itemized only.
contributor_statestring
Two-letter state code (e.g., CA). Itemized only.
contributor_zipstring
ZIP code prefix (starts-with match). Itemized only.
cursorstring
Opaque pagination cursor from a previous response. Itemized mode only (keyset pagination).
cyclenumber
Two-year election cycle (e.g., 2024). Even years only. Defaults to current cycle for itemized mode.
is_individualboolean
Only individual contributions (excludes committee-to-committee transfers). Itemized only.
max_amountnumber
Maximum contribution amount in dollars. Itemized only.
max_datestring
Latest contribution date (YYYY-MM-DD). Itemized only.
min_amountnumber
Minimum contribution amount in dollars. Itemized only.
min_datestring
Earliest contribution date (YYYY-MM-DD). Itemized only.
modestring
Query mode. "itemized" returns individual contribution records (keyset pagination). "by_size" aggregates by contribution size bucket. "by_state" aggregates by contributor state. "by_employer" aggre...one of itemized · by_size · by_state · by_employer · by_occupationdefault: itemized
per_pagenumber
Results per page (max 100).default: 20
sortstring
Sort field. Itemized only.one of contribution_receipt_date · contribution_receipt_amount
openfec_search_disbursementsSearch itemized committee spending (Schedule B) or get aggregate breakdowns by purpose or recipient. All modes require a committee_id. Use to answer "what is this committee spending money on?" or "who is receiving payments from this committee?"16 params

Search itemized committee spending (Schedule B) or get aggregate breakdowns by purpose or recipient. All modes require a committee_id. Use to answer "what is this committee spending money on?" or "who is receiving payments from this committee?"

Parameters* required
committee_idstring
Spending committee ID (e.g., C00703975). Required for all modes.
cursorstring
Opaque pagination cursor from a previous response. Itemized mode only (keyset pagination).
cyclenumber
Two-year election cycle (e.g., 2024). Even years only.
disbursement_descriptionstring
Full-text description search (e.g., "media buy", "consulting"). Itemized only.
disbursement_purpose_categorystring
Purpose category code. Itemized only.
max_amountnumber
Maximum amount in dollars. Itemized only.
max_datestring
Latest disbursement date (YYYY-MM-DD). Itemized only.
min_amountnumber
Minimum amount in dollars. Itemized only.
min_datestring
Earliest disbursement date (YYYY-MM-DD). Itemized only.
modestring
Query mode. "itemized" returns individual disbursement records (keyset pagination). "by_purpose" aggregates by purpose category. "by_recipient" aggregates by recipient name. "by_recipient_id" aggre...one of itemized · by_purpose · by_recipient · by_recipient_iddefault: itemized
per_pagenumber
Results per page (max 100).default: 20
recipient_citystring
Recipient city. Itemized only.
recipient_committee_idstring
Recipient committee ID (for committee-to-committee transfers). Itemized only.
recipient_namestring
Full-text payee name search. Itemized only.
recipient_statestring
Recipient state. Itemized only.
sortstring
Sort field. Itemized only.one of disbursement_date · disbursement_amount
openfec_search_expendituresSearch independent expenditures (Schedule E) — outside spending supporting or opposing federal candidates. Covers Super PACs, party committees, and other groups. Use itemized mode for individual expenditure records, or by_candidate for aggregated totals per candidate.18 params

Search independent expenditures (Schedule E) — outside spending supporting or opposing federal candidates. Covers Super PACs, party committees, and other groups. Use itemized mode for individual expenditure records, or by_candidate for aggregated totals per candidate.

Parameters* required
candidate_idstring
Targeted candidate ID (e.g., P00003392).
candidate_officestring
Office of the targeted candidate: H=House, S=Senate, P=President.one of H · S · P
candidate_office_statestring
Two-letter state code of the targeted race.
candidate_partystring
Three-letter party code of the targeted candidate (e.g., DEM, REP).
committee_idstring
Spending committee ID (e.g., C00703975).
cursorstring
Opaque pagination cursor from a previous response. Itemized mode only (keyset pagination).
cyclenumber
Two-year election cycle (e.g., 2024). Even years only.
is_noticeboolean
Only 24/48-hour notice filings (near-election spending). Itemized only.
max_amountnumber
Maximum expenditure amount in dollars. Itemized only.
max_datestring
Latest expenditure date (YYYY-MM-DD). Itemized only.
min_amountnumber
Minimum expenditure amount in dollars. Itemized only.
min_datestring
Earliest expenditure date (YYYY-MM-DD). Itemized only.
modestring
Query mode. "itemized" returns individual expenditure records (keyset pagination). "by_candidate" returns aggregated totals per candidate by committee (page-based).one of itemized · by_candidatedefault: itemized
most_recentboolean
Only the most recent version of amended filings. Itemized only.default: true
payee_namestring
Full-text payee name search. Itemized only.
per_pagenumber
Results per page (max 100).default: 20
sortstring
Sort field. Itemized only.one of expenditure_date · expenditure_amount · office_total_ytd
support_opposestring
S = support, O = oppose. Filter by whether the expenditure supports or opposes the candidate.one of S · O
openfec_search_filingsSearch FEC filings and reports by committee, candidate, form type, or date range. Covers financial reports (F3/F3P/F3X), statements of candidacy (F2), organizational filings (F1), 24-hour IE notices (F24), and amendments.13 params

Search FEC filings and reports by committee, candidate, form type, or date range. Covers financial reports (F3/F3P/F3X), statements of candidacy (F2), organizational filings (F1), 24-hour IE notices (F24), and amendments.

Parameters* required
candidate_idstring
Associated candidate ID.
committee_idstring
Filing committee ID.
cyclenumber
Two-year election cycle (even year).
filer_namestring
Full-text filer name search.
form_typestring
FEC form type. Common: F3 (House/Senate quarterly), F3P (Presidential), F3X (PAC/party), F24 (24-hour IE notice), F1 (statement of organization), F2 (statement of candidacy), F5 (IE by persons).
is_amendedboolean
Filter to original or amended filings only.
max_receipt_datestring
Latest FEC receipt date (YYYY-MM-DD).
min_receipt_datestring
Earliest date FEC received the filing (YYYY-MM-DD).
most_recentboolean
Only the most recent version (filters out superseded amendments). Default true.
pagenumber
Page number (1-indexed). Default 1.
per_pagenumber
Results per page. Default 20, max 100.
report_typestring
Report type code. Common: Q1/Q2/Q3 (quarterly), YE (year-end), M3-M12 (monthly), 12G/12P/30G (pre/post election).
report_yearnumber
Filing year.
openfec_lookup_electionsLook up federal election races and candidate financial summaries. Find who's running in a race with fundraising totals, or get an aggregate race summary.7 params

Look up federal election races and candidate financial summaries. Find who's running in a race with fundraising totals, or get an aggregate race summary.

Parameters* required
cycleinteger
Election cycle year (even years only, e.g. 2024).
districtstring
Two-digit district number (e.g. "07"). Required for house unless zip is provided.
election_fullboolean
Expand to full election period (4yr president, 6yr senate, 2yr house). Default true. Ignored for ZIP-based searches.default: true
modestring
search = candidates in a race with financial totals. summary = aggregate race financial summary.one of search · summarydefault: search
officestring
Office sought: president, senate, or house.one of president · senate · house
statestring
Two-letter US state code (e.g., AZ, CA). Required for senate/house unless zip is provided.
zipstring
ZIP code — finds races covering this ZIP. Search mode only.
openfec_search_legalSearch FEC legal documents: advisory opinions, enforcement cases (MURs), alternative dispute resolutions, and administrative fines.13 params

Search FEC legal documents: advisory opinions, enforcement cases (MURs), alternative dispute resolutions, and administrative fines.

Parameters* required
ao_numberstring
Specific advisory opinion number (e.g. "2024-01").
case_numberstring
Specific MUR or ADR case number.
from_hitinteger
Offset for pagination (0-indexed). Default 0.default: 0
hits_returnedinteger
Results per page. Default 20, max 200.default: 20
max_datestring
Latest document date (YYYY-MM-DD).
max_penalty_amountnumber
Maximum penalty amount.
min_datestring
Earliest document date (YYYY-MM-DD).
min_penalty_amountnumber
Minimum penalty amount (enforcement cases).
querystring
Full-text search across legal documents.
regulatory_citationstring
CFR citation (e.g. "11 CFR 112.4").
respondentstring
Respondent name (enforcement cases).
statutory_citationstring
U.S.C. citation (e.g. "52 U.S.C. 30106").
typestring
Document type filter. Omit to search all types. admin_fines is slow without a query or respondent filter.one of advisory_opinions · murs · adrs · admin_fines · statutes
openfec_lookup_calendarLook up FEC calendar events, filing deadlines, and election dates.12 params

Look up FEC calendar events, filing deadlines, and election dates.

Parameters* required
categorystring
Calendar category ID for events mode. Common values: "32" (reporting deadlines), "33" (election dates), "34" (quarterly filings). Events mode only.
descriptionstring
Full-text event description search. Events mode.
election_yearinteger
Election year. Election dates mode.
max_datestring
Latest date (YYYY-MM-DD).
min_datestring
Earliest date (YYYY-MM-DD).
modestring
events = FEC calendar events. filing_deadlines = report due dates. election_dates = upcoming/past elections.one of events · filing_deadlines · election_datesdefault: events
officestring
Office sought (H=House, S=Senate, P=President). Election dates mode.one of H · S · P
pageinteger
Page number (1-indexed). Default 1.default: 1
per_pageinteger
Results per page. Default 20, max 100.default: 20
report_typestring
Report type code (e.g. "Q1", "Q2"). Filing deadlines mode only.
report_yearinteger
Report year. Filing deadlines mode.
statestring
Two-letter state code (e.g., AZ, CA). Primarily for election_dates mode.

@cyanheads/openfec-mcp-server

Access FEC campaign finance data through MCP. Query data about candidates, money trails, and election filings. STDIO & Streamable HTTP.

12 Tools • 5 Resources • 2 Prompts

npm Version Docker MCP SDK License TypeScript Bun

Install in Claude Desktop Install in Cursor Install in VS Code

Framework

Public Hosted Server: https://openfec.caseyjhand.com/mcp


Tools

Twelve tools for querying federal election campaign finance data:

Tool NameDescription
openfec_search_candidatesFind federal candidates by name, state, office, party, or cycle.
openfec_search_committeesFind political committees by name, type, candidate affiliation, or state.
openfec_get_committee_totalsGet pre-aggregated committee financial totals for one committee, or rank committees of one entity type.
openfec_search_contributionsSearch itemized individual contributions or aggregate breakdowns by size, state, employer, or occupation.
openfec_search_disbursementsSearch itemized committee spending or aggregate breakdowns by purpose or recipient.
openfec_search_expendituresSearch independent expenditures supporting or opposing federal candidates.
openfec_search_coordinated_expendituresSearch coordinated party expenditures (Schedule F) made on behalf of a candidate.
openfec_search_filingsSearch FEC filings and reports by committee, candidate, form type, or date range.
openfec_lookup_electionsLook up election races and candidate financial summaries.
openfec_search_legalSearch FEC legal documents: advisory opinions, enforcement cases, and administrative fines.
openfec_get_legal_documentFetch one legal document in full, including the arrays legal search trims away.
openfec_lookup_calendarLook up FEC calendar events, filing deadlines, and election dates.

openfec_search_candidates

Find federal candidates with optional financial totals.

  • Full-text name search plus filters for state, district, office, party, cycle, incumbent status
  • Fetch a specific candidate by FEC ID (H/S/P prefix) with full detail
  • Optional financial totals: receipts, disbursements, cash on hand
  • Pagination up to 100 results per page

openfec_search_committees

Find political committees (campaign, PAC, Super PAC, party).

  • Full-text name search plus filters for type, designation, party, state, candidate affiliation
  • Fetch a specific committee by FEC ID (C prefix)
  • Committee types: House, Senate, Presidential, Super PAC, PAC, Party
  • Treasurer name search

openfec_get_committee_totals

Pre-aggregated committee finances, without paginating Schedule A.

  • single: One committee's totals, one row per two-year cycle it filed
  • by_entity_type: Every committee of one type — presidential, pac, party, pac-party, house-senate, ie-only
  • Receipts, disbursements, cash on hand, debts, and the itemized/unitemized contribution split
  • Grouped mode filters by state, committee type, designation, organization type, and receipts/disbursements thresholds

openfec_search_contributions

Search Schedule A contribution data with five query modes.

  • itemized: Individual contribution records with keyset cursor pagination
  • by_size: Aggregate breakdowns by contribution size range
  • by_state: Geographic breakdown of contributions
  • by_employer: Top employer aggregates
  • by_occupation: Top occupation aggregates
  • Filters: donor name, employer, occupation, city, state, ZIP, date range, amount range

openfec_search_disbursements

Search Schedule B spending data with four query modes.

  • itemized: Individual disbursement records with keyset cursor pagination
  • by_purpose: Aggregate by spending purpose category
  • by_recipient: Aggregate by payee name
  • by_recipient_id: Aggregate by recipient committee ID
  • Filters: recipient name, description, date range, amount range

openfec_search_expenditures

Search Schedule E independent expenditure data.

  • itemized: Individual expenditure records with support/oppose indicator; scoped to the current cycle unless another is given
  • by_candidate: Aggregated totals per targeted candidate, scoped by candidate ID or by a whole race (office alone for President, plus state for Senate, plus district as well for House)
  • Filters: committee, candidate, office, party, 24/48-hour notices, date and amount range

openfec_search_coordinated_expenditures

Search Schedule F coordinated party expenditures.

  • Party committee spending made on behalf of a candidate, in coordination with that campaign — a separate legal category from independent expenditures and from direct contributions
  • Filters: spending committee, benefiting candidate, cycle, payee name, date range, amount range
  • Page-based pagination; the shared spending committee is hoisted out of the rows when the query names one

openfec_search_filings

Search FEC filings and reports.

  • Form types: F3 (House/Senate quarterly), F3P (Presidential), F3X (PAC/party), F24 (24-hour IE notice), F1/F2 (organizational/candidacy), F5 (IE by persons)
  • Report type codes: Q1/Q2/Q3, YE, monthly, pre/post election
  • Amendment filtering with most-recent-only option
  • Date range filtering by FEC receipt date

openfec_search_legal

Search across FEC legal document types.

  • Advisory opinions, MURs (enforcement cases), ADRs, administrative fines, statutes
  • Look up specific cases by AO number or case number
  • Filter by respondent, regulatory/statutory citation, penalty amount range
  • Date filtering is type-scoped: pick a date_kind the document type records (advisory opinions issue/request/document, cases open/close/document, admin fines RTB/final determination)
  • Offset-based pagination (up to 200 results per page)

openfec_get_legal_document

Fetch one legal document in full by type and number.

  • Returns the full documents array that openfec_search_legal replaces with a count and category summary, and the complete commission_votes it cuts down to a date and a truncated action
  • doc_type is the plural of a search result's document_type (mur → murs); no is that result's no field, which every document type carries
  • Reports how many related filings the record carries, so it can be checked against the search result's document_count

openfec_lookup_elections

Look up federal election races.

  • search: Candidates in a race with financial totals
  • summary: Aggregate race financial summary
  • Office types: H (House), S (Senate), P (President)
  • ZIP code lookup to find races covering a location
  • Full election period expansion (4yr president, 6yr senate, 2yr house)

openfec_lookup_calendar

Look up FEC dates and deadlines.

  • events: FEC calendar events
  • filing_deadlines: Report due dates by type and year
  • election_dates: Upcoming and past election dates by state and office
  • Date range filtering

Resources

URI PatternDescription
openfec://candidate/{candidate_id}Federal candidate profile with current financial totals.
openfec://committee/{committee_id}Political committee profile with type, designation, and financial summary.
openfec://election/{cycle}/{office}Presidential or at-large election race with candidate financial totals.
openfec://election/{cycle}/{office}/{state}Senate or state-level election race with candidate financial totals.
openfec://election/{cycle}/{office}/{state}/{district}House district election race with candidate financial totals.

Prompts

PromptDescription
openfec_campaign_analysisStructured analysis of a candidate's financial position — fundraising trajectory, burn rate, cash reserves, donor composition, and opponent comparison.
openfec_money_trailFramework for tracing the flow of money around a candidate or race — direct fundraising, PAC support, independent expenditures, and party spending.

Features

Built on @cyanheads/mcp-ts-core:

  • Declarative tool definitions — single file per tool, framework handles registration and validation
  • Unified error handling across all tools
  • Pluggable auth (none, jwt, oauth)
  • Swappable storage backends: in-memory, filesystem, Supabase, Cloudflare KV/R2/D1
  • Structured logging with optional OpenTelemetry tracing
  • Runs locally (stdio/HTTP) or via Docker from the same codebase

OpenFEC-specific:

  • Type-safe client wrapping the OpenFEC REST API
  • Multi-mode tools supporting both itemized records and aggregate breakdowns
  • Keyset cursor pagination for high-volume Schedule A/B/E data
  • Automatic retry with configurable timeout and max retries
  • Error sanitization strips API keys from error messages; HTTP status errors enriched with actionable hints
  • Two guided investigation prompts for campaign finance analysis workflows

Getting Started

Public Hosted Instance

A public instance is available at https://openfec.caseyjhand.com/mcp — no installation required. Point any MCP client at it via Streamable HTTP:

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

Self-Hosted / Local

Add the following to your MCP client configuration file.

{
  "mcpServers": {
    "openfec-mcp-server": {
      "type": "stdio",
      "command": "bunx",
      "args": ["@cyanheads/openfec-mcp-server@latest"],
      "env": {
        "MCP_TRANSPORT_TYPE": "stdio",
        "FEC_API_KEY": "your-api-key"
      }
    }
  }
}

Or with Docker:

{
  "mcpServers": {
    "openfec-mcp-server": {
      "type": "stdio",
      "command": "docker",
      "args": ["run", "-i", "--rm", "-e", "MCP_TRANSPORT_TYPE=stdio", "-e", "FEC_API_KEY=your-api-key", "ghcr.io/cyanheads/openfec-mcp-server:latest"]
    }
  }
}

For Streamable HTTP, set the transport and start the server:

MCP_TRANSPORT_TYPE=http MCP_HTTP_PORT=3010 FEC_API_KEY=your-key bun run start:http
# Server listens at http://localhost:3010/mcp

Prerequisites

  • Bun v1.3.0 or higher (or Node ≥24)
  • (Optional) A free OpenFEC API key for higher rate limits (1,000 req/hr vs 30 req/hr with the default DEMO_KEY)

Installation

  1. Clone the repository:
git clone https://github.com/cyanheads/openfec-mcp-server.git
  1. Navigate into the directory:
cd openfec-mcp-server
  1. Install dependencies:
bun install

Configuration

VariableDescriptionDefault
FEC_API_KEYOpenFEC API key. Optional — defaults to DEMO_KEY (30 req/hr). Provide your own key (free at api.data.gov/signup) for 1,000 req/hr.DEMO_KEY
FEC_BASE_URLOpenFEC API base URL.https://api.open.fec.gov/v1
FEC_MAX_RETRIESMax retry attempts for failed API requests.3
FEC_REQUEST_TIMEOUTRequest timeout in milliseconds.30000
MCP_TRANSPORT_TYPETransport: stdio or http.stdio
MCP_HTTP_PORTPort for HTTP server.3010
MCP_HTTP_HOSTHostname for HTTP server.localhost
MCP_SESSION_MODEHTTP session mode: auto, stateful, or stateless. The published container pins stateless.auto (resolves to stateful)
MCP_AUTH_MODEAuth mode: none, jwt, or oauth.none
MCP_LOG_LEVELLog level (RFC 5424).info
LOGS_DIRDirectory for log files (Node.js only).<project-root>/logs
STORAGE_PROVIDER_TYPEStorage backend.in-memory
OTEL_ENABLEDEnable OpenTelemetry instrumentation (spans, metrics, completion logs).false

Running the Server

Local Development

  • Build and run:

    bun run rebuild
    bun run start:stdio   # or start:http
    
  • Run checks and tests:

    bun run devcheck      # Lint, format, typecheck, security audit
    bun run test          # Runs test suite
    

Project Structure

DirectoryPurpose
src/mcp-server/tools/definitions/Tool definitions (*.tool.ts).
src/mcp-server/resources/definitions/Resource definitions (*.resource.ts).
src/mcp-server/prompts/definitions/Prompt definitions (*.prompt.ts).
src/services/openfec/OpenFEC API client and domain types.
src/config/Environment variable parsing and validation with Zod.
tests/Unit and integration tests.
scripts/Build, clean, devcheck, tree, and lint scripts.
docs/Design docs and OpenAPI spec.

Development Guide

See CLAUDE.md for development guidelines and architectural rules. The short version:

  • Handlers throw, framework catches — no try/catch in tool logic
  • Use ctx.log for domain-specific logging, ctx.state for storage
  • Register new tools and resources in the index.ts barrel files

Contributing

Issues and pull requests are welcome. Run checks before submitting:

bun run devcheck
bun run test

License

Apache-2.0 — see LICENSE for details.

Featured
CodeRabbit
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Try For Free →
inference shell
inference shell
create and run specialised agents in minutes
build now →
MCP-ready Email SendingMCP-ready Email Sending
MCP-ready Email Sending
Plug Mailtrap into your AI workflow and let it handle the email.
Connect Mailtrap MCP →
Make your agent a DeFi expert
Make your agent a DeFi expert
Agent, run crypto. Access onchain data & trade routes via 1inch.
Install now →
Capacitor - Shared memory for your team’s coding agents.
Capacitor - Shared memory for your team’s coding agents.
Make coding agent sessions - Searchable, Shareable, Vendor-neutral & Scored.
Try For Free →
CodeScene MCP ServerCodeScene MCP Server
CodeScene MCP Server
Your agent targets a perfect 10 Code Health score. Deterministic. Every commit.
Try For Free →
Give your AI the whole web as clean markdownGive your AI the whole web as clean markdown
Give your AI the whole web as clean markdown
Integrate web data into your AI product. One API to scrape website & brand data.
Get API Key Now →
belt - the only tool your agent needs
belt - the only tool your agent needs
belt cli automatically finds the best tools and skills for your agent. image, video, music, tts...
one prompt install →

Configuration

FEC_API_KEY

OpenFEC API key — optional (falls back to DEMO_KEY: 30 req/hr). Own key: 1000 req/hr. Free signup at api.data.gov.

MCP_LOG_LEVELdefault: info

Sets the minimum log level for output (e.g., 'debug', 'info', 'warn').

MCP_HTTP_HOSTdefault: 127.0.0.1

The hostname for the HTTP server.

MCP_HTTP_PORTdefault: 3010

The port to run the HTTP server on.

MCP_HTTP_ENDPOINT_PATHdefault: /mcp

The endpoint path for the MCP server.

MCP_AUTH_MODEdefault: none

Authentication mode to use: 'none', 'jwt', or 'oauth'.

Categories
Data & Analytics
Registryactive
Package@cyanheads/openfec-mcp-server
TransportSTDIO, HTTP
UpdatedJun 8, 2026
View on GitHub

More from cyanheads

  • Openfoodfacts Mcp Server1
  • Openlibrary Mcp Server1
  • Openstates Mcp Server1
  • Orcid Mcp Server1
  • Reliefweb Mcp Server1
  • Smithsonian Mcp Server1
  • Wikidata Mcp Server1
  • Wsdot Mcp Server1
  • Noaa Cdo Mcp Server2
  • Pubchem Mcp Server9
  • Gbif Biodiversity Mcp Server1
  • Osv Advisory Mcp Server1
  • Pentest Mcp Server1
  • Socrata Mcp Server1
  • Who Gho Mcp Server1
  • Aviation Weather Mcp Server
  • Cyanheads Mcp Server
  • Ensembl Mcp Server
  • Eur Lex Mcp Server
  • Exchange Rates Mcp Server
  • Fema Mcp Server
  • Imf Mcp Server
  • Noaa Marine Mcp Server
  • Noaa Spaceweather Mcp Server

Related Data & Analytics MCP Servers

View all →
cyanheads avatar
Socrata Mcp Server

cyanheads/socrata-mcp-server

Search and query government open-data portals (Socrata SODA API).
1
drivenrajat avatar
F1 Data Server

drivenrajat/f1

Access Formula 1 race data, telemetry, lap times, standings, and analytics powered by FastF1
1
estaite-solutions avatar
Estaite Mcp

estaite-solutions/estaite-mcp

Current US rental market data for AI agents: 1,500+ submarkets, monthly rent + vacancy + trends.
1
euleriantechnologies avatar
Eulerian Marketing Platform Mcp

euleriantechnologies/eulerian-marketing-platform-mcp

Provides access to the Eulerian Marketing Platform: analytics, attribution & data activation.
1
expenselm avatar
Expenselm Mcp Server

expenselm/expenselm-mcp-server

An MCP server that provides access to your expense data on ExpenseLM.
1
fetter-io avatar
Fetter MCP

fetter-io/fetter-mcp

Real-time Python package and vulnerability data for AI coding agents.
1