mcp-pyodide is a server for the Model Context Protocol (MCP). It lets Large Language Models run Python code using Pyodide via the MCP interface.
To use it, install via npm. You can then run it as a server or CLI tool. It can be started in stdio or Server-Sent Events (SSE) transport mode based on your requirements.
Its key features include Python code execution for LLMs through Pyodide, full MCP server compliance, support for both stdio and SSE modes, a robust TypeScript codebase, and availability as a command-line tool.
Use cases include enabling real-time Python script execution by LLMs, adding Python capabilities to MCP-based applications, and powering interactive educational coding environments.
Frequently asked questions: It can execute most Python code within Pyodide's environment constraints. The project is under active development, suitable for testing but use caution in production. Contributions are welcome via forking the repository, working on a feature branch, and submitting a pull request.