MCP Server Auth Template for LangChain
io.github.brunovicco/mcp-server-auth-template
OAuth 2.1/OIDC resource-server reference for secure MCP authorization
client:LangChain
transport:stdio
runtime:oci
Install MCP Server Auth Template in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"mcp-server-auth-template": {
"transport": "stdio",
"command": "docker",
"args": ["run", "-i", "--rm", "ghcr.io/brunovicco/mcp-server-auth-template:v0.7.0"],
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs