Skip to content
Cube coverageMH-362,64,583 clusters × 492Pan-India653 districts × 39reference →

Quickstart — LangGraph

Load the thirteen Bharat Strata tools straight from the MCP server with langchain-mcp-adapters, then hand them to a ReAct agent.

from langchain_mcp_adapters.client import MultiServerMCPClient
from langgraph.prebuilt import create_react_agent

client = MultiServerMCPClient({
    "gridrock": {
        "url": "https://api.gridrock.ai/mcp",
        "transport": "streamable_http",
    }
})

tools = await client.get_tools()   # the thirteen Bharat Strata tools
agent = create_react_agent("anthropic:claude-sonnet-4-5", tools)

await agent.ainvoke({"messages": "Resolve 19.0760, 72.8777 and read its witnessed row."})