openfec mcp server for LangChain
io.github.cyanheads/openfec-mcp-server
Access FEC campaign finance data. Query data about candidates, money trails, and election filings.
client:LangChain
transport:streamable-http
runtime:npm
tools:12
Install openfec mcp server in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"openfec-mcp-server": {
"transport": "streamable_http",
"url": "https://openfec.caseyjhand.com/mcp",
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs
What LangChain can do once it is connected
- openfec_search_candidates
- openfec_search_committees
- openfec_get_committee_totals
- openfec_search_contributions
- openfec_search_disbursements
- openfec_search_expenditures
- openfec_search_coordinated_expenditures
- openfec_search_filings
- openfec_lookup_elections
- openfec_search_legal
- openfec_get_legal_document
- openfec_lookup_calendar