io. github. phpranga/ math-to-code-mcp
by phpranga · remote · no sign-in to list tools · v1.0.1 · published by GitHub user phpranga
Math MCP server for primality, factorization, Java templates, and integer multiplication.
3 tools: 2 change things and 1 only read.
Scanned Oct 21, 2026
- Deletes or cancels0Claude Code: deny
- Can't be undone0Claude Code: ask
- Changes things2Claude Code: ask: see these tools
- Only reads1Claude Code: allow: see these tools
No check matched anything in the tool definitions. No finding is not a safety guarantee. How the checks work.
claude mcp add --transport http math-to-code https://math-to-code-mcp-production.up.railway.app/mcpTools
Open a tool for its reasons and full description. Descriptions are the publisher's own words, shown as they are.
3 tools
Changes things 2Claude Code: ask
common_base_multiplyMultiply two integers using the Common-Base Multiplication Method: x=N+a, y=N+b, xy=N^2+N(a+b)+ab.No findings
Why it is in this group
- Nothing in its name or description says what it does, so it is counted as a write.
Description, as the server wrote it Multiply two integers using the Common-Base Multiplication Method: x=N+a, y=N+b, xy=N^2+N(a+b)+ab. Returns the chosen base, offsets, terms, and exact result.
generate_java_algorithmGenerate a Java implementation of a supported mathematical algorithm.No findings
Why it is in this group
- The name "generate_java_algorithm" says "generate": a word for a change.
Description, as the server wrote it Generate a Java implementation of a supported mathematical algorithm. This returns fixed, reviewed templates and does not execute generated code.
Only reads 1Claude Code: allow
prime_analyzeCheck whether an integer is prime and return its prime factorization.No findings
Why it is in this group
- The name "prime_analyze" says "analyze": a word for reading.
Description, as the server wrote it Check whether an integer is prime and return its prime factorization. Supports integers from -10^12 through 10^12; prime status is defined only for n >= 2.
This is not a safety rating, and no finding is not a safety guarantee. The groups and findings come from fixed checks of the tool definitions the server returned on the date shown, not from its code or what it does when called. How the checks work.
Install
Pinned to version 1.0.1. Values in angle brackets are yours to fill in.
claude mcp add --transport http math-to-code https://math-to-code-mcp-production.up.railway.app/mcpRun in a terminal.
Claude Code permissions
Allow the reads, ask before a change, deny the deletes. Paste into .claude/settings.json.
{
"permissions": {
"allow": [
"mcp__math-to-code__prime_analyze"
],
"ask": [
"mcp__math-to-code__generate_java_algorithm",
"mcp__math-to-code__common_base_multiply"
],
"deny": []
}
}Tools that only read are allowed, tools that change things ask first, tools that delete or cancel are denied. It assumes the server is installed as math-to-code. Review it before you use it.
