Skip to content
LangChain

typescript mcp for LangChain

io.github.mrfentmen/typescript-mcp

TypeScript MCP: 20 real tools to read, check, lint, scaffold, build and run TypeScript code.

client:LangChain transport:stdio runtime:npm

Install typescript mcp in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

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

tools = await client.get_tools()

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

typescript mcp in other clients