Python REPL MCP Server
Python REPL MCP サーバー
このMCPサーバーは、Python REPL(Read-Eval-Print Loop)ツールを提供します。これにより、MCPプロトコルを介して永続セッションでPythonコードを実行できます。
設定
セットアップは不要です。このプロジェクトでは依存関係の管理にuvを使用します。
Related MCP server: Python REPL MCP Server
サーバーの実行
次のコマンドを実行するだけです:
uv run src/python_repl/server.pyClaude Desktopでの使用
この構成を Claude Desktop 構成ファイルに追加します。
{
"mcpServers": {
"python-repl": {
"command": "uv",
"args": [
"--directory",
"/absolute/path/to/python-repl-server",
"run",
"mcp_python"
]
}
}
}サーバーは次の 3 つのツールを提供します。
execute_python: 永続変数を使用してPythonコードを実行するcode: 実行するPythonコードreset: セッションをリセットするためのオプションのブール値
list_variables: 現在のセッション内のすべての変数を表示するinstall_package: pypiからパッケージをインストールする
例
変数を設定します。
a = 42次の変数を使用します:
print(f"The value is {a}")すべての変数を一覧表示します。
# Use the list_variables toolセッションをリセットします:
# Use execute_python with reset=true貢献
貢献を歓迎します!お気軽にプルリクエストを送信してください。貢献できる方法は次のとおりです。
バグを報告する
新機能を提案する
ドキュメントの改善
テストケースを追加する
コードの改善を送信する
PR を送信する前に、次の点を確認してください。
コードは既存のスタイルに従います
必要に応じてドキュメントを更新しました
いくつかテストを書いてみませんか?
大きな変更については、まず問題を開いて、何を変更したいのか話し合ってください。
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
- FlicenseBqualityDmaintenanceA Python-based MCP server implementation that can be easily installed via pip or directly from GitHub, providing a simple way to deploy and run MCP server functionality.Last updated1
- 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
- Alicense-qualityDmaintenanceA production-grade MCP server providing a persistent Python REPL with multi-session support, sandboxing, and timeout protection, enabling LLM agents to execute Python code across multiple turns with variables that persist between calls.Last updated1MIT
- Alicense-qualityDmaintenanceAsync Python REPL + Shell execution for MCP. Provides persistent state, background jobs, interactive input() bridging, and crash isolation in a single server.Last updated1Apache 2.0
Related MCP Connectors
Personal assistant MCP server with search, execute, packages, jobs, secrets, and integrations.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A basic MCP server to operate on the Postman API.
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/hdresearch/mcp-python'
If you have feedback or need assistance with the MCP directory API, please join our Discord server