# E2B import ToolInfo from "@/app/_components/tool-info"; import Badges from "@/app/_components/badges"; import TabbedCodeBlock from "@/app/_components/tabbed-code-block"; import TableOfContents from "@/app/_components/table-of-contents"; import ToolFooter from "@/app/_components/tool-footer"; import { Callout } from "nextra/components"; The Arcade E2B MCP Server provides a pre-built set of tools for running code in a sandboxed environment. These tools make it easy to build agents and AI apps that can: - Run code in a sandboxed environment - Create a static matplotlib chart ## Available Tools These tools are currently available in the Arcade E2B MCP Sever. If you need to perform an action that's not listed here, you can [get in touch with us](mailto:contact@arcade.dev) to request a new tool, or [create your own tools](/guides/create-tools/tool-basics/build-mcp-server). ## E2b.RunCode
Run code in a sandbox and return the output. **Auth:** - **Environment Variables Required:** - `E2B_API_KEY`: Your API key for authentication. **Parameters** - **`code`** _(string, required)_ The code to run. - **`language`** _(string, optional)_ The language of the code. Valid values are 'python', 'js', 'r', 'java', 'bash'. Defaults to 'python'. --- ## E2b.CreateStaticMatplotlibChart
Run the provided Python code to generate a static matplotlib chart. The resulting chart is returned as a base64 encoded image. **Auth:** - **Environment Variables Required:** - `E2B_API_KEY`: Your API key for authentication. **Parameters** - **`code`** _(string, required)_ The Python code to run. ## Auth The Arcade E2B MCP Sever uses [E2B](https://e2b.dev/) to run code in a sandboxed environment. **Global Environment Variables:** - `E2B_API_KEY`: Your [E2B](https://e2b.dev/) API key.