mychart for LangChain
io.github.kriskraw80/mychart
Connects to Epic MyChart patient portals: interactive login, list and download your own test results
client:LangChain
transport:stdio
runtime:npm
Install mychart in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"mychart": {
"transport": "stdio",
"command": "npx",
"args": ["-y", "mychart-mcp-server"],
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs