Pycodemath for LangChain
io.github.cybersora9/pycodemath
Checks the math in your code and gives AI agents an exact math engine (SymPy + NumPy).
client:LangChain
transport:stdio
runtime:pypi
Install Pycodemath in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"pycodemath": {
"transport": "stdio",
"command": "uvx",
"args": ["pycodemath"],
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs