Bring Campaign Finance
to Pydantic AI
Learn how to connect OpenFEC (Federal Election Commission) to Pydantic AI and start using 21 AI agent tools in minutes. Fully managed, enterprise secure, and ready to use without writing a single line of code.
Compatible with every major AI agent and IDE
What is the OpenFEC (Federal Election Commission) MCP Server?
Connect to the official OpenFEC API and bring transparency to federal election data through your AI agent. This server provides direct access to the Federal Election Commission's comprehensive database of campaign finance information.
What you can do
- Candidate Research — List and search for individuals running for President, Senate, or House with filters for state, party, and cycle.
- Financial Analytics — Retrieve aggregated financial totals and summaries for specific candidates to understand fundraising and spending.
- Committee Tracking — Explore political committees (PACs, party committees) and their detailed metadata and filings.
- Historical Context — Access the history of candidate filings and designations over multiple election cycles.
- Deep Metadata — Fetch detailed profiles for any candidate or committee using their unique FEC identifiers.
How it works
- Subscribe to this server
- Enter your OpenFEC API Key
- Start querying election data from Claude, Cursor, or any MCP client
Who is this for?
- Journalists & Researchers — quickly verify campaign finance figures and candidate statuses without manual database exports.
- Data Analysts — pull structured election data directly into your workflow for political trend analysis.
- Civic Tech Developers — integrate official government data into applications with ease.
Built-in capabilities (21)
Get detailed information for a specific candidate by ID
Get the history of a candidate filings and designations
Get aggregated financial totals for a specific candidate
Get detailed information for a specific committee by ID
Get the history of a committee characteristics over time
Get financial totals for a specific committee type
Get financial totals aggregated by candidate or committee entity
Summarize financial data by committee officer
Fetch a list of candidates with various filters
Fetch a list of committees with filters
List all filings (electronic and paper) with filters
Fetch financial reports filed by specific types of committees
Itemized Receipts: Contributions from individuals and committees
Itemized Disbursements: Operating expenditures, transfers, refunds
Loans: Information on loans received or made by committees
Debts: Debts and obligations owed by or to committees
Independent Expenditures: Spending to support/oppose candidates
Coordinated Party Expenditures: Spending in coordination with candidates
Get contact information for state election offices
Search for candidates by name or other attributes
Search for committees by name or ID
Why Pydantic AI?
Pydantic AI validates every OpenFEC (Federal Election Commission) tool response against typed schemas, catching data inconsistencies at build time. Connect 21 tools through Vinkius and switch between OpenAI, Anthropic, or Gemini without changing your integration code. full type safety, structured output guarantees, and dependency injection for testable agents.
- —
Full type safety: every MCP tool response is validated against Pydantic models, catching data inconsistencies before they reach your application
- —
Model-agnostic architecture. switch between OpenAI, Anthropic, or Gemini without changing your OpenFEC (Federal Election Commission) integration code
- —
Structured output guarantee: Pydantic AI ensures tool results conform to defined schemas, eliminating runtime type errors
- —
Dependency injection system cleanly separates your OpenFEC (Federal Election Commission) connection logic from agent behavior for testable, maintainable code
OpenFEC (Federal Election Commission) in Pydantic AI
OpenFEC (Federal Election Commission) and 4,000+ other MCP servers. One platform. One governance layer.
Teams that connect OpenFEC (Federal Election Commission) to Pydantic AI through Vinkius don't need to source, host, or maintain individual MCP servers. Every tool call runs inside a hardened runtime with credential isolation, DLP, and a signed audit chain.
Raw MCP | Vinkius | |
|---|---|---|
| Server catalog | Find and host yourself | 4,000+ managed |
| Infrastructure | Self-hosted | Sandboxed V8 isolates |
| Credential handling | Plaintext in config | Vault + runtime injection |
| Data loss prevention | None | Configurable DLP policies |
| Kill switch | None | Global instant shutdown |
| Financial circuit breakers | None | Per-server limits + alerts |
| Audit trail | None | Ed25519 signed logs |
| SIEM log streaming | None | Splunk, Datadog, Webhook |
| Honeytokens | None | Canary alerts on leak |
| Custom domains | Not applicable | DNS challenge verified |
| GDPR compliance | Manual effort | Automated purge + export |
Why teams choose Vinkius for OpenFEC (Federal Election Commission) in Pydantic AI
The OpenFEC (Federal Election Commission) MCP Server runs on Vinkius-managed infrastructure inside AWS — a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts. All 21 tools execute in hardened sandboxes optimized for native MCP execution.
Your AI agents in Pydantic AI only access the data you authorize, with DLP that blocks sensitive information from ever reaching the model, kill switch for instant shutdown, and up to 60% token savings. Enterprise-grade infrastructure, zero maintenance.

* Every MCP server runs on Vinkius-managed infrastructure inside AWS - a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts optimized for native MCP execution. See our infrastructure
How Vinkius secures
OpenFEC (Federal Election Commission) for Pydantic AI
Every tool call from Pydantic AI to the OpenFEC (Federal Election Commission) MCP Server is protected by DLP redaction, cryptographic audit chains, V8 sandbox isolation, kill switch, and financial circuit breakers.
Frequently asked questions
Can I find out how much a specific candidate has raised in total for an election cycle?
Yes! Use the get_candidate_totals tool with the candidate's ID and the desired cycle. It will return aggregated financial summaries including total receipts and disbursements.
How do I search for all candidates running for the Senate in a specific state?
You can use the list_candidates tool and provide 'S' for the office and the two-letter state abbreviation (e.g., 'CA' for California) to filter the results.
Is it possible to see the history of a candidate's previous filings?
Absolutely. The get_candidate_history tool allows you to retrieve historical data for a candidate, showing their filings and designations over time.
How does Pydantic AI discover MCP tools?
Create an MCPServerHTTP instance with the server URL. Pydantic AI connects, discovers all tools, and generates typed Python interfaces automatically.
Does Pydantic AI validate MCP tool responses?
Yes. When you define result types as Pydantic models, every tool response is validated against the schema. Invalid data raises a clear error instead of silently corrupting your pipeline.
Can I switch LLM providers without changing MCP code?
Absolutely. Pydantic AI abstracts the model layer. your OpenFEC (Federal Election Commission) MCP integration works identically with OpenAI, Anthropic, Google, or any supported provider.
MCPServerHTTP not found
Update: pip install --upgrade pydantic-ai
Explore More MCP Servers
View all →
Troops
7 toolsAutomate HR and recruitment workflows via Troops — manage job offers, candidates, contracts, and timesheets directly from your AI agent.

Odoo Helpdesk
7 toolsCreate and manage support tickets, track SLAs, organize helpdesk teams — Odoo Helpdesk through natural conversation.

Apptoto
8 toolsManage appointments and messaging with Apptoto — track events, contacts, and bookings via AI.

Hunter
10 toolsEquip your AI agent with direct access to Hunter.io — find professional email addresses, verify deliverability, and enrich lead data without leaving your workflow.
