Skip to content

netglade/mcp-sandbox

Repository files navigation

mcp-sandbox

Run Model Context Protocol (MCP) servers in E2B's sandbox environment

🏆 Winner of the E2B Agents and AI Tools Hackathon


npm version License: MIT

Installation

npm install @netglade/mcp-sandbox

Example

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);

How It Works

  1. Uses supergateway to run stdio-based MCP servers over SSE (Server-Sent Events)
  2. Runs it in an E2B sandbox environment

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published