Skip to content
LangChain

Legiscan for LangChain

io.github.pipeworx-io/legiscan

LegiScan MCP — wraps the LegiScan API (api.legiscan.com)

client:LangChain transport:streamable-http

Install Legiscan in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "legiscan": {
            "transport": "streamable_http",
            "url": "https://gateway.pipeworx.io/legiscan/mcp",
        }
})

tools = await client.get_tools()

get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs

Legiscan in other clients