
Pythonanywhere-MCP
MCP将代码推向pythonanywhere
3 years
Works with Finder
0
Github Watches
0
Github Forks
0
Github Stars
PythonAnywhere MCP (model context protocol)
This MCP tool allows you to easily push your local Python code to your PythonAnywhere account.
Setup
-
Install the required dependencies:
pip install -r requirements.txt
-
Create a
.env
file based on the.env.example
template:cp .env.example .env
-
Edit the
.env
file and add your PythonAnywhere API token and username.- You can create an API token at https://www.pythonanywhere.com/user/YOUR_USERNAME/account/#api_token
Configuration
Before using the MCP, you need to configure it:
python pythonanywhere_mcp.py configure --local-dir "/path/to/your/local/project" --remote-dir "/home/your_username/path/on/pythonanywhere"
Optional configuration arguments:
-
--excluded
: Patterns to exclude (e.g.,--excluded .git __pycache__ *.pyc .env
) -
--auto-reload
: Whether to automatically reload the web app after pushing changes (True
orFalse
)
Usage
Push a Directory
Push a directory and all its contents to PythonAnywhere:
python pythonanywhere_mcp.py push-dir
You can override the configured directories:
python pythonanywhere_mcp.py push-dir --local-dir "/path/to/your/local/project" --remote-dir "/home/your_username/path/on/pythonanywhere"
Push a Single File
Push a single file to PythonAnywhere:
python pythonanywhere_mcp.py push-file /path/to/your/local/file.py
You can specify a custom remote path:
python pythonanywhere_mcp.py push-file /path/to/your/local/file.py --remote-file "/home/your_username/path/on/pythonanywhere/file.py"
Example Workflow
-
Configure the MCP:
python pythonanywhere_mcp.py configure --local-dir "/Users/you/myproject" --remote-dir "/home/your_username/myproject"
-
Push your entire project:
python pythonanywhere_mcp.py push-dir
-
After making changes to a specific file, push just that file:
python pythonanywhere_mcp.py push-file /Users/you/myproject/app.py
The MCP will automatically reload your web app after pushing changes (unless disabled in configuration).
相关推荐
😎简单易用、🧩丰富生态 -大模型原生即时通信机器人平台| 适配QQ / 微信(企业微信、个人微信) /飞书 /钉钉 / discord / telegram / slack等平台| 支持chatgpt,deepseek,dify,claude,基于LLM的即时消息机器人平台,支持Discord,Telegram,微信,Lark,Dingtalk,QQ,Slack
Reviews

user_6uGlGFsg
As a dedicated user of PythonAnywhere-MCP, I find it to be an exceptional tool for managing Python projects in the cloud. Created by Swathi Uppadi, the platform offers seamless integration and a user-friendly interface, which simplifies the deployment and management of applications. The initial setup is straightforward, and the welcome information provided is clear and helpful. Highly recommended for anyone looking to streamline their Python development workflow!

user_yo8CUwsw
pythonanywhere-mcp by SwathiUppadi is an outstanding application for Python enthusiasts! This tool offers a seamless experience for coding directly in the cloud, without the hassle of local setup. The intuitive interface and quick start URL make it easy to dive right into development. Highly recommended for anyone looking for a reliable and efficient Python development environment.

user_k1w18RlA
pythonanywhere-mcp by SwathiUppadi is a fantastic tool for managing Python environments online. It offers a user-friendly interface and a robust set of features, making it easy to write, run, and debug Python code in the cloud. The product's welcoming information ensures newcomers can get started quickly. Highly recommended for Python enthusiasts and developers!

user_Cb7cton8
PythonAnywhere-MCP by SwathiUppadi is a fantastic tool offering seamless integration for Python developers. The intuitive interface and robust features make coding and deploying applications a breeze. Highly recommend checking it out for enhancing productivity and automating tasks efficiently. Welcome message and easy start URL ensure smooth onboarding. A must-have for Python enthusiasts!

user_r7wRm7Q4
PythonAnywhere-MCP by Swathi Uppadi is a versatile and user-friendly platform that seamlessly supports Python programming and web development. Its intuitive interface makes it easy for both beginners and experienced developers. I've found the comprehensive tools and resources exceptionally helpful for my projects. Highly recommended!

user_Sbv3VxxF
I've been using pythonanywhere-mcp by SwathiUppadi for a few months now and it's been a game changer for my projects. The platform is incredibly user-friendly and offers seamless integration which has significantly boosted my productivity. The welcoming interface makes it easy to get started even for beginners. Highly recommended for anyone looking to enhance their coding workflow!

user_BDbvtCVp
PythonAnywhere-MCP is a fantastic tool for developers who want a seamless experience for coding in Python. Created by Swathi Uppadi, it offers a user-friendly interface and robust features. The start URL makes it easy to dive right in, and the welcome information helps to get you acquainted quickly. This application is a must-have for any Python enthusiast looking to enhance their coding workflow.