Skip to content
LangChain

dotnet-mcp for LangChain

io.github.skymly/dotnet-mcp

MCP server for .NET symbols, XAML, source generators, and restricted workspace edit

client:LangChain transport:stdio runtime:nuget

Install dotnet-mcp in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "dotnet-mcp": {
            "transport": "stdio",
            "command": "dnx",
            "args": ["Skymly.DotNetMcp", "--yes"],
        }
})

tools = await client.get_tools()

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

dotnet-mcp in other clients