Skip to content
LangChain

typespec mcp for LangChain

io.github.mrfentmen/typespec-mcp

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

client:LangChain transport:stdio runtime:npm

Install typespec mcp in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

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

tools = await client.get_tools()

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

typespec mcp in other clients