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`.

コメント

「その他」の他のコンテンツ