Skip to content
LangChain

ElectionsMCP for LangChain

com.electionsmcp/electionsmcp

Model and map any 2028 U.S. race down to the precinct: scenarios, swing, turnout, and roll-ups.

client:LangChain transport:streamable-http tools:48

Install ElectionsMCP in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

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

All 48 tools →

ElectionsMCP in other clients