SMART-E2B
Integrates E2B for secure code execution in cloud sandboxes, designed for Claude AI Desktop.
SMART-E2B
Un serveur MCP (Model Context Protocol) qui intègre E2B pour exécuter du code dans des environnements sandbox sécurisés dans le cloud, spécialement conçu pour fonctionner avec Claude AI Desktop.
Caractéristiques
- Exécution sécurisée de code JavaScript et Python dans le cloud
- Gestion de fichiers intégrée (upload, lecture, liste)
- Réutilisation intelligente des sessions sandbox pour optimiser les performances
- Gestion automatique des timeouts et des erreurs
- Compatible avec Claude AI Desktop via MCP
Prérequis
- Node.js (v16 ou supérieur)
- Clé API E2B (obtenue sur e2b.dev)
- Claude AI Desktop
Installation
Installing via Smithery
To install smart-e2b for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @Leghis/smart-e2b --client claude
Installing Manually
# Installation globale depuis NPM
npm install -g smart-e2b
# OU installation directe depuis GitHub
npm install -g git+https://github.com/Leghis/smart-e2b.git
Configuration avec Claude AI Desktop
- Ouvrez Claude AI Desktop
- Allez dans les paramètres > onglet Développeur > Modifier la configuration
- Ajoutez la configuration suivante au fichier
claude_desktop_config.json:
{
"mcpServers": {
"smart-e2b": {
"command": "npx",
"args": ["-y", "smart-e2b"],
"env": {
"E2B_API_KEY": ""
}
}
}
}
- Redémarrez Claude AI Desktop
Utilisation
Une fois configuré, vous pourrez accéder aux outils SMART-E2B directement depuis les conversations avec Claude AI Desktop.
Outils disponibles
- executeJavaScript : Exécute du code JavaScript dans un sandbox cloud
- executePython : Exécute du code Python dans un sandbox cloud
- uploadFile : Téléverse un fichier dans le sandbox
- listFiles : Liste les fichiers dans un répertoire du sandbox
- readFile : Lit le contenu d'un fichier dans le sandbox
Exemples
Voici quelques exemples d'utilisation avec Claude AI Desktop :
Exécution de code JavaScript
Je voudrais tester ce code JavaScript :
function fibonacci(n) {
if (n <= 1) return n;
return fibonacci(n-1) + fibonacci(n-2);
}
console.log(fibonacci(10));
Exécution de code Python
Pourrais-tu exécuter ce code Python pour analyser des données ?
import numpy as np
import matplotlib.pyplot as plt
# Générer des données aléatoires
data = np.random.normal(0, 1, 1000)
# Calculer les statistiques
mean = np.mean(data)
std = np.std(data)
print(f"Moyenne: {mean:.4f}")
print(f"Écart-type: {std:.4f}")
# Créer un histogramme
plt.hist(data, bins=30)
plt.title('Distribution normale')
plt.savefig('histogram.png')
Développement
Pour contribuer ou modifier le projet :
# Cloner le dépôt
git clone https://github.com/Leghis/smart-e2b.git
cd smart-e2b
# Installer les dépendances
npm install
# Compiler
npm run build
# Tester localement
npm start
Licence
MIT
Related Servers
Scout Monitoring MCP
sponsorPut performance and error data directly in the hands of your AI assistant.
Alpha Vantage MCP Server
sponsorAccess financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
Flux Schnell MCP Server
Generate images using the Flux Schnell model via the Replicate API.
Openapi MCP
An MCP server that lets LLMs inspect and interact with OpenAPI specifications.
BrowserStack
Bring the full power of BrowserStack’s Test Platform to your AI tools, making testing faster and easier for every developer and tester on your team.
Pickapicon
Quickly retrieve SVGs using the Iconify API, with no external data files required.
llm-context
Share code context with LLMs via Model Context Protocol or clipboard.
rxjs-mcp-server
Execute, debug, and visualize RxJS streams directly from AI assistants like Claude.
Nereid - Mermaid charts
Create and explore Mermaid diagrams in collaboration with AI agents
YAPI MCP PRO
An MCP server for the YApi interface management platform, enabling direct operation and full lifecycle management within AI editors.
Context
Local-first documentation for AI agents. Indexes docs from any git repo into SQLite for offline, instant, private access to up-to-date library documentation.
Remote MCP Server (Authless)
An example of a remote MCP server deployable on Cloudflare Workers without authentication.