{"id":26648421,"url":"https://github.com/bazinga012/mcp_code_executor","last_synced_at":"2025-03-25T00:02:08.936Z","repository":{"id":276163006,"uuid":"928420039","full_name":"bazinga012/mcp_code_executor","owner":"bazinga012","description":"The MCP Code Executor is an MCP server that allows LLMs to execute Python code within a specified Conda environment.","archived":false,"fork":false,"pushed_at":"2025-03-20T04:07:12.000Z","size":19,"stargazers_count":27,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-20T05:20:36.005Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bazinga012.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-06T15:58:32.000Z","updated_at":"2025-03-20T05:10:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"8d11c381-4a8a-4f63-8924-5e1226a7931c","html_url":"https://github.com/bazinga012/mcp_code_executor","commit_stats":null,"previous_names":["bazinga012/mcp_code_executor"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bazinga012%2Fmcp_code_executor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bazinga012%2Fmcp_code_executor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bazinga012%2Fmcp_code_executor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bazinga012%2Fmcp_code_executor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bazinga012","download_url":"https://codeload.github.com/bazinga012/mcp_code_executor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245372379,"owners_count":20604491,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-25T00:01:57.044Z","updated_at":"2025-03-25T00:02:08.892Z","avatar_url":"https://github.com/bazinga012.png","language":"JavaScript","readme":"# MCP Code Executor\n[![smithery badge](https://smithery.ai/badge/@bazinga012/mcp_code_executor)](https://smithery.ai/server/@bazinga012/mcp_code_executor)\n\nThe MCP Code Executor is an MCP server that allows LLMs to execute Python code within a specified Conda environment. This enables LLMs to run code with access to libraries and dependencies defined in the Conda environment.\n\n\u003ca href=\"https://glama.ai/mcp/servers/45ix8xode3\"\u003e\u003cimg width=\"380\" height=\"200\" src=\"https://glama.ai/mcp/servers/45ix8xode3/badge\" alt=\"Code Executor MCP server\" /\u003e\u003c/a\u003e\n\n## Features\n\n- Execute Python code from LLM prompts\n- Run code within a specified Conda environment \n- Configurable code storage directory\n\n## Prerequisites\n\n- Node.js installed\n- Conda installed\n- Desired Conda environment created\n\n## Setup\n\n1. Clone this repository:\n\n```bash\ngit clone https://github.com/bazinga012/mcp_code_executor.git\n```\n\n2. Navigate to the project directory:\n\n```bash \ncd mcp_code_executor\n```\n\n3. Install the Node.js dependencies:\n\n```bash\nnpm install\n```\n\n4. Build the project:\n\n```bash\nnpm run build\n```\n\n## Configuration\n\nTo configure the MCP Code Executor server, add the following to your MCP servers configuration file:\n\n```json\n{\n  \"mcpServers\": {\n    \"mcp-code-executor\": {\n      \"command\": \"node\",\n      \"args\": [\n        \"/path/to/mcp_code_executor/build/index.js\" \n      ],\n      \"env\": {\n        \"CODE_STORAGE_DIR\": \"/path/to/code/storage\",\n        \"CONDA_ENV_NAME\": \"your-conda-env\"\n      }\n    }\n  }\n}\n```\n\nReplace the placeholders:\n- `/path/to/mcp_code_executor` with the absolute path to where you cloned this repository \n- `/path/to/code/storage` with the directory where you want the generated code to be stored\n- `your-conda-env` with the name of the Conda environment you want the code to run in\n\n## Usage\n\nOnce configured, the MCP Code Executor will allow LLMs to execute Python code by generating a file in the specified `CODE_STORAGE_DIR` and running it within the Conda environment defined by `CONDA_ENV_NAME`.\n\nLLMs can generate and execute code by referencing this MCP server in their prompts.\n\n## Contributing\n\nContributions are welcome! Please open an issue or submit a pull request.\n\n## License\n\nThis project is licensed under the MIT License.\n\n","funding_links":[],"categories":["Sandboxing \u0026 Execution","MCP 服务器精选列表","📚 Projects (1974 total)","Community Servers","Developer Tools","Table of Contents","Code Execution","Mcp Server Directories \u0026 Lists","🌐 Web Development","🗂️ Extensions by Category"],"sub_categories":["Wiki \u0026 Collaboration","💻 开发与代码执行","MCP Servers","AI Services","How to Submit","⚙️ Development Tools"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbazinga012%2Fmcp_code_executor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbazinga012%2Fmcp_code_executor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbazinga012%2Fmcp_code_executor/lists"}