mathematica-mcp-full

v1.1.2
mathematica-mcp-full Checked 17 hours ago Published 5 months ago

Full 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.

ParameterTypeDescription
steps *array
formatstring
timeoutinteger

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.

ParameterTypeDescription
action *string
format
notebook
path
session_id
show_chatbarboolean
titlestring

cells

Read notebook cells. action: list | read(cell_id) | select(cell_id) | scroll(cell_id). style/offset/limit filter list; cursor= pages long output.

ParameterTypeDescription
actionstring
cell_id
cursor
include_contentboolean
limit
notebook
offsetinteger
session_id
style

edit_cells

Edit notebook cells. action: write(content, style, position) | delete(cell_id).

ParameterTypeDescription
action *string
cell_id
content
notebook
positionstring
session_id
stylestring

evaluate

Evaluate code. target: kernel | notebook | cell(cell_id) | selection. dry_run=True checks syntax; file= runs a .wl script; cursor= pages long output.

ParameterTypeDescription
cell_id
code
cursor
dry_runboolean
file
formatstring
notebook
session_id
targetstring
timeoutinteger

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).

ParameterTypeDescription
cacheboolean
cell_id
expression
image_sizeinteger
max_heightinteger
notebook
scopestring
session_id

kernel

Kernel admin. action: state | messages | restart | load_package(package) | packages | inspect(expression). cursor= pages long output.

ParameterTypeDescription
actionstring
countinteger
cursor
expression
package

vars

Manage kernel variables. action: list | get(name) | set(name,value) | clear(name | pattern) | clear_all. cursor= pages long output.

ParameterTypeDescription
actionstring
cursor
include_systemboolean
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.

ParameterTypeDescription
path *string
cursor
modestring

guide

On-demand guidance. topic: workflow | errors | notebook_hygiene | screenshots | v15 | profiles | toolsets | batch.

ParameterTypeDescription
topicstring

batch

Run multiple addon ops in one round trip. ops: [{command, params}, ...]. Command vocabulary: guide(topic='batch').

ParameterTypeDescription
ops *array