Skip to content
LangChain

jsonpath mcp for LangChain

io.github.mrfentmen/jsonpath-mcp

Query JSON documents with JSONPath expressions, list every path and count matches - fully local.

client:LangChain transport:stdio runtime:npm

Install jsonpath mcp in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "jsonpath-mcp": {
            "transport": "stdio",
            "command": "npx",
            "args": ["-y", "@mrfentmen/jsonpath-mcp"],
        }
})

tools = await client.get_tools()

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

jsonpath mcp in other clients