Python Local MCP Server
python_local MCP サーバー
インタラクティブな Python REPL (Read-Eval-Print Loop) 環境を提供する MCP サーバー。
コンポーネント
リソース
サーバーは REPL セッション履歴へのアクセスを提供します。
セッション履歴にアクセスするためのカスタム
repl://URI スキーム各セッションの履歴はテキスト/プレーンリソースとして表示できます
履歴には、実行ごとに入力コードと対応する出力が表示されます。
ツール
サーバーは 1 つのツールを実装します。
python_repl: 永続セッションでPythonコードを実行する必須の引数として
code(実行するPythonコード)とsession_idを取ります各セッションごとに個別の状態を維持する
式と文の両方をサポート
stdout/stderr出力をキャプチャして返します
Related MCP server: Django Shell MCP Server
構成
インストール
クロードデスクトップ
MacOS の場合: ~/Library/Application\ Support/Claude/claude_desktop_config.json Windows の場合: %APPDATA%/Claude/claude_desktop_config.json
発達
建築と出版
配布用のパッケージを準備するには:
依存関係を同期し、ロックファイルを更新します。
uv syncパッケージディストリビューションをビルドします。
uv buildこれにより、 dist/ディレクトリにソースとホイールのディストリビューションが作成されます。
PyPI に公開:
uv publish注: 環境変数またはコマンド フラグを使用して PyPI 資格情報を設定する必要があります。
トークン:
--tokenまたはUV_PUBLISH_TOKENまたはユーザー名/パスワード:
--username/UV_PUBLISH_USERNAMEおよび--password/UV_PUBLISH_PASSWORD
デバッグ
MCPサーバーはstdio経由で実行されるため、デバッグが困難になる場合があります。最適なデバッグ環境を実現するには、 MCP Inspectorの使用を強くお勧めします。
次のコマンドを使用して、 npm経由で MCP Inspector を起動できます。
npx @modelcontextprotocol/inspector uv --directory /path/to/python_local run python-local起動すると、ブラウザでアクセスしてデバッグを開始できる URL がインスペクタに表示されます。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceEnables AI assistants to execute Python code with pexpect functionality for interactive debugging sessions with command-line tools like LLDB and GDB. Maintains a stateful Python session allowing programmatic control of interactive processes.Last updated74Apache 2.0
- Alicense-qualityAmaintenanceProvides a stateful Django shell environment that allows AI assistants to execute Python code directly against Django projects. Maintains persistent session state between calls, enabling iterative exploration of models, queries, and debugging.Last updated40MIT
- Flicense-qualityCmaintenanceProvides interactive Python REPL capabilities with persistent sessions, virtual environment support, package management via uv, and development tools like testing, linting, and code formatting for Python projects.Last updated
- Alicense-qualityDmaintenanceProvides a persistent Python REPL session as a tool for executing code, managing files, installing packages, and initializing projects via the MCP protocol.Last updated1MIT
Related MCP Connectors
Persistent memory and cross-session learning for AI coding assistants (hosted remote MCP).
Persistent memory for AI agents. Search, store, and recall across sessions.
Adaptive plan/build/review cycles for AI coding assistants, persisted across sessions.
Appeared in Searches
- AI tools for debugging Python code
- MaxScript scripting documentation and tutorials for 3ds Max
- MCP servers for curated context in Cursor IDE to plan, debug, and iterate on features
- A server for web searching, content summarization, and task automation
- Testing Local AI Agents in LMStudio for Computer Use and Code Execution Tasks
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/Alec2435/python_mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server