Skip to content
LangChain

SQL Server MCP (Windows) for LangChain

io.github.tharanabope/sql-server-mcp

SQL Server MCP with RAG capabilities for Windows (native ODBC support)

client:LangChain transport:stdio runtime:npm

Install SQL Server MCP (Windows) in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

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

tools = await client.get_tools()

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

SQL Server MCP (Windows) in other clients