Skip to content
LangChain

Experimental Legal Grounding for LangChain

io.github.tokenfix/legal-grounding

Experimental GDPR grounding: rules, preconditions, exceptions, exact quotes, and citation checks.

client:LangChain transport:streamable-http

Install Experimental Legal Grounding in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "legal-grounding": {
            "transport": "streamable_http",
            "url": "https://legal-grounding-199120533535.europe-north2.run.app/mcp",
        }
})

tools = await client.get_tools()

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

Experimental Legal Grounding in other clients