OpenFEC (Federal Election Commission) MCP Server for Pydantic AIGive Pydantic AI instant access to 21 tools to Get Candidate, Get Candidate History, Get Candidate Totals, and more
Pydantic AI brings type-safe agent development to Python with first-class MCP support. Connect OpenFEC (Federal Election Commission) through Vinkius and every tool is automatically validated against Pydantic schemas. catch errors at build time, not in production.
Ask AI about this MCP Server for Pydantic AI
The OpenFEC (Federal Election Commission) MCP Server for Pydantic AI is a standout in the Data Analytics category — giving your AI agent 21 tools to work with, ready to go from day one.
Vinkius delivers Streamable HTTP and SSE to any MCP client
import asyncio
from pydantic_ai import Agent
from pydantic_ai.mcp import MCPServerHTTP
async def main():
# Your Vinkius token. get it at cloud.vinkius.com
server = MCPServerHTTP(url="https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp")
agent = Agent(
model="openai:gpt-4o",
mcp_servers=[server],
system_prompt=(
"You are an assistant with access to OpenFEC (Federal Election Commission) "
"(21 tools)."
),
)
result = await agent.run(
"What tools are available in OpenFEC (Federal Election Commission)?"
)
print(result.data)
asyncio.run(main())
* 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
About 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.
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.
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.
The OpenFEC (Federal Election Commission) MCP Server exposes 21 tools through the Vinkius. Connect it to Pydantic AI in under two minutes — credentials fully managed, no infrastructure to provision, no vendor lock-in. Your configuration, your data, your control.
All 21 OpenFEC (Federal Election Commission) tools available for Pydantic AI
When Pydantic AI connects to OpenFEC (Federal Election Commission) through Vinkius, your AI agent gets direct access to every tool listed below — spanning campaign-finance, election-data, political-transparency, and more. Every call runs in a secure, isolated environment with full audit visibility. Beyond a simple connection, you get real-time monitoring of agent activity, enterprise governance, and optimized token usage.
Get candidate on OpenFEC (Federal Election Commission)
Get detailed information for a specific candidate by ID
Get candidate history on OpenFEC (Federal Election Commission)
Get the history of a candidate filings and designations
Get candidate totals on OpenFEC (Federal Election Commission)
Get aggregated financial totals for a specific candidate
Get committee on OpenFEC (Federal Election Commission)
Get detailed information for a specific committee by ID
Get committee history on OpenFEC (Federal Election Commission)
Get the history of a committee characteristics over time
Get totals by committee type on OpenFEC (Federal Election Commission)
Get financial totals for a specific committee type
Get totals by entity on OpenFEC (Federal Election Commission)
Get financial totals aggregated by candidate or committee entity
Get totals officer summary on OpenFEC (Federal Election Commission)
Summarize financial data by committee officer
List candidates on OpenFEC (Federal Election Commission)
Fetch a list of candidates with various filters
List committees on OpenFEC (Federal Election Commission)
Fetch a list of committees with filters
List filings on OpenFEC (Federal Election Commission)
List all filings (electronic and paper) with filters
List reports on OpenFEC (Federal Election Commission)
Fetch financial reports filed by specific types of committees
List schedule a on OpenFEC (Federal Election Commission)
Itemized Receipts: Contributions from individuals and committees
List schedule b on OpenFEC (Federal Election Commission)
Itemized Disbursements: Operating expenditures, transfers, refunds
List schedule c on OpenFEC (Federal Election Commission)
Loans: Information on loans received or made by committees
List schedule d on OpenFEC (Federal Election Commission)
Debts: Debts and obligations owed by or to committees
List schedule e on OpenFEC (Federal Election Commission)
Independent Expenditures: Spending to support/oppose candidates
List schedule f on OpenFEC (Federal Election Commission)
Coordinated Party Expenditures: Spending in coordination with candidates
List state election offices on OpenFEC (Federal Election Commission)
Get contact information for state election offices
Search candidates on OpenFEC (Federal Election Commission)
Search for candidates by name or other attributes
Search committees on OpenFEC (Federal Election Commission)
Search for committees by name or ID
Connect OpenFEC (Federal Election Commission) to Pydantic AI via MCP
Follow these steps to wire OpenFEC (Federal Election Commission) into Pydantic AI. The entire setup takes under two minutes — your credentials stay safe behind Vinkius.
Install Pydantic AI
pip install pydantic-aiReplace the token
[YOUR_TOKEN_HERE] with your Vinkius tokenRun the agent
agent.py and run: python agent.pyExplore tools
Why Use Pydantic AI with the OpenFEC (Federal Election Commission) MCP Server
Pydantic AI provides unique advantages when paired with OpenFEC (Federal Election Commission) through the Model Context Protocol.
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) + Pydantic AI Use Cases
Practical scenarios where Pydantic AI combined with the OpenFEC (Federal Election Commission) MCP Server delivers measurable value.
Type-safe data pipelines: query OpenFEC (Federal Election Commission) with guaranteed response schemas, feeding validated data into downstream processing
API orchestration: chain multiple OpenFEC (Federal Election Commission) tool calls with Pydantic validation at each step to ensure data integrity end-to-end
Production monitoring: build validated alert agents that query OpenFEC (Federal Election Commission) and output structured, schema-compliant notifications
Testing and QA: use Pydantic AI's dependency injection to mock OpenFEC (Federal Election Commission) responses and write comprehensive agent tests
Example Prompts for OpenFEC (Federal Election Commission) in Pydantic AI
Ready-to-use prompts you can give your Pydantic AI agent to start working with OpenFEC (Federal Election Commission) immediately.
"List all presidential candidates for the 2024 election cycle."
"Show me the financial totals for candidate ID P00000001 in the 2024 cycle."
"Search for political committees with 'Action' in their name."
Troubleshooting OpenFEC (Federal Election Commission) MCP Server with Pydantic AI
Common issues when connecting OpenFEC (Federal Election Commission) to Pydantic AI through Vinkius, and how to resolve them.
MCPServerHTTP not found
pip install --upgrade pydantic-aiOpenFEC (Federal Election Commission) + Pydantic AI FAQ
Common questions about integrating OpenFEC (Federal Election Commission) MCP Server with Pydantic AI.
How does Pydantic AI discover MCP tools?
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?
Can I switch LLM providers without changing MCP code?
Explore More MCP Servers
View all →
Workvivo
10 toolsManage social posts, employee profiles, and collaboration spaces on Workvivo — the employee experience platform.

Plivo
10 toolsEquip AI with native telecom powers. Send SMS, manage SIP trunks, and audit voice calls autonomously.

ShipHero
8 toolsManage e-commerce logistics via ShipHero — track orders, monitor inventory levels, and handle warehouse movements directly from your AI agent.

Pexels
10 toolsRetrieve free high-quality stock media via Pexels — search photos, track videos natively, and explore curated visual collections entirely through AI constraints.
