Capsule server
Enables the execution of JavaScript code in a secure, isolated WebAssembly sandbox with strictly controlled resource limits and no access to the host file system or network.
Enables the execution of Python code in a secure, isolated WebAssembly sandbox with strictly controlled resource limits and no access to the host file system or network.
Capsule MCP Server
Give your agent the ability to write and run Python and JavaScript code, in a secure sandbox.
Every execution happens inside its own WebAssembly sandbox with strict resource limits. No file system access, no risk to your host system.
Tools
Tool | Description |
| Run Python code in an isolated sandbox |
| Run JavaScript code in an isolated sandbox |
Example
Ask your agent:
"I have monthly revenue of [12400, 15800, 14200, 18900, 21000, 19500]. What's the average and which month grew the most?"
The agent calls execute_python with:
revenue = [12400, 15800, 14200, 18900, 21000, 19500]
avg = sum(revenue) / len(revenue)
growth = [revenue[i] - revenue[i-1] for i in range(1, len(revenue))]
best_month = growth.index(max(growth)) + 2 # +2 for 1-indexed and offset
{"average": round(avg, 2), "best_growth_month": best_month, "growth": max(growth)}→ {"average": 16966.67, "best_growth_month": 4, "growth": 4700}
Related MCP server: e2b-mcp-server
Setup
Add to your MCP client configuration:
{
"mcpServers": {
"capsule": {
"command": "npx",
"args": ["-y", "@capsule-run/mcp-server"]
}
}
}How It Works
The server ships two pre-compiled WebAssembly modules: one for Python, one for JavaScript. When a tool is called, the code is executed via capsule inside a dedicated Wasm sandbox with:
Isolated memory — each execution gets its own address space
CPU/Ram limits — fuel-metered execution prevents runaway loops
No host access — no filesystem or network unless explicitly allowed
Learn more about Capsule.
Limitations
Stateless — each execution starts from a clean sandbox. There is no shared state between calls. To chain results, pass previous outputs as inputs to the next execution.
Python HTTP — standard networking libraries are not compatible with the Wasm sandbox.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityDmaintenanceA general-purpose MCP server providing web search, persistent memory storage, and secure code execution capabilities. It enables AI agents to search the web, store and retrieve data, and run Python/JavaScript code in sandboxed environments.Last updated8MIT
- Alicense-qualityCmaintenanceProduction-grade MCP server that enables AI assistants to execute code securely in isolated E2B sandboxes.Last updatedApache 2.0
- Alicense-qualityDmaintenanceA production-ready MCP server that equips AI agents with dynamic, persistent, and executable skills. It enables secure script execution and progressive disclosure to reduce context window usage.Last updated12MIT
- Flicense-qualityCmaintenanceA self-hosted MCP server that gives AI agents controlled access to a machine: filesystem, shell, background processes, git, web fetching and persistent key-value memory.Last updated
Related MCP Connectors
Cloud-hosted MCP server for durable AI memory
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
An MCP server for Arcjet - the runtime security platform that ships with your AI code.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/capsulerun/capsule'
If you have feedback or need assistance with the MCP directory API, please join our Discord server