Skip to main content
Glama

Math Expression MCP Server

by eriktilio
server.py341 B
import numexpr as ne from mcp.server.fastmcp import FastMCP mcp = FastMCP("Math") @mcp.tool() def calculate_expression(expr: str) -> float: """Avalia expressões matemáticas simples de forma segura.""" return float(ne.evaluate(expr)) if __name__ == "__main__": print("Server em execução...") mcp.run(transport="stdio")

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/eriktilio/mcp-langchain-integration'

If you have feedback or need assistance with the MCP directory API, please join our Discord server