poetry mcp for LangChain
io.github.mrfentmen/poetry-mcp
Search poems by title, author, or lines from PoetryDB. No key required.
client:LangChain
transport:stdio
runtime:npm
Install poetry mcp in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"poetry-mcp": {
"transport": "stdio",
"command": "npx",
"args": ["-y", "poetry-mcp"],
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs