math-to-code-mcp

Math MCP server for primality, factorization, Java templates, and integer multiplication.

使うべきか

品質と安全性

A
説明の品質
100%
スキーマの完全性
100%
命名の品質
87%
ポイズニングのリスク
100%
権限の一致
100%
プロトコルへの準拠
100%

ツール定義とプロトコルへの準拠に関する自動分析に基づいています。

コンテキストコスト

~307トークン数(ツール定義)
~698 B一般的なレスポンスサイズ
注意への影響は最小限(128k コンテキストの 0.24%)

これは、サーバーのツールがモデルのコンテキストに読み込まれるたびに消費されるおおよそのトークン数です。数が多いほど、ほかのタスクに使える注意が減ります。

インストール

ワンクリックインストール

これを `claude_desktop_config.json` ファイルに追加してください:

{
  "mcpServers": {
    "math-to-code-mcp": {
      "url": "https://math-to-code-mcp-production.up.railway.app/mcp"
    }
  }
}

リモートエンドポイント

https://math-to-code-mcp-production.up.railway.app/mcpstreamable-http

できること

ツール一覧

ツール(3)

🟢 読み取り専用🟡 書き込み🔴 削除⚪ 不明
⚪generate_java_algorithm(algorithm)

Generate a Java implementation of a supported mathematical algorithm. This returns fixed, reviewed templates and does not execute generated code.

入力スキーマ

{
  "type": "object",
  "properties": {
    "algorithm": {
      "type": "string",
      "description": "Algorithm identifier: gcd, is_prime, or factorial"
    }
  },
  "required": [
    "algorithm"
  ],
  "additionalProperties": false
}
🟢prime_analyze(number)

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.

入力スキーマ

{
  "type": "object",
  "properties": {
    "number": {
      "type": "integer",
      "description": "Integer to analyze, from -1000000000000 to 1000000000000"
    }
  },
  "required": [
    "number"
  ],
  "additionalProperties": false
}
⚪common_base_multiply(x, y, base)

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.

入力スキーマ

{
  "type": "object",
  "properties": {
    "x": {
      "type": "integer",
      "description": "First integer"
    },
    "y": {
      "type": "integer",
      "description": "Second integer"
    },
    "base": {
      "type": "integer",
      "description": "Common base N. If omitted by a client, use a convenient nearby base such as a multiple of 10."
    }
  },
  "required": [
    "x",
    "y",
    "base"
  ],
  "additionalProperties": false
}

コミュニティ

このサーバーを評価する

エビデンス

最近の観測

検証済みバージョンは記録されていませんツール 3 件