math-mcp
A secure MCP server for evaluating mathematical expressions with grammar validation, function whitelisting, and sandboxed execution. It provides tools for expression evaluation, variable management, and resources for grammar and function documentation.
Install
npx -y math-mcp
Paste the configuration above into your MCP client config (claude_desktop_config.json for Claude Desktop) and restart the client.
{
"mcpServers": {
"math-mcp": {
"command": "npx",
"args": [
"-y",
"math-mcp"
],
"env": {
"TIMEOUT": "<TIMEOUT>",
"ALLOWED_FUNCTIONS": "<ALLOWED_FUNCTIONS>",
"MAX_RECURSION_DEPTH": "<MAX_RECURSION_DEPTH>",
"MAX_EXPRESSION_LENGTH": "<MAX_EXPRESSION_LENGTH>"
}
}
}
}Paste the configuration above into your MCP client config (claude_desktop_config.json for Claude Desktop) and restart the client.
Sources: public MCP Server directories. This is an independent third-party directory with no affiliation to or endorsement from the maintainers of the listed servers.