Skip to content
LangChain

jsonshim for LangChain

org.toolkitlabs/jsonshim

Recovers malformed LLM JSON. MCP build: 218/300 on MALFORMED-300 (library build 282/300).

client:LangChain transport:stdio runtime:npm

Install jsonshim in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

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

tools = await client.get_tools()

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

jsonshim in other clients