PP

pythonanywhere/pythonanywhere-mcp-server

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

17 stars 10 forks 품질 79 트렌드 29MIT

A Model Context Protocol (MCP) 서버는 AI 전원 도구와 PythonAnywhere 계정 사이의 교량으로 작동하며 파일, 웹 사이트, 웹 응용 프로그램의 보안, 프로그래밍 관리 및 예약을 가능하게합니다.

개요

A Model Context Protocol (MCP) 서버는 AI-powered 도구와 PythonAnywhere 계정 사이의 교량으로 작동하며 파일, 웹 사이트, 웹앱 및 일정한 작업의 보안, 프로그래밍 관리를 가능하게 합니다. 표준화 된 인터페이스를 탐험함으로써, 언어 모델과 자동화 클라이언트가 편집 파일과 같은 작업을 수행 할 수 있습니다, 웹 응용 프로그램을 배포, 또는 스케줄링 작업 -- 대신에, 모두 미세 곡물 제어 및 감사를 유지하면서. - : 읽기, 업로드, 삭제 파일 및 목록 디렉토리 나무. (또한 PythonAnywhere의 파일을 로그 파일에 직접 액세스 할 수 있습니다) - : Create, delete, reload 및 list. ( PythonAnywhere ASGI 문서에 설명됨) - : Create, delete, reload, patch, list, and get info. - : 목록, 생성, 업데이트 및 삭제. (이 작업을 실행 후 생성 및 삭제 한 후 즉시 계획된 경우 LLM을 실행할 수 있습니다.

개요(AI 번역)

모형 Context 의정서 (MCP) 서버는 AI-powered 공구와 당신의 사이에서 교량으로 작동합니다 PythonAnywhere 계정, 보안을 활성화, 파일, 웹 사이트, 웹앱 및 예약 작업의 프로그래밍 관리. 이름 * 표준화 된 인터페이스를 탐험, 그것은 언어 모델과 자동화 할 수 클라이언트는 편집 파일과 같은 작업 수행, 웹 앱 배포, 또는 스케줄링 작업 – 당신의 대신에, 모두 미세 곡물 통제 유지 및 감사.

특징

  • ** 파일 관리**: 읽기, 업로드, 삭제 파일 및 목록 디렉토리 나무. (또한 로그 파일에 직접 액세스하여 디버깅을 가능하게 합니다. PythonAnywhere의 파일
  • ASGI 웹 앱 관리: 생성, 삭제, 다시로드 및 목록. PythonAnywhere ASGI에 기술됨 문서)
  • WSGI 웹 앱 관리: 생성, 삭제, 다시로드, 패치, 목록, 그리고 얻을 정보.
  • 일정 관리: 목록, 생성, 업데이트 및 삭제. (이 작업을 수행하는 경우 임의 명령을 실행하기 위해 LLM을 활성화합니다. 실행 후 생성 및 삭제 된 후에도 예정. 우리는 mcp-server-time으로 실행하는 것이 좋습니다. 모델은 쉽게 시간에 대해 혼란을 얻을.)

설치

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

PythonAnywhere Model Context Protocol Server

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.

Features

  • File management: Read, upload, delete files and list directory trees. (also enables debugging with direct access to log files, which are just files on PythonAnywhere)
  • ASGI Web app management: Create, delete, reload, and list. (as described in the PythonAnywhere ASGI documentation)
  • WSGI Web app management: Create, delete, reload, patch, list, and get info.
  • Scheduled task management: List, create, update, and delete. (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.)

Installation

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.pythonanywhere.com).

MCP Bundle - works with Claude Desktop

Probably the most straightforward way to install the MCP server is to use the MCP Bundle for Claude Desktop.

  1. Open Claude Desktop.
  2. Download the latest .mcpb file.
  3. Double-click on the downloaded .dxt file or drag the file into the window.
  4. Configure your PythonAnywhere API token and username.
  5. Restart Claude Desktop.

Claude Code

Run:

claude mcp add pythonanywhere-mcp-server \
-e API_TOKEN=yourpythonanywhereapitoken \
-e PYTHONANYWHERE_USERNAME=yourpythonanywhereusername \
-- uvx pythonanywhere-mcp-server

GitHub Copilot in PyCharm:

Add it to your mcp.json.

{
  "servers": {
    "pythonanywhere-mcp-server": {
      "type": "stdio",
      "command": "uvx",
GitHub에서 전체 README 보기

설치

uvx pythonanywhere-mcp-server
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "pythonanywhere-mcp-server": { "type": "stdio", "command": "uvx", "args": ["pythonanywhere-mcp-server"], "env": { "API_TOKEN": "yourpythonanywhereapitoken", "PYTHONANYWHERE_USERNAME": "yourpythonanywhereusername" } } } }