MCP Python Interpreter
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MCP_ALLOW_SYSTEM_ACCESS | No | Controls whether the MCP server has access to system resources | 0 |
Capabilities
Server capabilities have not been inspected yet.
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| read_fileA | |
| write_fileA | |
| list_directoryA | |
| list_python_environmentsB | List all available Python environments (system Python and conda environments). |
| list_installed_packagesB | |
| run_python_codeB | |
| install_packageB | |
| write_python_fileB | |
| run_python_fileB | |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| python_function_template | Generate a template for a Python function with docstring. |
| refactor_python_code | Help refactor Python code for better readability and performance. |
| debug_python_error | Help debug a Python error. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| get_environments_resource | List all available Python environments as a resource. |
| get_file_in_current_dir | List Python files in the current working directory. |
| get_working_directory_listing | List all Python files in the working directory as a resource. |
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/PortPro-Technologies-Inc/mcp-python-interpreter'
If you have feedback or need assistance with the MCP directory API, please join our Discord server