Python REPL MCP Server
Servidor MCP de Python REPL
Este servidor MCP proporciona un REPL (bucle de lectura-evaluación-impresión) de Python como herramienta. Permite la ejecución de código Python mediante el protocolo MCP con una sesión persistente.
Configuración
¡No requiere configuración! El proyecto utiliza uv para la gestión de dependencias.
Related MCP server: Python REPL MCP Server
Ejecución del servidor
Simplemente ejecute:
uv run src/python_repl/server.pyUso con Claude Desktop
Agregue esta configuración a su archivo de configuración de Claude Desktop:
{
"mcpServers": {
"python-repl": {
"command": "uv",
"args": [
"--directory",
"/absolute/path/to/python-repl-server",
"run",
"mcp_python"
]
}
}
}El servidor proporciona tres herramientas:
execute_python: ejecuta código Python con variables persistentescode: El código Python a ejecutarreset: booleano opcional para restablecer la sesión
list_variables: Mostrar todas las variables en la sesión actualinstall_package: Instalar un paquete desde pypi
Ejemplos
Establecer una variable:
a = 42Utilice la variable:
print(f"The value is {a}")Enumere todas las variables:
# Use the list_variables toolRestablecer la sesión:
# Use execute_python with reset=trueContribuyendo
¡Agradecemos sus contribuciones! No dude en enviar una solicitud de incorporación de cambios. Aquí tiene algunas maneras de contribuir:
Informar errores
Sugerir nuevas funciones
Mejorar la documentación
Agregar casos de prueba
Enviar mejoras de código
Antes de enviar una solicitud de relaciones públicas, asegúrese de:
Su código sigue el estilo existente
Ha actualizado la documentación según sea necesario
¿Tal vez escribir algunas pruebas?
Para realizar cambios importantes, primero abra un problema para discutir lo que le gustaría cambiar.
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