mcp-python-executor
A Model Context Protocol (MCP) server for executing Python code and managing Python packages.
Install / Use
claude mcp add bsmi021 -- npx -y github:bsmi021/mcp-python-executorIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
Development & EngineeringSupported Platforms
Our assessment of mcp-python-executor
mcp-python-executor scores 57/100 on our quality scale, 4199th of 4,658 Development & Engineering skills we index.
Its MCP Server is 2.1 KB long, split into 7 sections with 4 code examples: moderately detailed.
It has 3 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated about 1.7 years ago. Expect some instructions to reference tool versions or APIs that have since changed.
- Our last check on 2026-08-12 found the source still online.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 75/100, with 3 cautions from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
mcp-python-executor compared with similar skills
All 4 of these similar skills score higher than mcp-python-executor; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| mcp-python-executor (this skill)by bsmi021 | 57 | 3 | 20mo ago | MCP Server |
| Agent-Reachby Panniantong | 100 | 106.6k | 5d ago | CLAUDE.md |
| taste-skillby Leonxlnx | 100 | 106.0k | today | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 78.3k | today | CLAUDE.md |
| ai-job-searchby ai-job-search-dev | 100 | 67.6k | 3d ago | CLAUDE.md |
Frequently asked questions
- How do I install mcp-python-executor?
- Run
claude mcp add bsmi021 -- npx -y github:bsmi021/mcp-python-executor. The install tabs above show the steps for each supported agent. - Which AI agents does mcp-python-executor work with?
- It is written for Claude Code and Claude Desktop, as a MCP Server file. Other agents that read the same format can often use it too.
- Is mcp-python-executor safe to use?
- It is MIT-licensed and scores 75/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is mcp-python-executor still maintained?
- The repository was last updated about 1.7 years ago. Expect some instructions to reference tool versions or APIs that have since changed.
Skill content
View source on GitHubMCP Python Executor
A Model Context Protocol (MCP) server for executing Python code and managing Python packages.
Features
- Execute Python code with safety constraints
- Install and manage Python packages
- Pre-configure commonly used packages
- Resource monitoring and limits
- Health checks and metrics
- Structured logging
Configuration
The server can be configured through environment variables in the MCP settings:
{
"mcpServers": {
"mcp-python-executor": {
"command": "node",
"args": ["path/to/python-executor/build/index.js"],
"env": {
"PREINSTALLED_PACKAGES": "numpy pandas matplotlib scikit-learn",
"MAX_MEMORY_MB": "512",
"EXECUTION_TIMEOUT_MS": "30000",
"MAX_CONCURRENT_EXECUTIONS": "5",
"LOG_LEVEL": "info",
"LOG_FORMAT": "json"
}
}
}
}
Environment Variables
PREINSTALLED_PACKAGES: Space-separated list of Python packages to install on startupMAX_MEMORY_MB: Maximum memory limit per execution (default: 512)EXECUTION_TIMEOUT_MS: Maximum execution time in milliseconds (default: 30000)MAX_CONCURRENT_EXECUTIONS: Maximum number of concurrent executions (default: 5)LOG_LEVEL: Logging level (debug|info|error, default: info)LOG_FORMAT: Log format (json|text, default: json)
Available Tools
1. execute_python
Execute Python code and return the results.
interface ExecutePythonArgs {
code?: string; // Python code to execute (inline)
scriptPath?: string; // Path to existing Python script file (alternative to code)
inputData?: string[]; // Optional input data
}
Examples:
// Example with inline code
{
"code": "print('Hello, World!!')\nfor i in range(3): print(i)",
"inputData": ["optional", "input", "data"]
}
// Example with script path
{
"scriptPath": "/path/to/your_script.py",
"inputData": ["optional", "input", "data"]
}
2. install_packages
Install Python packages.
interface InstallPackagesArgs {
packages: string[];
}
Example:
Related Skills
Agent-Reach
106.6kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
taste-skill
106.0kAgent skills that give coding agents taste: art direction, reference images and a browser check instead of generic AI pages
headroom
78.3kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
ai-job-search
67.6kThe job search that runs on your machine. AI job application framework built on Claude Code: evaluate postings, tailor CVs, write cover letters, prep interviews. Fork it and own it.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
