Prerequisites
- Get an E2B API Key: Sign up at E2B
- Install the Meshagent CLI:
- Authenticate with Meshagent:
See detailed auth instructions.
1. Environment Variables
Set your environment variables (replace the token as needed):E2B_API_KEY
– Your E2B API key
2. Start the MCP Server as a Meshagent Room Service
- Starts a Meshagent Room with the MCP server running as a test agent.
- Service and chatbot clean up automatically when the Room closes or goes inactive.
3. Join with a Chatbot Agent
- Launches a chatbot in the same Room, provisioned with the e2b toolkit.
- You will receive a browser link to the Room—multiple toolkits can be used in the same Room.
4. Interact with the MCP Server Tools
- Open the Room link in your browser.
- Send a message to the agent and interact with the MCP server tool, e.g., ask it to run Python code!
Environment Variables (Summary)
E2B_API_KEY
– Your E2B API Key (required)MESHAGENT_PORT
– Set to 8001 for the MCP server
🔒 Project-Level Deployment (Persistent Integration)
Set up always-available MCP server and chatbot services in all Meshagent Rooms for your project—great for production or consistent workflows (no separate hosting needed):1. Create Persistent MCP Service
2. Create Persistent Chatbot Service
- Both services will start in every Room created in the project, allowing all users instant access to the MCP tools and chatbot.
🛠️ Tools Available
run_code
Run python code in a secure sandbox by E2B.
Short Description:Run python code in a secure sandbox by E2B. Details:
- Parameters:
code
(string): Python code to be executed.
- Syntax: Jupyter Notebook style.
MCP Server Info
- What is an MCP Server?
- Docker Image: meshagent/mcp-e2b
🔗 Useful Links
- Meshagent: https://www.meshagent.com/
- Meshagent Docs: https://docs.meshagent.com
- Meshagent MCP Tool Image: https://hub.docker.com/r/meshagent/mcp-e2b