Skip to main content
Glama
luutuankiet

MCP Python Interpreter

by luutuankiet

MCP Python Interpreter

A Model Context Protocol (MCP) server that allows LLMs to interact with Python environments, read and write files, execute Python code, and manage development workflows.

Features

  • Environment Management: List and use different Python environments (system and conda)

  • Code Execution: Run Python code or scripts in any available environment

  • Package Management: List installed packages and install new ones

  • File Operations:

    • Read files of any type (text, source code, binary)

    • Write text and binary files

  • Python Prompts: Templates for common Python tasks like function creation and debugging

Related MCP server: MCP Python Interpreter

Installation

You can install the MCP Python Interpreter using pip:

pip install mcp-python-interpreter

Or with uv:

uv install mcp-python-interpreter

Usage with Claude Desktop

  1. Install Claude Desktop

  2. Open Claude Desktop, click on menu, then Settings

  3. Go to Developer tab and click "Edit Config"

  4. Add the following to your claude_desktop_config.json:

{
  "mcpServers": {
    "mcp-python-interpreter": {
        "command": "uvx",
        "args": [
            "mcp-python-interpreter",
            "--dir",
            "/path/to/your/work/dir",
            "--python-path",
            "/path/to/your/python"
        ],
        "env": {
            "MCP_ALLOW_SYSTEM_ACCESS": 0
        },
    }
  }
}

For Windows:

{
  "mcpServers": {
    "python-interpreter": {
      "command": "uvx",
      "args": [
        "mcp-python-interpreter",
        "--dir",
        "C:\\path\\to\\your\\working\\directory",
        "--python-path",
        "/path/to/your/python"
      ],
        "env": {
            "MCP_ALLOW_SYSTEM_ACCESS": 0
        },
    }
  }
}
  1. Restart Claude Desktop

  2. You should now see the MCP tools icon in the chat interface

The --dir parameter is required and specifies where all files will be saved and executed. This helps maintain security by isolating the MCP server to a specific directory.

Prerequisites

  • Make sure you have uv installed. If not, install it using:

    curl -LsSf https://astral.sh/uv/install.sh | sh
  • For Windows:

    powershell -ExecutionPolicy Bypass -Command "iwr -useb https://astral.sh/uv/install.ps1 | iex"

Available Tools

The Python Interpreter provides the following tools:

Environment and Package Management

  • list_python_environments: List all available Python environments (system and conda)

  • list_installed_packages: List packages installed in a specific environment

  • install_package: Install a Python package in a specific environment

Code Execution

  • run_python_code: Execute Python code in a specific environment

  • run_python_file: Execute a Python file in a specific environment

File Operations

  • read_file: Read contents of any file type, with size and safety limits

    • Supports text files with syntax highlighting

    • Displays hex representation for binary files

  • write_file: Create or overwrite files with text or binary content

  • write_python_file: Create or overwrite a Python file specifically

  • list_directory: List Python files in a directory

Available Resources

  • python://environments: List all available Python environments

  • python://packages/{env_name}: List installed packages for a specific environment

  • python://file/{file_path}: Get the content of a Python file

  • python://directory/{directory_path}: List all Python files in a directory

Prompts

  • python_function_template: Generate a template for a Python function

  • refactor_python_code: Help refactor Python code

  • debug_python_error: Help debug a Python error

Example Usage

Here are some examples of what you can ask Claude to do with this MCP server:

  • "Show me all available Python environments on my system"

  • "Run this Python code in my conda-base environment: print('Hello, world!')"

  • "Create a new Python file called 'hello.py' with a function that says hello"

  • "Read the contents of my 'data.json' file"

  • "Write a new configuration file with these settings..."

  • "List all packages installed in my system Python environment"

  • "Install the requests package in my system Python environment"

  • "Run data_analysis.py with these arguments: --input=data.csv --output=results.csv"

File Handling Capabilities

The MCP Python Interpreter now supports comprehensive file operations:

  • Read text and binary files up to 1MB

  • Write text and binary files

  • Syntax highlighting for source code files

  • Hex representation for binary files

  • Strict file path security (only within the working directory)

Security Considerations

This MCP server has access to your Python environments and file system. Key security features include:

  • Isolated working directory

  • File size limits

  • Prevented writes outside the working directory

  • Explicit overwrite protection

Always be cautious about running code or file operations that you don't fully understand.

License

MIT

Available Tools

9 tools
install_packageA
Install a Python package in the specified environment.

Args:
    package_name: Name of the package to install
    environment: Name of the Python environment (default if custom path provided, otherwise system)
    upgrade: Whether to upgrade the package if already installed (default: False)
ParametersJSON Schema
NameRequiredDescriptionDefault
package_nameYes
environmentNodefault
upgradeNo

TDQS

A3.6/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are present, so the description must carry full behavioral disclosure. It only states 'Install a Python package', omitting critical details such as network requirements, system modifications, required permissions, or potential side effects. This is insufficient for a mutation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise, with a one-line summary followed by parameter details. It is front-loaded and contains no extraneous information, though it could be slightly more compact.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema is provided, so the description should cover return values or status indicators, but it does not. It also lacks mention of dependencies (e.g., pip, internet) or environment restrictions. Overall, it is adequate but leaves gaps for a complete understanding.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, meaning parameters have no schema descriptions. The description adds value by explaining each parameter's meaning, including defaults and behavior (e.g., environment fallback, upgrade flag). This adequately compensates for the missing schema descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly specifies the verb 'Install' and resource 'Python package', and it distinguishes from sibling tools like list_installed_packages and list_python_environments by focusing on installation rather than inspection.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explains the tool's function but does not provide guidance on when to use it versus alternatives, nor does it mention prerequisites or when to avoid it. The 'upgrade' parameter hints at conditional usage, but explicit context is missing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

list_directoryA
List all Python files in a directory or subdirectory.

Args:
    directory_path: Path to directory (relative to working directory or absolute, empty for working directory)
ParametersJSON Schema
NameRequiredDescriptionDefault
directory_pathNo

TDQS

A3.6/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description must disclose behavioral traits. It does not mention recursion depth, performance implications, error handling, or permissions. The phrase 'in a directory or subdirectory' is ambiguous regarding whether it is recursive.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely concise: one sentence for purpose and one line for the parameter. It is front-loaded with the action, and every part is necessary.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool is simple (one param, no output schema), yet the description lacks return format information (e.g., list of paths or names). It also does not specify whether subdirectory traversal is recursive, which is a key behavioral detail.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description provides full semantic meaning for the only parameter, directory_path: it describes relative/absolute paths and the special empty case for working directory. This adds crucial context beyond the bare schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb 'List' and resource 'Python files', and clarifies the scope 'in a directory or subdirectory'. This clearly distinguishes it from siblings like read_file or install_package.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is given on when to use this tool versus alternatives. For example, it does not compare with read_file for reading file contents or list_installed_packages for packages.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

list_installed_packagesA
List installed packages for a specific Python environment.

Args:
    environment: Name of the Python environment (default: default if custom path provided, otherwise system)
ParametersJSON Schema
NameRequiredDescriptionDefault
environmentNodefault

TDQS

A3.5/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided, so description should fully disclose behavior. However, it does not detail what constitutes installed packages, return format, or prerequisites, only a vague default logic for environment parameter.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Extremely concise with one sentence and a parameter description, no unnecessary words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity (one optional param, no output schema, no annotations), the minimal description might suffice but lacks details like listing all packages globally or per environment, version info, and how to specify custom paths.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Only one parameter, schema description coverage is 0%, but the description adds some meaning by explaining default behavior ('default if custom path provided, otherwise system'). Still lacks full clarity on how environment is resolved.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description clearly states 'List installed packages for a specific Python environment' with a verb and resource, and distinguishes from siblings like install_package and list_python_environments.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Implies usage for listing packages in a Python environment but provides no explicit when-to-use or when-not-to-use guidance, nor alternatives.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

list_python_environmentsB

List all available Python environments (system Python and conda environments).

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

B3.4/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description must convey behavioral traits. It only states that environments are listed, but does not disclose whether the operation is read-only, how the output is structured, or any potential side effects. Minimal value added beyond the basic function.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, concise sentence that is front-loaded with the key action and resource. Every word is necessary, and there is no redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Despite having no parameters and no output schema, the description does not elaborate on the return format or any additional context. The agent is left to infer what a list of environments looks like, which is insufficient for completeness.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

There are no parameters, so schema description coverage is trivially 100%. The description adds no parameter information, but per guidelines, 0 parameters yields a baseline of 4.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('List') and the resource ('all available Python environments'), with specific mention of 'system Python and conda environments', distinguishing it from sibling tools like list_installed_packages.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives. The description does not mention any context, prerequisites, or exclusions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

read_fileA
Read the content of any file, with size limits for safety.

Args:
    file_path: Path to the file (relative to working directory or absolute)
    max_size_kb: Maximum file size to read in KB (default: 1024)

Returns:
    str: File content or an error message
ParametersJSON Schema
NameRequiredDescriptionDefault
file_pathYes
max_size_kbNo

TDQS

A4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Without annotations, the description discloses file path handling and size limits but lacks details on error behavior (e.g., file not found, permissions), encoding, or binary file handling.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise, front-loaded with purpose, and structured with Args/Returns. Every sentence adds value with no redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple file read tool, the description covers essential context. Missing details on what happens when size limit is exceeded or error types, but sibling tools provide differentiation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description adds significant value by explaining file_path as relative/absolute and max_size_kb with default. Could further clarify supported file types.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb 'Read' and the resource 'file', and the specific functionality of reading with size limits. It distinguishes from sibling tools like write_file and run_python_file.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage for reading files with size limits but does not explicitly specify when to use this tool over alternatives, nor provides exclusion criteria or prerequisites.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

run_python_codeC
Execute Python code and return the result. Code runs in the working directory.

Args:
    code: Python code to execute
    environment: Name of the Python environment to use (default if custom path provided, otherwise system)
    save_as: Optional filename to save the code before execution (useful for future reference)
ParametersJSON Schema
NameRequiredDescriptionDefault
codeYes
environmentNodefault
save_asNo

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries full burden. It mentions 'Code runs in the working directory' but does not disclose potential side effects (e.g., file modification), security implications, or what 'return the result' means (stdout/stderr/return value). Minimal behavioral disclosure for an execution tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is short and front-loaded with the main action. Parameter descriptions are in a clear list. No unnecessary words. However, a slightly longer description with behavioral details would not harm conciseness.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no output schema and moderate complexity, the description lacks details on return values, error handling, security, and alternatives (vs run_python_file). Not complete for an execution tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so description must compensate. It adds context for each parameter: code (the code to execute), environment ('Name of the Python environment...'), and save_as (optional filename). This adds value beyond the schema, but details are vague (e.g., 'custom path provided' unspecified, 'system' environment unclear).

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states 'Execute Python code and return the result' with a specific verb+resource. It also mentions execution context ('working directory'). However, it does not explicitly differentiate from sibling tools like run_python_file, so it's not a perfect 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to use this tool versus alternatives. No context about prerequisites, typical use cases, or exclusions. The description only explains the parameters, not usage strategy.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

run_python_fileB
Execute a Python file and return the result.

Args:
    file_path: Path to the Python file to execute (relative to working directory or absolute if system access is enabled)
    environment: Name of the Python environment to use (default if custom path provided, otherwise system)
    arguments: List of command-line arguments to pass to the script
ParametersJSON Schema
NameRequiredDescriptionDefault
file_pathYes
environmentNodefault
argumentsNo

TDQS

B3.3/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided, so the description carries the full burden. It mentions file path resolution and environment defaults, but lacks disclosure of side effects, security implications, error behavior, or whether execution is synchronous. For a tool that runs arbitrary code, this is insufficient.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise—one sentence plus a structured Args block. Every part is functional with no fluff. Could be slightly more streamlined but is well-organized.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no output schema or annotations, the description should cover return format, error handling, and prerequisites (e.g., file existence, Python availability). It does not mention what is returned, side effects, or safety concerns, leaving significant gaps for a file execution tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description compensates well. It explains each parameter's purpose and constraints, such as path relativity and environment resolution. This adds significant meaning beyond the bare schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states 'Execute a Python file and return the result', which is a specific verb+resource combination. It distinguishes from sibling 'run_python_code' by focusing on files rather than code strings, and from other siblings like read/write or install tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No explicit guidance on when to use this tool versus alternatives like run_python_code or list_directory. The description infers usage for executing a Python file but does not discuss prerequisites, when to avoid, or comparison with siblings.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

write_fileB
Write content to a file in the working directory or system-wide if allowed.

Args:
    file_path: Path to the file to write (relative to working directory or absolute if system access is enabled)
    content: Content to write to the file
    overwrite: Whether to overwrite the file if it exists (default: False)
    encoding: File encoding (default: utf-8)

Returns:
    str: Status message about the file writing operation
ParametersJSON Schema
NameRequiredDescriptionDefault
file_pathYes
contentYes
overwriteNo
encodingNoutf-8

TDQS

B3.3/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided, so description carries full burden. Mentions overwrite and encoding defaults, but omits behaviors like creating directories, appending, or error handling. Insufficient for a mutation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Concise description followed by structured Args list. Focused and easy to parse, though the Args section could be integrated into the main description.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Return type mentioned (status message) but no output schema. Lacks details on intermediate directory creation, error cases, or performance implications. For a file write tool, more context is needed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so description adds meaning for all 4 parameters: file_path, content, overwrite (with default false), encoding (with default utf-8). Provides clear context beyond schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Clearly states it writes content to a file, with context about working directory vs system-wide. Differentiates from read_file and write_python_file, though could be more explicit.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Implies usage by mentioning system-wide access, but lacks explicit guidance on when to use this tool versus alternatives like write_python_file. No exclusions or prerequisites.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

write_python_fileB
Write content to a Python file in the working directory or system-wide if allowed.

Args:
    file_path: Path to the file to write (relative to working directory or absolute if system access is enabled)
    content: Content to write to the file
    overwrite: Whether to overwrite the file if it exists (default: False)
ParametersJSON Schema
NameRequiredDescriptionDefault
file_pathYes
contentYes
overwriteNo

TDQS

B3.1/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided, so description carries full burden. It describes mutation ('write') but fails to disclose error handling (e.g., behavior when file exists and overwrite=False), permission requirements for 'system-wide', or side effects. The return value is not described.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Extremely concise: one-sentence purpose followed by a clearly formatted parameter list. No extraneous information, and the key action is front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers basic purpose and parameters but lacks error handling info, sibling differentiation, and behavioral details. Given no output schema or annotations, completeness is adequate but not thorough.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so description partially compensates with 'Args:' section offering basic parameter descriptions (path, content, overwrite). These add minimal meaning beyond schema names but lack depth, such as format constraints or examples.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb 'write' and resource 'Python file', and mentions scope (working directory or system-wide). It distinguishes from sibling 'write_file' by specifying 'Python', but doesn't explicitly contrast with other siblings like 'run_python_file'.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to use this tool versus alternatives (e.g., 'write_file' for non-Python files, 'run_python_file' for execution). The description only lists parameters without usage context or prerequisites.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 9 tool updatesv0.1.0
    • First observedinstall_package
    • First observedlist_directory
    • First observedlist_installed_packages
    • First observedlist_python_environments
    • First observedread_file
    • First observedrun_python_code
    • First observedrun_python_file
    • First observedwrite_file
    • First observedwrite_python_file

TDQS

A3.7/5.0
Disambiguation5/5

Each tool targets a distinct operation: package installation, listing, environments, code execution (inline/file), file read/write, and listing Python files. There is no overlap, and descriptions clearly differentiate similar tools like run_python_code and run_python_file.

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern in snake_case (e.g., install_package, list_directory, run_python_code). No deviations or mixed conventions.

Tool Count5/5

With 9 tools, the set is well-scoped for a Python interpreter server. It covers essential operations without being overwhelming or too sparse.

Completeness4/5

Core workflows (install, run, read/write files, list environments) are covered. Minor gaps include missing uninstall_package and more detailed environment management, but the set is sufficient for common tasks.

Maintenance

ActivityInactive
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

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/luutuankiet/mcp-python-interpreter'

If you have feedback or need assistance with the MCP directory API, please join our Discord server