Mmcp.market

SageMath MCP server

by XBP-Europe·io.github.XBP-Europe/sagemath-mcp·v0.8.2

Stateful SageMath MCP server with 40 tools and a sandboxed Sage session per client.

B75/100grade B
What users say
No reviews yet
Be the first
Safety scan
B75/100

full report

Adoption
Growing

15 stars386 downloads/wk

Reviews

Write one

Nobody has reviewed SageMath yet.

If you have run it, two minutes of your experience saves the next person an afternoon.

SageMath tools (39, 3 write)

write = sends, deletes, buys or posts

Read from the package source without running it. The installed server may list more.

  • boolean_algebra_operation
  • calculate_expression

    Evaluate a SageMath expression and return numeric/string forms

  • cancel_sage_sessionwrite action

    Cancel any running Sage computation and restart the worker

  • coding_theory_operation
  • combinatorics_operation
  • differentiate_expression

    Differentiate an expression with respect to a variable

  • distribution_operation

    Probability distribution operations: PDF, CDF, quantile, mean, variance, sampling

  • elliptic_curve_operation
  • evaluate_sagewrite action

    Run SageMath code, preserving state within the caller's MCP session.

  • evaluate_sage_streamingwrite action

    Execute SageMath code and stream intermediate print() output

  • expand_expression

    Expand a mathematical expression

  • factor_expression

    Factor a mathematical expression or integer

  • find_root

    Find a numeric root of an expression or equation in a given interval

  • geometry_operation
  • graph_operation

    Graph theory: create named graphs and compute properties

  • group_operation

    Group theory: construct groups and query properties

  • integrate_expression

    Integrate an expression (indefinite or definite with bounds)

  • interrupt_sage_session

    Interrupt a running Sage computation while keeping variables defined so far

  • limit_expression

    Compute the limit of an expression

  • list_sage_sessions

    List the named Sage workspaces belonging to this client

  • lookup_sage_doc

    Documentation links for a SageMath name, plus whether this server

  • matrix_multiply

    Multiply two matrices and return the result as nested lists

  • matrix_operation
  • number_theory_operation
  • plot3d_expression

    Plot a 3D surface of a two-variable expression as a rendered image

  • plot_expression

    Plot an expression and return it as a rendered image (PNG or SVG)

  • plot_multi_expression

    Plot multiple expressions overlaid on a single 2D graph, as a rendered image

  • polynomial_ring_operation

    Polynomial ring operations: construct rings

  • reset_sage_session

    Reset the SageMath session state for the current MCP session

  • series_expansion

    Compute a Taylor/Laurent series expansion

  • simplify_expression

    Simplify a mathematical expression

  • solve_equation

    Solve an equation or system of equations

  • solve_ode
  • start_sage_session

    Start a named Sage workspace with its own independent variables

  • statistics_summary
  • stop_sage_session

    Stop a named Sage workspace and release its worker

  • symbolic_sum
  • vector_calculus_operation

    Vector calculus operations: gradient, divergence, curl, laplacian

  • verify_claim

Public scan report

scanner v0.1.8 · 2026-09-19 · same rubric, same numbers if you re-run it

2 medium
  • Code scan32 source files scanned15/25
  • Live reliabilityno gateway calls yet and no remote to proben/a
  • Tool poisoningtools not inspected (local package is not executed); not countedn/a
  • Auth qualitylocal package, no credentials required12/15
  • Maintenancelast push 0 days ago15/15
  • Maintainer identityregistry namespace matches repository owner7/10

Findings (2)

  • mediumeval / new Function usedexec.eval
    sagemath_mcp-0.8.2/src/sagemath_mcp/_sage_worker.py: …e in its own right: # # latex.eval() runs the toolchain -- and `ev…
  • mediumsubprocess with shell=Trueexec.shell-true
    sagemath_mcp-0.8.2/src/sagemath_mcp/security.py: …ame)` runs `call("kpsewhich %s" % name, shell=True)` # and executed `id > /tmp/...…
Overall 75/100. Components that don't apply are left out of the denominator. Any critical finding is an F.RubricAppeal a findingJSON

Grade history

  • 2026-09-19restoreCBscore 75: eval / new Function used; subprocess with shell=True

Install directly

claude mcp add sagemath-mcp -- uvx sagemath-mcp
Add to Cursor

SageMath: common questions

Is SageMath MCP server safe?
Mostly: it is graded B (75/100). Read the SageMath safety report
How do I install SageMath?
It runs on your machine. Copy the Claude Code, Claude Desktop or Cursor config from the install section.
Does SageMath need an API key?
Not as far as the registry entry and our scan can tell: no credentials are declared or required.
Is SageMath maintained?
The last commit was in the last day (2026-09-19). The latest release is v0.8.2.

More from XBP-Europe