4,000+ servers built on vurb.ts
Vinkius

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

MCP Inspector GDPR Free for Subscribers

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.

Built for AI Agents by Vinkius

Vinkius delivers Streamable HTTP and SSE to any MCP client

ClaudeClaude
ChatGPTChatGPT
CursorCursor
GeminiGemini
WindsurfWindsurf
VS CodeVS Code
JetBrainsJetBrains
VercelVercel
+ other MCP clients
python
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())
OpenFEC (Federal Election Commission)
Fully ManagedVinkius Servers
60%Token savings
High SecurityEnterprise-grade
IAMAccess control
EU AI ActCompliant
DLPData protection
V8 IsolateSandboxed
Ed25519Audit chain
<40msKill switch
Stream every event to Splunk, Datadog, or your own webhook in real-time

* 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

Get candidate on OpenFEC (Federal Election Commission)

Get detailed information for a specific candidate by ID

get

Get candidate history on OpenFEC (Federal Election Commission)

Get the history of a candidate filings and designations

get

Get candidate totals on OpenFEC (Federal Election Commission)

Get aggregated financial totals for a specific candidate

get

Get committee on OpenFEC (Federal Election Commission)

Get detailed information for a specific committee by ID

get

Get committee history on OpenFEC (Federal Election Commission)

Get the history of a committee characteristics over time

get

Get totals by committee type on OpenFEC (Federal Election Commission)

Get financial totals for a specific committee type

get

Get totals by entity on OpenFEC (Federal Election Commission)

Get financial totals aggregated by candidate or committee entity

get

Get totals officer summary on OpenFEC (Federal Election Commission)

Summarize financial data by committee officer

list

List candidates on OpenFEC (Federal Election Commission)

Fetch a list of candidates with various filters

list

List committees on OpenFEC (Federal Election Commission)

Fetch a list of committees with filters

list

List filings on OpenFEC (Federal Election Commission)

List all filings (electronic and paper) with filters

list

List reports on OpenFEC (Federal Election Commission)

Fetch financial reports filed by specific types of committees

list

List schedule a on OpenFEC (Federal Election Commission)

Itemized Receipts: Contributions from individuals and committees

list

List schedule b on OpenFEC (Federal Election Commission)

Itemized Disbursements: Operating expenditures, transfers, refunds

list

List schedule c on OpenFEC (Federal Election Commission)

Loans: Information on loans received or made by committees

list

List schedule d on OpenFEC (Federal Election Commission)

Debts: Debts and obligations owed by or to committees

list

List schedule e on OpenFEC (Federal Election Commission)

Independent Expenditures: Spending to support/oppose candidates

list

List schedule f on OpenFEC (Federal Election Commission)

Coordinated Party Expenditures: Spending in coordination with candidates

list

List state election offices on OpenFEC (Federal Election Commission)

Get contact information for state election offices

search

Search candidates on OpenFEC (Federal Election Commission)

Search for candidates by name or other attributes

search

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.

01

Install Pydantic AI

Run pip install pydantic-ai
02

Replace the token

Replace [YOUR_TOKEN_HERE] with your Vinkius token
03

Run the agent

Save to agent.py and run: python agent.py
04

Explore tools

The agent discovers 21 tools from OpenFEC (Federal Election Commission) with type-safe schemas

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.

01

Full type safety: every MCP tool response is validated against Pydantic models, catching data inconsistencies before they reach your application

02

Model-agnostic architecture. switch between OpenAI, Anthropic, or Gemini without changing your OpenFEC (Federal Election Commission) integration code

03

Structured output guarantee: Pydantic AI ensures tool results conform to defined schemas, eliminating runtime type errors

04

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.

01

Type-safe data pipelines: query OpenFEC (Federal Election Commission) with guaranteed response schemas, feeding validated data into downstream processing

02

API orchestration: chain multiple OpenFEC (Federal Election Commission) tool calls with Pydantic validation at each step to ensure data integrity end-to-end

03

Production monitoring: build validated alert agents that query OpenFEC (Federal Election Commission) and output structured, schema-compliant notifications

04

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.

01

"List all presidential candidates for the 2024 election cycle."

02

"Show me the financial totals for candidate ID P00000001 in the 2024 cycle."

03

"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.

01

MCPServerHTTP not found

Update: pip install --upgrade pydantic-ai

OpenFEC (Federal Election Commission) + Pydantic AI FAQ

Common questions about integrating OpenFEC (Federal Election Commission) MCP Server with Pydantic AI.

01

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.
02

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.
03

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.

Explore More MCP Servers

View all →