mathematica-mcp-full
v1.1.2Full GUI control of Mathematica notebooks and kernel via Model Context Protocol
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
verify_derivation
Verify a sequence of mathematical expressions steps.
| Parameter | Type | Description |
|---|---|---|
steps * | array | |
format | string | |
timeout | integer |
status
Connection, kernel version, active profile, features, and warm-path health (cold-execution count, idle timeout). No params.
notebooks
Manage notebooks. action: list | info | create(title, show_chatbar) | open(path) | save | close | export(path). format: save=Notebook|PDF|HTML|TeX, export=PDF|HTML|TeX|Markdown.
| Parameter | Type | Description |
|---|---|---|
action * | string | |
format | ||
notebook | ||
path | ||
session_id | ||
show_chatbar | boolean | |
title | string |
cells
Read notebook cells. action: list | read(cell_id) | select(cell_id) | scroll(cell_id). style/offset/limit filter list; cursor= pages long output.
| Parameter | Type | Description |
|---|---|---|
action | string | |
cell_id | ||
cursor | ||
include_content | boolean | |
limit | ||
notebook | ||
offset | integer | |
session_id | ||
style |
edit_cells
Edit notebook cells. action: write(content, style, position) | delete(cell_id).
| Parameter | Type | Description |
|---|---|---|
action * | string | |
cell_id | ||
content | ||
notebook | ||
position | string | |
session_id | ||
style | string |
evaluate
Evaluate code. target: kernel | notebook | cell(cell_id) | selection. dry_run=True checks syntax; file= runs a .wl script; cursor= pages long output.
| Parameter | Type | Description |
|---|---|---|
cell_id | ||
code | ||
cursor | ||
dry_run | boolean | |
file | ||
format | string | |
notebook | ||
session_id | ||
target | string | |
timeout | integer |
screenshot
Capture a PNG. scope: notebook | cell(cell_id) | expression(expression). cache=True reuses the last PNG for notebook/cell scope until an MCP command mutates the notebook; may return stale pixels if it changed outside MCP (manual edits, Dynamic/Manipulate repaints, scroll/resize). The cache needs a stable target: pass notebook= or session_id=; without them the notebook-scope cache is skipped (the focused notebook cannot be named reliably). expression scope ignores it (already cached at the raster layer).
| Parameter | Type | Description |
|---|---|---|
cache | boolean | |
cell_id | ||
expression | ||
image_size | integer | |
max_height | integer | |
notebook | ||
scope | string | |
session_id |
kernel
Kernel admin. action: state | messages | restart | load_package(package) | packages | inspect(expression). cursor= pages long output.
| Parameter | Type | Description |
|---|---|---|
action | string | |
count | integer | |
cursor | ||
expression | ||
package |
vars
Manage kernel variables. action: list | get(name) | set(name,value) | clear(name | pattern) | clear_all. cursor= pages long output.
| Parameter | Type | Description |
|---|---|---|
action | string | |
cursor | ||
include_system | boolean | |
name | ||
pattern | ||
value |
read_notebook_file
Read a .nb/.wl file from disk (works without a kernel via Python fallback). mode: markdown | wolfram | outline | json | plain. cursor= pages long output.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
cursor | ||
mode | string |
guide
On-demand guidance. topic: workflow | errors | notebook_hygiene | screenshots | v15 | profiles | toolsets | batch.
| Parameter | Type | Description |
|---|---|---|
topic | string |
batch
Run multiple addon ops in one round trip. ops: [{command, params}, ...]. Command vocabulary: guide(topic='batch').
| Parameter | Type | Description |
|---|---|---|
ops * | array |