Skip to content
LangChain

Election.org for LangChain

io.github.theguysaccount/election-org

Read sourced U.S. civic records: candidates, offices, campaign finance, elections and governments.

client:LangChain transport:streamable-http tools:6

Install Election.org in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "election-org": {
            "transport": "streamable_http",
            "url": "https://election.org/api/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

Election.org in other clients