calcport for LangChain
io.github.cloudcorprecords/calcport
Safe arithmetic: evaluate expressions and add, subtract, multiply, divide.
client:LangChain
transport:stdio
runtime:npm
Install calcport in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"calcport": {
"transport": "stdio",
"command": "npx",
"args": ["-y", "@reneturcios/calcport"],
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs