Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
SMCP_CPUSNoCPU cores limit per sandbox.2
SMCP_HOSTNoService listen address; recommend keeping 127.0.0.1.127.0.0.1
SMCP_PORTNoService listen port; shared by /mcp and /files.8000
SMCP_TOKENYesBearer token for MCP access; required. Generate with `openssl rand -hex 32`.
SMCP_URL_TTLNoValidity period (seconds) for signed file URLs.3600
SMCP_DATA_DIRNoDirectory for sandbox workspaces./var/lib/sandbox-mcp/data
SMCP_STATE_DBNoPath to SQLite state database./var/lib/sandbox-mcp/state.db
SMCP_MEM_LIMITNoMemory limit per sandbox.2g
SMCP_BASE_IMAGENoBase Docker image for sandboxes.ghcr.io/greenteodoro839/sandbox-mcp-base:latest
SMCP_PIDS_LIMITNoProcess count limit per sandbox.512
SMCP_JOB_TIMEOUTNoDefault timeout (seconds) for background jobs.3600
SMCP_SIGNING_KEYNoSeparate HMAC signing key for file URLs; defaults to SMCP_TOKEN if not set.= SMCP_TOKEN
SMCP_EXEC_TIMEOUTNoDefault timeout (seconds) for exec tool.60
SMCP_MAX_SANDBOXESNoMaximum number of simultaneous sandboxes.20
SMCP_PUBLIC_BASE_URLNoPublic base URL for constructing signed file URLs; must be changed to your public HTTPS address.http://127.0.0.1:8000
SMCP_SANDBOX_NETWORKNoSandbox network mode; set to 'none' for no network.bridge
SMCP_IDLE_STOP_SECONDSNoIdle time (seconds) before stopping a sandbox container.7200
SMCP_JOB_LOG_RETENTIONNoRetention time (seconds) for job logs.86400
SMCP_GC_INTERVAL_SECONDSNoGC check interval (seconds).300
SMCP_IDLE_REMOVE_SECONDSNoIdle time (seconds) before removing a sandbox and its files.604800
SMCP_READ_TEXT_MAX_BYTESNoMaximum bytes for inline read_text; larger files use download_url.200000

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/GreenTeodoro839/sandbox-mcp'

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