Back to MCP directory
publicPublicdnsLocal runtime

mcp-code-runner

基于MCP协议的代码执行器,通过Docker环境执行代码并返回结果。

article

README

🚀 mcp-code-runner

基于 MCP 协议的代码执行器,借助 Docker 环境实现代码执行,因此需要本机具备 Docker 环境。

🚀 快速开始

本项目是基于 MCP 协议的代码执行器,最终通过 Docker 进行代码执行,所以请确保本机已配置好 Docker 环境。

✨ 主要特性

  • [x] 支持 MCP 协议
  • [x] 支持代码执行,并获取代码执行的结果
  • [ ] 获取代码执行的时间、内存等信息

项目状态徽章

smithery badge

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client