Overview
Pyodide MCP is a server that allows you to run Python code in the browser using WebAssembly, enabling the use of Python libraries in web applications.
To use Pyodide MCP, set up the server and access it through your web browser. You can then execute Python scripts directly in the browser environment.
- Runs Python code in the browser using WebAssembly. - Supports a variety of Python libraries for data science and web development. - Easy integration with existing web applications.
- Running data analysis scripts directly in the browser.
- Creating interactive web applications that utilize Python libraries.
- Teaching Python programming through web-based platforms.
Add to your AI client
Use these steps to connect pyodide-mcp 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": {
"pyodide-mcp-jairad26": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-pyodide-mcp-jairad26"
]
}
}
}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": {
"pyodide-mcp-jairad26": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-pyodide-mcp-jairad26"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"pyodide-mcp-jairad26": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-pyodide-mcp-jairad26"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"pyodide-mcp-jairad26": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-pyodide-mcp-jairad26"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"pyodide-mcp-jairad26": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-pyodide-mcp-jairad26"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"pyodide-mcp-jairad26": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-pyodide-mcp-jairad26"
]
}
}
}FAQ
Can I use any Python library with Pyodide MCP?
Most libraries that do not rely on native extensions can be used with Pyodide MCP.
Is Pyodide MCP free to use?
Yes! Pyodide MCP is open-source and free to use under the Apache-2.0 license.
How does Pyodide MCP handle performance?
Pyodide MCP leverages WebAssembly for efficient execution, but performance may vary based on the complexity of the code and the browser's capabilities.