MCP.so
登录

Python MCP Server

@Timtech4u

基本信息

分类

其他

传输方式

stdio

作者

Timtech4u

关于 Python MCP Server

暂无概览

Python MCP Server 配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

Python MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Python MCP Server?

A Model Context Protocol (MCP) server for executing Python code and managing Python environments. It allows Claude and other LLMs to run Python code, manage files, and work with Python packages.

How to use Python MCP Server?

Ensure Node.js 16+, Python, and Claude Desktop or Cline are installed. Clone the repository, run npm install and npm run build, then add the server configuration to your Claude Desktop or Cline settings file (with the absolute path to the built dist/index.js). After restarting, you can ask the LLM to execute code, run files, list/read/write Python files, or check the Python version.

Key features of Python MCP Server

  • Execute Python code snippets with optional timeout and arguments
  • Execute Python files with configurable working directory
  • List, read, and write Python files
  • Check installed Python version and environment details
  • Configurable execution timeouts, working directories, and command-line arguments

Use cases of Python MCP Server

  • Run Python code directly from a chat conversation
  • Execute existing Python scripts on the local machine
  • Inspect or modify Python files in a project directory
  • Verify Python environment details without leaving the LLM interface

常见问题

1

What prerequisites are needed to use Python MCP Server?

Node.js 16 or higher, Python installed and available in your PATH, and either Claude Desktop or Cline installed.

2

How do I fix "Python is not found" errors?

Ensure Python is installed and available in your system PATH. The server requires Python to be accessible from the command line.

3

What should I do if my code execution times out?

The server has a default 30‑second timeout. You can increase the timeout by specifying the `timeout` parameter when calling the tool.

4

How can I resolve permission errors when reading or writing files?

Make sure the user running the MCP server has the necessary permissions for the file paths you are accessing.

5

What tools are available in Python MCP Server?

The server provides six tools: `execute_python_code`, `execute_python_file`, `check_python_version`, `list_python_files`, `read_python_file`, and `write_python_file`.

评论

其他 分类下的更多 MCP 服务器