Sign inSign up

tejzpr/math-mcp-server

By tejzpr

Updated 8 months ago

A comprehensive mathematical operations MCP (Model Context Protocol) server written in Go.

Image
Machine learning & AI
0

1.1K

tejzpr/math-mcp-server repository overview

Math MCP Server

A comprehensive mathematical operations MCP (Model Context Protocol) server written in Go. This server exposes 70+ mathematical tools that can be used by AI assistants and MCP-compatible clients.

GitHub License: MPL 2.0

Features

  • 70+ Mathematical Tools organized into 15 categories
  • Environment-based configuration for enabling/disabling tool categories
  • Dual transport support: stdio and HTTP (default)
  • MCP Resources: Mathematical constants exposed as a resource
  • Multi-platform: linux/amd64 and linux/arm64

Quick Start

Run with HTTP transport (default)
docker run -d --rm -p 8080:8080 tejzpr/math-mcp-server

The server will be available at http://localhost:8080/mcp.

Run with specific categories
docker run -d --rm -p 8080:8080 \
  -e MATH_CATEGORIES=arithmetic,trig,statistics \
  tejzpr/math-mcp-server
Run with stdio (for MCP clients)
docker run -i --rm -e TRANSPORT=stdio tejzpr/math-mcp-server

Environment Variables

VariableDescriptionDefault
MATH_CATEGORIESComma-separated list of categories or allall
TRANSPORTTransport protocol: stdio or httphttp

Available Categories

CategoryTools
arithmeticadd, subtract, multiply, divide, mod, remainder, abs
powerpow, pow10, sqrt, cbrt, exp, exp2, expm1, hypot
logarithmlog, log10, log2, log1p, logb
trigsin, cos, tan, asin, acos, atan, atan2, sincos
hyperbolicsinh, cosh, tanh, asinh, acosh, atanh
roundingceil, floor, round, round_to_even, trunc
comparisonmax, min, dim, copysign
specialgamma, lgamma, erf, erfc, erfinv, erfcinv, j0, j1, y0, y1
float_utilsfrexp, ldexp, modf, ilogb, nextafter, fma, signbit, is_nan, is_inf
conversiondegrees_to_radians, radians_to_degrees
number_theorygcd, lcm, factorial, fibonacci, is_prime, prime_factors
statisticssum, product, mean, median, mode, variance, std_dev, range_stat
bitwisebit_and, bit_or, bit_xor, bit_not, bit_left_shift, bit_right_shift
complexcomplex_abs, complex_phase, complex_conj, complex_exp, complex_log, complex_sqrt, complex_pow, complex_sin, complex_cos, complex_tan, complex_polar, complex_rect
constantsResource: math://constants

MCP Client Configuration

With Docker (stdio)
{
    "mcpServers": {
        "math": {
            "command": "docker",
            "args": ["run", "-i", "--rm", "-e", "TRANSPORT=stdio", "tejzpr/math-mcp-server"],
            "env": {
                "MATH_CATEGORIES": "all"
            }
        }
    }
}

Source Code

Tags

  • latest - Latest stable release
  • x.y.z - Specific version (e.g., 1.0.0)
  • x.y - Minor version (e.g., 1.0)
  • x - Major version (e.g., 1)

Tag summary

Content type

Image

Digest

sha256:357d3d1a3

Size

7 MB

Last updated

8 months ago

docker pull tejzpr/math-mcp-server