MCP ExplorerExplorer

Python Run Mcp

@topherbcon 9 months ago
2 MIT
FreeCommunity
AI Systems
MCP server implementation for handling run_python requests

Overview

What is Python Run Mcp

python-run-mcp is an implementation of the Model Context Protocol (MCP) that allows for the execution of Python code through standardized API endpoints.

Use cases

Use cases for python-run-mcp include building interactive coding environments, integrating Python execution in web applications, and creating automated testing frameworks for Python scripts.

How to use

To use python-run-mcp, first install the required packages with ‘pip install -r requirements.txt’. Then, start the server by running ‘python src/server.py’. You can send requests to the ‘/run_python’ endpoint using a tool like curl.

Key features

Key features of python-run-mcp include a modular structure for easy development, support for executing Python code via a RESTful API, and a testing framework to ensure code quality.

Where to use

python-run-mcp can be used in various fields such as web development, data analysis, and educational tools where Python code execution is required.

Content

MCP Server

Python service implementing Model Context Protocol (MCP) for Python code execution via standardized API endpoints.

Installation

pip install -r requirements.txt

Usage

  1. Start the server:
python src/server.py
  1. Send requests to the /run_python endpoint:
curl -X POST http://localhost:8000/run_python \
    -H "Content-Type: application/json" \
    -d '{"code": "print(\'Hello, World!\')"'

Development

  • Follow the modular structure
  • Run tests before submitting changes
  • Update documentation as needed

License

MIT

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers