harry potter mcp for LangChain
io.github.mrfentmen/harry-potter-mcp
Characters, spells, and houses from the free Harry Potter API.
client:LangChain
transport:stdio
runtime:npm
Install harry potter mcp in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"harry-potter-mcp": {
"transport": "stdio",
"command": "npx",
"args": ["-y", "harry-potter-mcp"],
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs