civiq for LangChain
io.github.civdotiq/civiq
U.S. civic data for AI agents: reps, votes, bills, finance, lobbying, cited gov sources. 47 tools.
client:LangChain
transport:streamable-http
tools:47
Install civiq in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"civiq": {
"transport": "streamable_http",
"url": "https://civdotiq.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
- lookup_representatives
- list_state_delegation
- get_representative_profile
- compare_legislators
- search_legislation
- get_bill_details
- get_voting_history
- get_vote_record
- get_campaign_finance
- search_lobbying
- get_federal_spending
- analyze_vote_prediction
- get_influence_chain
- analyze_district_comprehensive
- analyze_industry_regulatory_landscape
- analyze_policy_area_ecosystem
- get_committee_info
- get_federal_register
- get_district_info
- search_epa_facilities
- get_district_environmental_profile
- analyze_environmental_influence
- get_climate_data
- get_state_climate_profile