Run Model Context Protocol (MCP) servers in E2B's sandbox environment
🏆 Winner of the E2B Agents and AI Tools Hackathon
MCP Sandbox enables you to run Model Context Protocol (MCP) servers directly in the browser using E2B's sandbox environment. This package makes it easy to integrate AI assistants with tools and data sources without requiring any local setup.
npm install @netglade/mcp-sandbox
import { startMcpSandbox } from '@netglade/mcp-sandbox';
// Start the MCP sandbox
const mcpSandbox = await startMcpSandbox({
command: 'npx -y @modelcontextprotocol/server-brave-search',
apiKey: 'e2b_****',
});
// Get the MCP server URL to connect your AI assistant
const mcpUrl = mcpSandbox.getUrl();
console.log("MCP server URL:", mcpUrl);
- MCP Server Execution: Uses supergateway to run stdio-based MCP servers over SSE (Server-Sent Events)
- Sandbox Environment: Runs in E2B's secure sandbox environment, providing isolated execution
- Tool Integration: Seamlessly connects AI assistants with real-world tools and data sources
- Browser Support: Everything runs directly in the browser without local dependencies
- 🎮 Live Demo - Try it directly in your browser
- 📦 Demo Repository - Full example implementation
- 📝 Blog Post - Learn about the project's journey
We welcome contributions! Feel free to open issues and pull requests.