sandfort-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
sandfort-mcp
A stdio MCP server for a running Sandfort instance. It exposes sandbox operations as MCP tools, so an agent can create a sandbox, run code and commands, move files and take snapshots.
Sandfort is a self-hosted sandbox platform for running AI-generated code. The Sandfort server is source-available (FSL-1.1-Apache-2.0). This package is licensed Apache-2.0.
Install
pip install sandfort-mcpor run it without installing:
uvx sandfort-mcpPython 3.12 or newer is required. The package depends on mcp>=2 and sandfort-sdk.
Related MCP server: anvil
Configure
Two environment variables are required. The server exits with status 2 and a message on stderr when either one is missing.
Variable | Meaning |
| Base URL of your Sandfort server, for example |
| A Sandfort API key (it starts with |
Example entry for an MCP client that takes a JSON config:
{
"mcpServers": {
"sandfort": {
"command": "uvx",
"args": ["sandfort-mcp"],
"env": {
"SANDFORT_BASE_URL": "http://127.0.0.1:8000",
"SANDFORT_API_KEY": "sf_..."
}
}
}
}Tools
Sandboxes and snapshots:
create_sandbox: create a sandbox and wait until it is startedlist_sandboxes: list live sandboxes (destroyed and deleting ones are left out)delete_sandbox: delete a sandbox by idcreate_snapshot: create a named snapshot from a sandbox
Running code:
run_code: run a code snippet in a sandboxrun_command: run a shell command in a sandbox
Files:
upload_text_file: write a UTF-8 text filedownload_text_file: read a UTF-8 text fileupload_binary_file: write a file from base64 contentdownload_binary_file: read a file as base64list_directory: list a directory (at most 1000 entries, with atruncatedflag)stat_path: describe one file, directory or symlinkmake_directory: create a directory, with missing parents by defaultdelete_path: delete a file or directory (recursiveis off by default)
Tool errors are returned as text in the form error: <message>.
Limits
A reachable Sandfort server and an API key are required. This package does not start a server.
File downloads and binary uploads are limited to 1 MiB. Larger files are refused. Base64 inflates the payload by about a third.
The transport is stdio only. There is no HTTP transport.
The server acts with the scopes of the API key it is given.
Links
Website: https://sandfort.dev
Source: https://github.com/malinele/sandfort-mcp (the Sandfort server lives at https://github.com/malinele/sandfort)
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Run commands, code and file operations for AI agents in Cloud Hypervisor microVM sandboxes.
Secure Linux sandboxes for AI agents, as MCP tools.
Linux sandboxes for AI agents: run commands and Python or JS, files, ports, pause. E2B-compatible.
Execution platform for AI agents on Firecracker microVMs in the EU. Interactive Linux sandboxes with root, templates for Python, Node.js, Go, Rust and a headless browser, public HTTPS URLs. Background jobs that outlive the connection, batches of up to 1,000 jobs with dependencies, hard cost caps reserved up front, execution receipts with SHA-256, log digests that fit the context. IPv4, dual-stack or IPv6-only with its own public address, allowlists or no network. WASI runtime for small tasks. Idle sandboxes sleep and keep their files. Also REST API, Python SDK and LangChain.
Related MCP Servers
- AlicenseAqualityCmaintenanceConnects AI agents to microsandbox for creating lightweight sandboxes, executing code, managing files, and monitoring resources.19476 npm20Apache 2.0
- AlicenseNot gradedqualityCmaintenanceA throwaway Docker sandbox for agents to run code and shell commands safely.10 npmMIT
- AlicenseAqualityBmaintenanceEnables AI coding agents to safely run commands, install dependencies, test, and modify code inside disposable, policy-enforced Docker sandboxes isolated from the host, returning results and diffs.15MIT
- AlicenseNot gradedqualityAmaintenanceExposes tools over stdio that let an AI agent create disposable Docker sandboxes to run commands and stream output, read and write files, and take snapshots, roll them back, fork them, list, and destroy them. It tells the model to snapshot before risky changes so failed attempts can be undone or explored in parallel on self-hosted infrastructure.1Apache 2.0