Code Executor MCP Server
MEOK AI Labs 제공 — 모두를 위한 주권 AI 도구.
코드 실행기 MCP 서버
AI 에이전트를 위한 샌드박스 코드 실행 환경입니다. 포괄적인 안전 가드, 출력 캡처, 타임아웃 보호 및 파일 액세스 제한을 통해 Python, JavaScript 및 셸 명령을 실행합니다. 파괴적인 패턴 차단 및 구성 가능한 제한을 통해 프로덕션 환경에서 사용할 수 있도록 구축되었습니다.
도구
도구 | 설명 |
| 안전 검사 및 출력 캡처를 통해 Python 또는 JavaScript 코드 실행 |
| 파괴적인 패턴 차단 기능을 갖춘 셸 명령 실행 |
| 테스트 스위트(pytest, jest 등)를 실행하고 통과/실패 요약 제공 |
| 허용된 디렉토리 내의 파일 읽기 |
| 실행 샌드박스의 파일 목록 확인 |
| 현재 차단된 패턴 및 안전 구성 확인 |
안전 기능
파괴적인 셸 명령 차단:
rm -rf /, 포크 폭탄, 파이프-투-셸위험한 Python 코드 차단:
os.system,subprocess,eval(input), 원시 소켓위험한 JavaScript 코드 차단:
child_process,require('fs'),eval()파일 액세스 제한: Desktop, Documents, Downloads, /tmp로 제한
모든 실행은 격리된 임시 디렉토리에서 수행
60초의 엄격한 타임아웃 제한
메모리 문제 방지를 위해 출력을 10KB로 제한
설치
pip install mcpJavaScript 지원을 위한 선택 사항:
brew install node # or: apt install nodejs사용법
서버 실행
python server.pyClaude Desktop 설정
{
"mcpServers": {
"code-executor": {
"command": "python",
"args": ["/path/to/code-executor-mcp/server.py"]
}
}
}호출 예시
Python 실행:
Tool: execute_code
Input: {"code": "import math\nprint(f'Pi = {math.pi:.10f}')\nprint(f'e = {math.e:.10f}')", "language": "python"}
Output: {"output": "Pi = 3.1415926536\ne = 2.7182818285\n", "exit_code": 0, "elapsed_seconds": 0.045}셸 명령 실행:
Tool: run_command
Input: {"command": "ls -la /tmp | head -20"}
Output: {"output": "total 128\ndrwxrwxrwt ...", "exit_code": 0, "elapsed_seconds": 0.012}테스트 실행:
Tool: run_tests
Input: {"test_command": "python -m pytest tests/ -v", "working_dir": "/path/to/project"}
Output: {"passed": true, "summary": "12 passed in 1.34s", "exit_code": 0}차단된 명령 예시:
Tool: run_command
Input: {"command": "rm -rf /"}
Output: {"error": "Command blocked by safety filter (matches: rm\\s+-rf\\s+/)"}요금제
등급 | 제한 | 가격 |
무료 | 일일 50회 실행, 30초 타임아웃 | $0 |
프로 | 무제한, 120초 타임아웃, Docker 격리 | $9/월 |
엔터프라이즈 | 맞춤형 + 네트워크 액세스 + GPU 실행 | 문의 요망 |
라이선스
MIT
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/CSOAI-ORG/code-executor-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server