drio
Open app

MCP Server

Source

MCP server implementation for handling run_python requests

Catalog onlyCatalog onlySTDIO

Overview

MCP Server is a Python service that implements the Model Context Protocol (MCP) for executing Python code through standardized API endpoints.

To use MCP Server, install the required packages, start the server, and send requests to the /run_python endpoint with the Python code you want to execute.

  • Implements Model Context Protocol for Python code execution - Standardized API endpoints for easy integration - Modular structure for development and testing
  1. Executing Python scripts in a web application
  2. Integrating Python code execution in cloud services
  3. Running automated tests for Python code

Add to your AI client

Use these steps to connect MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "python-run-mcp-topherbc": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-python-run-mcp-topherbc"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "python-run-mcp-topherbc": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-python-run-mcp-topherbc"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "python-run-mcp-topherbc": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-python-run-mcp-topherbc"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "python-run-mcp-topherbc": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-python-run-mcp-topherbc"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "python-run-mcp-topherbc": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-python-run-mcp-topherbc"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "python-run-mcp-topherbc": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-python-run-mcp-topherbc"
      ]
    }
  }
}

FAQ

What is the Model Context Protocol (MCP)?

MCP is a protocol that standardizes the execution of code in various programming languages, allowing for consistent API interactions.

How do I install MCP Server?

You can install MCP Server by running `pip install -r requirements.txt` in your terminal.

Is MCP Server open source?

Yes! MCP Server is open source and available on GitHub.

MCP Server — MCP Registry