math-to-code-mcp

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

使うべきか

品質と安全性

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

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

コンテキストコスト

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

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

インストール

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

これを `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

できること

ツール一覧

ツール(4)

🟢 読み取り専用🟡 書き込み🔴 削除⚪ 不明
🟢caclulus_area_under_curve(function, lowerLimit, upperLimit, intervals, geometricArea)

Calculate the definite integral (signed area) or geometric area under a curve using Simpson's 1/3 rule. Supported functions: x, x^2, x^3, sin(x), cos(x), exp(x), sqrt(x).

入力スキーマ

{
  "type": "object",
  "properties": {
    "function": {
      "type": "string",
      "description": "Function: x, x^2, x^3, sin(x), cos(x), exp(x), or sqrt(x)"
    },
    "lowerLimit": {
      "type": "number",
      "description": "Lower integration limit"
    },
    "upperLimit": {
      "type": "number",
      "description": "Upper integration limit"
    },
    "intervals": {
      "type": "integer",
      "description": "Even number of subintervals, from 2 to 100000"
    },
    "geometricArea": {
      "type": "boolean",
      "description": "True for geometric area (integral of absolute value); false for signed integral"
    }
  },
  "required": [
    "function",
    "lowerLimit",
    "upperLimit",
    "intervals",
    "geometricArea"
  ],
  "additionalProperties": false
}
⚪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
}

コミュニティ

このサーバーを評価する

エビデンス

最近の観測

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