A community-driven registry for Claude, Cursor, Windsurf, Cline & more. Not affiliated with Anthropic.
Are you the author? Sign in to claim
E2B MCP Gateway Demo
A demonstration of using Model Context Protocol (MCP) servers with E2B sandboxes and Mastra agents. This project showcases how to run MCP servers in secure E2B sandboxes and integrate them with AI agents.
This demo creates an AI agent that can access MCP servers (like Context7 for documentation) running inside an E2B sandbox. The agent can then use the tools provided by these MCP servers to answer questions.
Before getting started, you'll need:
# Install dependencies
bun install
Create a .env file in the project root:
# E2B API key for sandbox creation
E2B_API_KEY=your_e2b_api_key
# OpenAI API key for the agent
OPENAI_API_KEY=your_openai_api_key
bun run index.ts
The demo will:
┌─────────────┐
│ Mastra Agent│
└──────┬──────┘
│
▼
┌─────────────┐
│ MCP Client │
└──────┬──────┘
│
▼
┌─────────────┐
│ E2B Sandbox │
│ ┌────────┐ │
│ │Context7│ │
│ │ MCP │ │
│ └────────┘ │
└─────────────┘
index.ts - Main entry point, creates the agent and runs a querymcp.ts - Sets up the E2B sandbox with MCP servers and creates the MCP clientEdit the servers configuration in index.ts:
const servers: McpServer = {
context7: {},
// Add more MCP servers here
// Example:
// filesystem: {
// args: ["/path/to/directory"]
// }
};
Modify the agent configuration in index.ts:
const agent = new Agent({
name: "DocsAgent",
instructions: "Your custom instructions here",
model: "openai/gpt-4o", // or another model
tools: await E2BMCPClient.getTools(),
});
Update the query in index.ts:
const result = await agent.generate("Your question here");
Run Claude Code as an MCP server so any agent can delegate coding tasks to it
Browser automation using accessibility snapshots instead of screenshots
MCP server integration for DaVinci Resolve Studio
A Jetbrains IDE IntelliJ plugin aimed to provide coding agents the ability to leverage intelliJ's indexing of the codeba