drio
Open app

mcp-pyodide

Source

A Pyodide server implementation for the Model Context Protocol (MCP).

Catalog onlyCatalog onlySTDIO

Overview

mcp-pyodide is a server implementation for the Model Context Protocol (MCP) that allows Large Language Models (LLMs) to execute Python code through the MCP interface.

To use mcp-pyodide, you can install it via npm and run it as a server or a command-line tool. You can start the server in stdio mode or SSE mode, depending on your needs.

  • Python code execution capability for LLMs using Pyodide - MCP compliant server implementation - Support for both stdio and SSE transport modes - Robust implementation written in TypeScript - Available as a command-line tool
  1. Enabling LLMs to run Python scripts in real-time.
  2. Integrating Python execution capabilities into applications using the MCP.
  3. Facilitating interactive coding environments for educational purposes.

Add to your AI client

Use these steps to connect mcp-pyodide 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": {
    "mcp-pyodide-yonaka15": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-pyodide-yonaka15"
      ]
    }
  }
}

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": {
    "mcp-pyodide-yonaka15": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-pyodide-yonaka15"
      ]
    }
  }
}

Claude Code

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

.mcp.json (project root)

{
  "mcpServers": {
    "mcp-pyodide-yonaka15": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-pyodide-yonaka15"
      ]
    }
  }
}

VS Code (Copilot)

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

.vscode/mcp.json

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

Windsurf

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

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mcp-pyodide-yonaka15": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-pyodide-yonaka15"
      ]
    }
  }
}

Cline

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

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "mcp-pyodide-yonaka15": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-pyodide-yonaka15"
      ]
    }
  }
}

FAQ

Can mcp-pyodide execute any Python code?

Yes! mcp-pyodide can execute Python code as long as it adheres to the constraints of the environment.

Is mcp-pyodide suitable for production use?

The project is under development, and while it can be used for testing, caution is advised for production environments.

How do I contribute to mcp-pyodide?

You can contribute by forking the repository, creating a feature branch, and submitting a pull request.