Skip to content
LangChain

my-pi for LangChain

io.github.boxboxmari/my-pi

Local-first MCP runtime for coding agents with safe workspace access, AST/LSP navigation, and Git.

client:LangChain transport:stdio runtime:npm

Install my-pi in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "my-pi": {
            "transport": "stdio",
            "command": "npx",
            "args": ["-y", "@koonwang03/my-pi"],
        }
})

tools = await client.get_tools()

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

my-pi in other clients