OpenFEC (Federal Election Commission) MCP Server for LlamaIndexGive LlamaIndex instant access to 21 tools to Get Candidate, Get Candidate History, Get Candidate Totals, and more
LlamaIndex specializes in data-aware AI agents that connect LLMs to structured and unstructured sources. Add OpenFEC (Federal Election Commission) as an MCP tool provider through Vinkius and your agents can query, analyze, and act on live data alongside your existing indexes.
Ask AI about this MCP Server for LlamaIndex
The OpenFEC (Federal Election Commission) MCP Server for LlamaIndex 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 llama_index.tools.mcp import BasicMCPClient, McpToolSpec
from llama_index.core.agent.workflow import FunctionAgent
from llama_index.llms.openai import OpenAI
async def main():
# Your Vinkius token. get it at cloud.vinkius.com
mcp_client = BasicMCPClient("https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp")
mcp_tool_spec = McpToolSpec(client=mcp_client)
tools = await mcp_tool_spec.to_tool_list_async()
agent = FunctionAgent(
tools=tools,
llm=OpenAI(model="gpt-4o"),
system_prompt=(
"You are an assistant with access to OpenFEC (Federal Election Commission). "
"You have 21 tools available."
),
)
response = await agent.run(
"What tools are available in OpenFEC (Federal Election Commission)?"
)
print(response)
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.
LlamaIndex agents combine OpenFEC (Federal Election Commission) tool responses with indexed documents for comprehensive, grounded answers. Connect 21 tools through Vinkius and query live data alongside vector stores and SQL databases in a single turn. ideal for hybrid search, data enrichment, and analytical workflows.
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 LlamaIndex 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 LlamaIndex
When LlamaIndex 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 LlamaIndex via MCP
Follow these steps to wire OpenFEC (Federal Election Commission) into LlamaIndex. The entire setup takes under two minutes — your credentials stay safe behind Vinkius.
Install dependencies
pip install llama-index-tools-mcp llama-index-llms-openaiReplace the token
[YOUR_TOKEN_HERE] with your Vinkius tokenRun the agent
agent.py and run: python agent.pyExplore tools
Why Use LlamaIndex with the OpenFEC (Federal Election Commission) MCP Server
LlamaIndex provides unique advantages when paired with OpenFEC (Federal Election Commission) through the Model Context Protocol.
Data-first architecture: LlamaIndex agents combine OpenFEC (Federal Election Commission) tool responses with indexed documents for comprehensive, grounded answers
Query pipeline framework lets you chain OpenFEC (Federal Election Commission) tool calls with transformations, filters, and re-rankers in a typed pipeline
Multi-source reasoning: agents can query OpenFEC (Federal Election Commission), a vector store, and a SQL database in a single turn and synthesize results
Observability integrations show exactly what OpenFEC (Federal Election Commission) tools were called, what data was returned, and how it influenced the final answer
OpenFEC (Federal Election Commission) + LlamaIndex Use Cases
Practical scenarios where LlamaIndex combined with the OpenFEC (Federal Election Commission) MCP Server delivers measurable value.
Hybrid search: combine OpenFEC (Federal Election Commission) real-time data with embedded document indexes for answers that are both current and comprehensive
Data enrichment: query OpenFEC (Federal Election Commission) to augment indexed data with live information before generating user-facing responses
Knowledge base agents: build agents that maintain and update knowledge bases by periodically querying OpenFEC (Federal Election Commission) for fresh data
Analytical workflows: chain OpenFEC (Federal Election Commission) queries with LlamaIndex's data connectors to build multi-source analytical reports
Example Prompts for OpenFEC (Federal Election Commission) in LlamaIndex
Ready-to-use prompts you can give your LlamaIndex 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 LlamaIndex
Common issues when connecting OpenFEC (Federal Election Commission) to LlamaIndex through Vinkius, and how to resolve them.
BasicMCPClient not found
pip install llama-index-tools-mcpOpenFEC (Federal Election Commission) + LlamaIndex FAQ
Common questions about integrating OpenFEC (Federal Election Commission) MCP Server with LlamaIndex.
How does LlamaIndex connect to MCP servers?
Can I combine MCP tools with vector stores?
Does LlamaIndex support async MCP calls?
Explore More MCP Servers
View all →
Ellie Planner
8 toolsPlan projects visually with AI-assisted task breakdowns, timelines, and team coordination that adapts as your work evolves.

Officevibe
10 toolsManage employee engagement via Officevibe — track pulse survey scores, feedback, and NPS directly from your AI agent.

Mercado Libre
17 toolsManage your Mercado Libre business via AI — list products, track orders, handle shipments, and answer buyer questions directly.

IPGeolocation (IP Intelligence & Time)
3 toolsResolve IP addresses via IPGeolocation — get precise location, timezone details, and local astronomy data.
