MCPserver for executing Mathematica code
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"mma-mcp": {
"command": "<see-readme>",
"args": []
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
A production-ready Model Context Protocol (MCP) server that executes Mathematica code, built from scratch using Bun, TypeScript, and Zod validation.
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in developer-tools / education
A Model Context Protocol (MCP) server and CLI that provides tools for agent use when working on iOS and macOS projects.
XcodeBuildMCP provides tools for Xcode project management, simulator management, and app utilities.
MCP server for accessing Figma plugin console logs and screenshots via Cloudflare Workers or local mode
MCP server for using the GitLab API
MCP Security Weekly
Get CVE alerts and security updates for Mma Mcp and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
A production-ready Model Context Protocol (MCP) server that executes Mathematica code, built from scratch using Bun, TypeScript, and Zod validation.
Needs[] and Get[] syntaxwolframscript in PATHcd mma-mcp
bun install
cp .env.example .env
Edit .env to set your configuration.
# HTTP mode - default port 3000, no authentication
bun run start:http
# HTTP mode - custom port (e.g., 8080)
MCP_HTTP_PORT=8080 bun run start:http
# Stdio mode - for Claude Desktop integration
bun index.ts
# Generate API key and start server
MCP_TRANSPORT=http MCP_API_KEY=$(bun run generate-key) bun start
Server will start on http://127.0.0.1:3000/mcp
# Start server with stdio transport
MCP_TRANSPORT=stdio bun start
bun start # Start server (uses .env)
bun run start:http # Start with HTTP transport
bun run start:stdio # Start with stdio transport
bun run dev # Development mode with auto-reload
bun test # Run tests
bun run typecheck # Type checking
bun run generate-key # Generate secure API key
Execute Mathematica code with configurable options.
Parameters:
code (string, required): Mathematica codeformat (string): Output format - text, latex, mathematica (default: text)timeout (number): Timeout in seconds (1-86400, default: 300)Usage Examples:
Basic computation:
{
"name": "execute_mathematica",
"arguments": {
"code": "Solve[x^2 - 5x + 6 == 0, x]"
}
}
Using LaTeX output format:
{
"name": "execute_mathematica",
"arguments": {
"code": "Integrate[x^2, x]",
"format": "latex"
}
}
Loading Mathematica packages:
{
"name": "execute_mathematica",
"arguments": {
"code": "Needs[\"LinearAlgebra`\"]; MatrixPower[{{1,2},{3,4}}, 2]"
}
}
When running in HTTP mode, the server exposes the following endpoints:
Comprehensive health check endpoint that verifies all critical server components are operational.
Authentication: None required
Response Status Codes:
200 OK - All checks passed, server is fully operational503 Service Unavailable - Server is initializing or one or more checks failedResponse Format:
Healthy Response (200 OK):
{
"status": "ok",
"server": "mathematica-mcp-server",
"version": "1.0.0",
"timestamp": "2024-01-09T10:30:00.000Z",
"uptime": 123.45,
"startedAt": "2024-01-09T10:28:00.000Z",
"transport": "streamable-http",
"checks": {
"wolframScript": true,
"wolframKernel": true,
"mcpServer": true,
"transport": true
}
}
Unhealthy Response (503 Service Unavailable):
{
"status": "error",
"server": "mathematica-mcp-server",
"version": "1.0.0",
"timestamp": "2024-01-09T10:30:00.000Z",
"uptime": 10.5,
"startedAt": "2
... [View full README on GitHub](https://github.com/wjsoj/mma-mcp#readme)