Skip to content

Kernel-Labs-AI/mcp-sandbox

 
 

Repository files navigation

Forked from the awesome hackathon project of Netglade

MCP Sandbox

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

npm version License: MIT

npm install @kernel-labs/mcp-sandbox

Quick Start

import { startMcpSandbox } from '@kernel-labs/mcp-sandbox';

// Start the MCP sandbox
const mcpSandbox = await startMcpSandbox({
  command: 'npx -y @modelcontextprotocol/server-brave-search',
  apiKey: 'e2b_****',
  templateName: 'your-template' // Optional
});

// Get the MCP server URL to connect your AI assistant
const mcpUrl = mcpSandbox.getUrl();
console.log("MCP server URL:", mcpUrl);

How It Works

  1. MCP Server Execution: Uses supergateway to run stdio-based MCP servers over SSE (Server-Sent Events)
  2. Sandbox Environment: Runs in E2B's secure sandbox environment, providing isolated execution
  3. Tool Integration: Seamlessly connects AI assistants with real-world tools and data sources
  4. Browser Support: Everything runs directly in the browser without local dependencies

Contributing

Do not open PRs before having discussed issue in GH. Saves everyone time!

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 52.8%
  • JavaScript 47.2%