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
- resolve_geography
- resolve_candidate
- search_candidates
- lookup_address
- list_contests
- election_calendar
- set_performance
- target_precincts
- create_scenario
- get_view
- render_view
- render_chart
- set_view
- get_scenario
- commit_version
- list_scenarios
- diff_versions
- get_early_voting_turnout
- get_county_voter_turnout_and_registration
- get_state_historical_turnout
- get_live_early_vote_returns
- get_precinct_election_returns
- get_county_officials
- get_county_economic_and_wealth_profile