Skip to content
LangChain

loinc mcp for LangChain

io.github.mrfentmen/loinc-mcp

LOINC MCP: parse lab code tables, validate LOINC numbers and status.

client:LangChain transport:stdio runtime:npm

Install loinc mcp in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

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

tools = await client.get_tools()

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

loinc mcp in other clients