Skip to main content
Glama
Eis4TY

SymPy Sandbox MCP

by Eis4TY

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
SYMMCP_LOG_LEVELNolog levelINFO
SYMMCP_POOL_SIZENoworker pool size10
SYMMCP_HINT_LEVELNohint level (none/short/medium)medium
SYMMCP_QUEUE_WAIT_SECNoqueue wait timeout (sec)2
SYMMCP_MEMORY_LIMIT_MBNomemory cap per worker (MB)150
SYMMCP_EXEC_TIMEOUT_SECNoper execution timeout (sec)3
SYMMCP_MAX_OUTPUT_CHARSNooutput truncation threshold1200

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
sympy

SymPy sandbox tool: execute Python/SymPy math code.

Safety boundaries:

  • Only sympy/math imports and calls are allowed.

  • System calls, file I/O, network access, and dynamic execution are blocked.

Input rules:

  • Single argument: code (str).

  • You must print() the final answer; otherwise out may be empty.

  • Use multiple print() lines for multiple outputs.

Recommended workflow:

  1. Define symbols and assumptions.

  2. Derive/solve step by step.

  3. Simplify intermediate expressions (simplify/factor/expand).

  4. Print final results.

Retry guidance:

  • E_AST_BLOCK: remove unsafe statements and keep pure math code only.

  • E_TIMEOUT: reduce problem size, split steps, simplify before solving.

  • E_MEMORY: reduce dimensions or avoid constructing huge objects at once.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

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/Eis4TY/Sym-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server