SuperAPIAI Directory

polymath-megablaster-mcp

github.com · AI developer platforms

Local deterministic calculations: exact-precision math, date arithmetic, unit conversion, statistics, subnet math, haversine and Levenshtein distance.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsAPI

About this tool

Polymath MegaBlaster MCP is a local MCP (Model Context Protocol) toolkit whose goal is to let AI agents replace guesswork with deterministic computation. It is positioned primarily for local and open-weight models (such as Llama, Qwen, Mistral, etc.), which consistently perform poorly on deterministic tasks such as exact mathematics, date arithmetic, and unit conversion; for frontier hosted models such as Claude and GPT-4, which can mostly already handle these tasks correctly on their own, this tool aims to close the capability gap of small/local models rather than replace the capabilities frontier models already have.

Main capabilities The toolkit provides 15 free tools, all of which are purely local computations:

  • Deterministic mathematics: calculate (arbitrary-precision expression evaluation), factorial, permutations, combinations (all arbitrary-precision, avoiding float64 overflow), compute_statistics (computes mean, median, standard deviation, variance, and percentiles for a set of numbers).
  • Date and time: date_add, date_diff (correctly handles leap years, month boundaries, and business days), convert_timezone.
  • Conversion: convert_unit (length, weight, volume, temperature), convert_base (decimal, hexadecimal, binary, octal).
  • Network: calc_subnet (CIDR calculation), check_ip_type (determines private/reserved address ranges).
  • Text: levenshtein_distance (exact edit distance and similarity ratio, used for deterministic fuzzy matching).
  • Geography: haversine_distance (exact great-circle distance between coordinates).
  • Agent utilities: count_tokens (GPT tokenizer, used to manage context budget before sending large prompts).

In addition, there are 4 extra tools (hmac_text, compare_semver, aes_encrypt, aes_decrypt) offered as Polymath MegaBlaster Pro with a one-time paid unlock; the store page link is not yet provided.

How to use

  1. Install Node.js (v18 or newer).
  2. Clone the repository and install dependencies (npm install will automatically install @modelcontextprotocol/sdk, zod, mathjs, gpt-tokenizer; none of them make network requests at runtime).
  3. Point your MCP client to the local path (for example, add a local startup command to the MCP client configuration, then restart the client). Setup documentation for common clients:
  • Claude Desktop:https://modelcontextprotocol.io/quickstart/user
  • Cursor:https://docs.cursor.com/context/model-context-protocol
  • Claude Code:https://docs.claude.com/en/docs/claude-code/mcp

For Claude Code, the Agent SDK, or any client that supports the open Agent Skills standard, the repository provides skills/polymath-deterministic-math/SKILL.md, which is used to teach agents when they should call this MCP server's tools instead of guessing, covering exact mathematics, date/timezone arithmetic, unit conversion, subnet calculation, string distance, geographic distance, and token counting. Just place that folder into .claude/skills/ (or the corresponding client's skills directory) alongside the MCP server configuration.

Use cases Suitable for scenarios that require precise, verifiable computation in AI agent workflows, such as: handling large numbers without rounding errors, handling date boundaries such as leap years and month ends, converting precisely between units, performing network subnet calculations, calculating the distance between two coordinates, performing deterministic fuzzy string matching, and estimating token counts before sending long prompts to manage context budget. It is especially suitable for developers using local/offline deployments and who require privacy and verifiability.

Limitations

  • This tool is intended to make up for the shortcomings of local/small models in deterministic computation, and is not a replacement for capabilities that frontier hosted models already have.
  • All tools are purely local computations; the source code (src/tools.js) has no fetch or http imports and makes no network calls.
  • The 4 extra tools require a one-time paid unlock; the store page link is not yet provided, and details such as price are not yet provided.
  • The runtime environment requires Node.js v18 or newer.
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools