Run Model Context Protocol (MCP) servers in E2B's sandbox environment
🏆 Winner of the E2B Agents and AI Tools Hackathon
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);
- Uses supergateway to run stdio-based MCP servers over SSE (Server-Sent Events)
- Runs it in an E2B sandbox environment