pythonanywhere/pythonanywhere-mcp-server
Platform-specific configuration:
{
"mcpServers": {
"pythonanywhere-mcp-server": {
"command": "npx",
"args": [
"-y",
"pythonanywhere-mcp-server"
]
}
}
}Add the config above to .claude/settings.json under the mcpServers key.
A Model Context Protocol (MCP) server acts as a bridge between AI-powered tools and your PythonAnywhere account, enabling secure, programmatic management of files, websites, webapps, and scheduled tasks. By exposing a standardized interface, it allows language models and automation clients to perform operations—such as editing files, deploying web apps, or scheduling jobs -- on your behalf, all while maintaining fine-grained control and auditability.
_(also enables debugging with direct access to log files, which are just files on PythonAnywhere)_
_(as described in the PythonAnywhere ASGI documentation)_
_(Note that this enables LLMs to execute arbitrary commands if a task is scheduled too soon after creation and deleted after execution. For that we would suggest running it with mcp-server-time as models easily get confused about time.)_
The MCP protocol is well-defined and supported by various clients, but installation is different depending on the client you are using. We will cover cases that we tried and tested.
In all cases, you need to have uv installed and available in your PATH.
Have your PythonAnywhere API token and username ready. You can find (or generate) your API token in the API section of your PythonAnywhere account.
If your account is on eu.pythonanywhere.com, you also need to set PYTHONANYWHERE_SITE to eu.pythonanywhere.com (it defaults to `www.p
Loading reviews...