Skip to main content
Glama
XBP-Europe
by XBP-Europe

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
SAGEMATH_MCP_STARTUPNoSage code executed during session bootstrap.from sage.all import *
SAGEMATH_MCP_IDLE_TTLNoSeconds of inactivity before a session is culled.900
SAGEMATH_MCP_MAX_STDOUTNoMaximum characters of stdout returned per call.100000
SAGEMATH_MCP_PURE_PYTHONNoWhen set to 1, load math stdlib instead of Sage modules.unset
SAGEMATH_MCP_SAGE_BINARYNoPath to the sage executable.sage
SAGEMATH_MCP_EVAL_TIMEOUTNoPer-evaluation timeout in seconds.30
SAGEMATH_MCP_SHUTDOWN_GRACENoGrace period before a stuck worker is terminated.2
SAGEMATH_MCP_SECURITY_ENABLEDNoEnable/disable AST-based code validation.true
SAGEMATH_MCP_FORCE_PYTHON_WORKERNoUse the pure-Python worker (helpful for tests/CI).false
SAGEMATH_MCP_SECURITY_MAX_SOURCENoMaximum source length in characters.8000
SAGEMATH_MCP_SECURITY_ALLOW_IMPORTSNoPermit import statements when set to true.false
SAGEMATH_MCP_SECURITY_FORBID_GLOBALNoBlock global statements when true.true
SAGEMATH_MCP_SECURITY_MAX_AST_DEPTHNoMaximum AST depth allowed.75
SAGEMATH_MCP_SECURITY_MAX_AST_NODESNoMaximum AST node count allowed.2500
SAGEMATH_MCP_SECURITY_LOG_VIOLATIONSNoEmit warnings when code is blocked.true
SAGEMATH_MCP_SECURITY_ALLOWED_IMPORTSNoComma-separated allowlist of importable modules.math,cmath,statistics,base64,io,sage,sage.all
SAGEMATH_MCP_SECURITY_FORBID_NONLOCALNoBlock nonlocal statements when true.true
SAGEMATH_MCP_SECURITY_ALLOWED_IMPORT_PREFIXESNoComma-separated prefixes treated as safe namespaces.sage.

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

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/XBP-Europe/sagemath-mcp'

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