PythonAnywhere MCP Server
Allows setting up Let's Encrypt SSL certificates for PythonAnywhere web applications via the setup_ssl tool.
Provides full API access to PythonAnywhere, enabling management of webapps, files, consoles, scheduled and always-on tasks, static file mappings, SSL certificates, and system/CPU information.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
PythonAnywhere MCP Server
An MCP (Model Context Protocol) server that provides full access to the PythonAnywhere API. Manage your webapps, files, consoles, scheduled tasks, and more directly from Claude.
Features
Webapps: Create, configure, reload, enable/disable web applications
Files: Upload, download, delete, list, and share files
Consoles: Create, manage, and interact with consoles
Scheduled Tasks: Create and manage scheduled (cron) tasks
Always-On Tasks: Manage always-on background processes
Static Files: Configure static file mappings for webapps
SSL/TLS: Setup Let's Encrypt certificates
System: View CPU usage, Python versions, system images
Related MCP server: Cloudways MCP Server
Installation
pip install pythonanywhere-mcpOr install from source:
git clone https://github.com/yourusername/druid_mcps.git
cd druid_mcps
pip install -e .Configuration
Get Your API Token
Log in to PythonAnywhere
Go to Account → API Token tab
Copy your API token
Claude Desktop Configuration
Add to your Claude Desktop config file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"pythonanywhere": {
"command": "pythonanywhere-mcp",
"env": {
"PYTHONANYWHERE_API_TOKEN": "your-api-token-here",
"PYTHONANYWHERE_USERNAME": "your-username",
"PYTHONANYWHERE_HOST": "www.pythonanywhere.com"
}
}
}
}Note: Use
eu.pythonanywhere.comforPYTHONANYWHERE_HOSTif your account is on the EU servers.
Claude Code Configuration
Add to your Claude Code settings:
{
"mcpServers": {
"pythonanywhere": {
"command": "pythonanywhere-mcp",
"env": {
"PYTHONANYWHERE_API_TOKEN": "your-api-token-here",
"PYTHONANYWHERE_USERNAME": "your-username",
"PYTHONANYWHERE_HOST": "www.pythonanywhere.com"
}
}
}
}Available Tools
CPU & System
Tool | Description |
| Get CPU quota info (limit, usage, reset time) |
| Get current and available system images |
| Change your system image |
| Get default Python version info |
Consoles
Tool | Description |
| List all consoles |
| Create a new console (bash, python, etc.) |
| Get console details |
| Kill/delete a console |
| Get latest output (~500 chars) |
| Send commands to a console |
Files
Tool | Description |
| List directory contents |
| Download a file |
| Upload a file |
| Delete a file |
| Share a file publicly |
| Check if file is shared |
| Stop sharing a file |
Web Applications
Tool | Description |
| List all web applications |
| Create a new webapp |
| Get webapp configuration |
| Update webapp settings |
| Delete a webapp |
| Reload webapp (apply changes) |
| Enable a webapp |
| Disable a webapp |
| Setup Let's Encrypt SSL |
Static Files
Tool | Description |
| List static file mappings |
| Add a static file mapping |
| Delete a static file mapping |
Scheduled Tasks
Tool | Description |
| List all scheduled tasks |
| Create a scheduled task |
| Get task details |
| Update a task |
| Delete a task |
Always-On Tasks
Tool | Description |
| List always-on tasks |
| Create an always-on task |
| Get task details |
| Restart a task |
| Delete a task |
Example Usage
Once configured, you can ask Claude things like:
"List my PythonAnywhere webapps"
"Reload my webapp at mydomain.pythonanywhere.com"
"Upload this Python script to /home/myuser/scripts/app.py"
"Create a scheduled task to run backup.py every day at 3am"
"Show me my CPU usage"
"Create a new bash console"
"What files are in my home directory?"
Rate Limits
PythonAnywhere API has the following rate limits:
40 requests per minute per endpoint
120 requests per minute for console
send_input
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Manage hosts, redirects, SSL, and traffic analytics from Claude and other AI assistants.
Manage HepCloud (Turkish cloud) servers and managed PostgreSQL from your AI assistant. OAuth 2.1.
Read servers, apps, logs, traffic and billing; restart servers and clear app caches in Cloudways.
1Provides capabilities that let LLM agents perform a range of infrastructure management tasks.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to manage WHM hosting accounts and server administration tasks including account management, server stats, updates, SSL, backups, and email through a secure API.13ISC
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to manage Cloudways infrastructure, including servers, applications, monitoring, and security via the Cloudways API.-
- FlicenseNot gradedqualityCmaintenanceEnables managing cPanel accounts including subdomains, files, and WordPress installations via Softaculous from Claude Code using natural language.-
- AlicenseNot gradedqualityBmaintenanceEnables an owner-approved Claude connection to execute commands, manage bounded background jobs, and transfer files on a Windows computer through OAuth-authenticated privileged administration tools.Apache 2.0