Skip to content
LangChain

mcp ts template for LangChain

io.github.cyanheads/mcp-ts-template

TypeScript template for building MCP servers with declarative tooling, observability, and auth.

client:LangChain transport:stdio runtime:npm

Install mcp ts template in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

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

tools = await client.get_tools()

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

mcp ts template in other clients