Provides a backend for scientific computing using Julia, supporting numeric computation and plotting.
Provides a backend for scientific computing using GNU Octave, supporting numeric computation and plotting.
Provides a backend for scientific computing using Python with scientific libraries (e.g., NumPy, SciPy, SymPy, pandas), supporting symbolic, numeric, and plotting capabilities.
Provides a backend for scientific computing using SageMath, supporting symbolic, numeric, and plotting capabilities.
Provides a backend for scientific computing using Wolfram Mathematica, supporting symbolic, numeric, plotting, and image/audio output.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@scicompute-mcpsolve the equation x^2 + 2x - 8 = 0"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
SciCompute MCP Server
MCP server for scientific computing with multiple backends. Provides AI coding assistants with mathematical computation and visualization capabilities.
Features
Multiple computing backends (Mathematica, Octave, Python Scientific, R, SageMath)
Image output support (plots, graphics)
Automatic backend selection
Persistent session state (variables persist across calls)
Documentation query for unknown symbols
Multi-platform support (Claude Code, Claude Desktop, OpenCode/Crush)
Recommended: Use alongside official MATLAB MCP Server for MATLAB support
Related MCP server: mma-mcp
Supported Backends
Backend | Status | Capabilities |
Mathematica | ✅ Ready | symbolic, numeric, plot, image, audio |
SageMath | ✅ Ready | symbolic, numeric, plot |
Python Scientific | ✅ Ready | symbolic, numeric, plot |
R | ✅ Ready | numeric, plot |
Octave | ✅ Ready | numeric, plot |
Julia | ✅ Ready | numeric, plot |
Maxima | ✅ Ready | symbolic, numeric, plot |
MATLAB Support
For MATLAB support, we recommend using the official MATLAB MCP Core Server from MathWorks alongside SciCompute:
Why use the official server?
No Python version restrictions (works with any Python version)
No library installation or patching required
Standalone Go binary with no dependencies
Additional features: code analysis, test running, toolbox detection
Installation:
Download the MATLAB MCP Core Server binary from the latest release:
# Linux x86_64 curl -L -o ~/matlab-mcp-core-server https://github.com/matlab/matlab-mcp-core-server/releases/latest/download/matlab-mcp-core-server-glnxa64 chmod +x ~/matlab-mcp-core-serverConfigure both servers in your MCP config:
{ "mcpServers": { "scicompute": { "command": "uvx", "args": ["scicompute-mcp"] }, "matlab": { "command": "/home/username/matlab-mcp-core-server", "args": ["--matlab-root=/usr/local/MATLAB/R2024a"] } } }
See the MATLAB MCP Core Server documentation for more details.
Installation
Tip: Ask your AI assistant to install it for you! Just say "Install scicompute-mcp" and it will handle everything automatically.
Quick Start (Recommended)
# Install and run with uvx (auto-manages environment)
uvx scicompute-mcp
# Or install with pip
pip install scicompute-mcp
scicompute-mcpDebian 12+ / Ubuntu 23.04+
These systems enable PEP 668 by default, which prevents direct pip installs. Use one of these methods:
# Method 1: Use --break-system-packages (quick)
pip install --break-system-packages scicompute-mcp
# Method 2: Use pipx (recommended for CLI tools)
sudo apt install -y pipx
pipx install scicompute-mcp
# Method 3: Use China mirror (faster in China)
pip install --break-system-packages -i https://pypi.tuna.tsinghua.edu.cn/simple scicompute-mcpAfter installation, add ~/.local/bin to PATH if needed:
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
source ~/.bashrcInstall with Optional Backends
# With Mathematica support
pip install scicompute-mcp[mathematica]
# With Octave support
pip install scicompute-mcp[octave]
# With all backends
pip install scicompute-mcp[all]Environment Architecture
┌───────────────────────────────────────────────────────────────────────────┐
│ MCP Server (Python 3.10+) │
│ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ ┌────────────────────┐ │
│ │ Mathematica │ │ Octave │ │ MATLAB │ │ py_scientific │ │
│ │ Backend │ │ Backend │ │ Backend │ │ (same Python env) │ │
│ └──────┬──────┘ └──────┬──────┘ └──────┬──────┘ └────────────────────┘ │
│ │ │ │ │
│ ▼ ▼ ▼ │
│ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │
│ │ Wolfram │ │ octave │ │ MATLAB │ │ R │ sage │
│ │ Kernel │ │ process │ │ process │ │ process │ process │
│ └─────────────┘ └─────────────┘ └─────────────┘ └─────────────┘ │
│ │ │ │ │ │ │
│ ▼ ▼ ▼ ▼ ▼ │
│ Independent Independent Independent Independent conda │
│ (official) (apt/brew) (official) (apt/brew) env │
└───────────────────────────────────────────────────────────────────────────┘Key Points:
MCP server only needs one Python environment
Each backend (except py_scientific) runs as independent process, not sharing Python environment
SageMath requires separate conda environment (Python < 3.13)
Step 1: Install Computing Backends
Install the computing backends you need (not all required):
Python Scientific Backend
Pre-installed with the main package, no additional configuration needed.
SageMath Backend
SageMath requires Python < 3.13, must be installed separately via conda:
# Configure mirror (optional, recommended for users in China)
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
# Create SageMath environment
conda create -n sage python=3.11 -y
conda install -n sage -c conda-forge sage -yConfigure path (choose one):
# Method A: Environment variable (recommended)
export SAGE_PATH="$HOME/miniconda3/envs/sage/bin/sage"
# Method B: Modify SAGE_PATH in code
# Edit src/scicompute_mcp/backends/sage.pyR Backend
# Ubuntu/Debian
sudo apt install r-base
# macOS
brew install r
# Windows: Download from CRANOctave Backend
# Ubuntu/Debian
sudo apt install octave gnuplot
# macOS
brew install octave gnuplot
# Windows: Download Octave installerJulia Backend
# Install Julia (recommended: use juliaup)
curl -fsSL https://install.julialang.org | sh
# Or download from https://julialang.org/downloads/
# Install Python package
pip install juliacallMathematica Backend
Purchase and install from Wolfram website
Configure path:
export MATHEMATICA_KERNEL_PATH="/usr/local/Wolfram/Wolfram/14.3/Executables/WolframKernel"Configuration
Environment Variables
Variable | Description | Example |
| SageMath path |
|
| WolframKernel path |
|
| Julia executable path |
|
| Backend priority |
|
Claude Code (.mcp.json)
{
"mcpServers": {
"scicompute": {
"command": "uvx",
"args": ["scicompute-mcp"]
}
}
}Claude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"scicompute": {
"command": "uvx",
"args": ["scicompute-mcp"]
}
}
}OpenCode / Crush
OpenCode 1.4.6+
OpenCode 1.4.6+ reads configuration from ~/.config/opencode/opencode.json:
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"scicompute": {
"type": "local",
"command": ["/home/username/.local/bin/scicompute-mcp"]
}
}
}Important: Use absolute path to
scicompute-mcp(frompip install). Avoiduvxbecause it downloads dependencies on first run, which may timeout.
To verify:
opencode mcp listUsing opencode mcp add (Interactive)
Alternatively, add via interactive command:
opencode mcp add
# Name: scicompute
# Type: Local
# Command: /home/username/.local/bin/scicompute-mcpOlder OpenCode versions
For older versions, use ~/.opencode.json:
{
"mcpServers": {
"scicompute": {
"type": "stdio",
"command": "/home/username/.local/bin/scicompute-mcp"
}
}
}Local Development
For development or if you want to use a local installation:
{
"mcpServers": {
"scicompute": {
"command": "/path/to/.venv/bin/python",
"args": ["-m", "scicompute_mcp.server"]
}
}
}Multi-Platform Support
This project supports multiple AI assistant platforms. Configuration templates are provided in the configs/ directory:
File | Platform |
| Claude Code |
| Claude Desktop |
| OpenCode / Crush |
Custom Prompts / Skills
Each platform has its own way to provide custom instructions:
Platform | Directory | Format |
Claude Code |
| Markdown |
OpenCode / Crush |
| Markdown |
Users can create custom skill files if needed.
Tools
Calling Convention
Different MCP clients have different naming conventions for calling tools:
Client | Format | Example |
Claude Code |
|
|
OpenCode |
|
|
The examples below use the base tool names (compute, list_backends, stop). Your AI assistant will automatically use the correct format for its client.
compute(code, backend?)
Execute scientific computing code.
# Plot with Octave
compute("x = 0:0.1:10; y = sin(x); plot(x, y)", "octave")
# Symbolic computation with SageMath
compute("integrate(sin(x), x)", "sage")
compute("diff(x^3 * exp(x), x)", "sage")
# Mathematica
compute("Plot[Sin[x], {x, 0, 2 Pi}]", "mathematica")
compute("Integrate[x^2, x]", "mathematica")
# R Statistics
compute("mean(rnorm(1000))", "r")
compute("hist(rnorm(1000))", "r")
# Python Scientific
compute("sp.integrate(sp.sin(sp.Symbol('x')), sp.Symbol('x'))", "py_scientific")
# Julia
compute("plot(rand(10))", "julia")
compute("sqrt(2.0)", "julia")
# MATLAB
compute("plot(1:10, rand(1,10))", "matlab")
compute("[V,D] = eig(magic(3))", "matlab")list_backends()
List all available backends and their capabilities.
stop(backend?)
Stop backend process and clear all state. Useful to reset variables or free memory.
stop() # List running backends (does NOT stop any)
stop("octave") # Stop specific backend
stop("ALL") # Stop all running backendsSafety design: Calling stop() without arguments will NOT stop any backends. It returns a list of running backends. This prevents accidental data loss.
doc(backend?, symbol?)
Get documentation URLs for computing backends. Use this to find where to look up function documentation.
# List all backends with documentation
doc()
# Get URLs for a specific backend
doc(backend="mathematica")
doc(backend="numpy")
# Get URL for a specific function
doc(backend="mathematica", symbol="Plot3D")
doc(backend="octave", symbol="linspace")Supported backends: mathematica, numpy, scipy, matplotlib, sympy, pandas, python, r, julia, octave, sage, maxima, matlab
Usage Examples
Ask your AI assistant:
Plot sin(x) from 0 to 2π
Calculate ∫x²dx from 0 to 1
Solve x² - 4 = 0
Look up NDSolve documentationGetting Documentation
When you need detailed documentation for a function:
Use the
doctool to get documentation URLsLaunch a subagent with Task tool to fetch and extract documentation
Supported backends: Mathematica, NumPy, SciPy, Matplotlib, SymPy, Pandas, R, Julia, Octave, SageMath, Maxima, MATLAB
Example:
# Get documentation URL
doc(backend="mathematica", symbol="Plot3D")
# Then fetch the documentation
Task(
description="Fetch Plot3D docs",
prompt="Fetch Mathematica documentation for Plot3D from the URL returned by doc tool",
subagent_type="general"
)Documentation
docs/sage.md- SageMath collaboration guidedocs/r.md- R collaboration guidedocs/maxima.md- Maxima collaboration guidedocs/octave.md- Octave collaboration guideUse
doc()tool for documentation URLs
Requirements
Miniconda (recommended) or Python 3.10+
For SageMath backend: conda environment with Python 3.11
For R backend: R installation
For Octave backend: GNU Octave + gnuplot
For Mathematica backend: Wolfram Mathematica
For MATLAB backend: MATLAB + MATLAB Engine for Python
License
Unlicense - Public Domain
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/sanshanjianke/scicompute-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
