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
Serveurs connexes
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
Tinyman MCP
An MCP server for the Tinyman protocol on the Algorand blockchain, offering tools for swaps, liquidity provision, and pool management.
MCP Game Development Server
Automate game creation using React Three Fiber and manage projects with Linear integration.
MCP Front
An OAuth 2.1 proxy for MCP servers that enables single sign-on with Google, domain validation, and per-user tokens.
Remote MCP Server (Authless)
An example of a remote MCP server deployable on Cloudflare Workers, without authentication.
Remote MCP Server on Cloudflare
A remote MCP server deployable on Cloudflare Workers with OAuth login support and local development capabilities.
NeoCoder
Enables AI assistants to use a Neo4j knowledge graph for standardized coding workflows, acting as a dynamic instruction manual and project memory.
Matware E2E Runner
JSON-driven E2E test runner with parallel Chrome pool execution, visual verification, and 16 MCP tools.
SonarQube
Provides seamless integration with SonarQube Server or Cloud, and enables analysis of code snippets directly within the agent context
Zeek-MCP
Integrates Zeek network analysis with conversational AI clients. Requires an external Zeek installation.
MCPOmni Connect
A universal command-line interface (CLI) gateway to the MCP ecosystem, integrating multiple MCP servers, AI models, and transport protocols.