Skip to main content
Glama

MyPC MCP (mypc)

Kết nối trực tiếp ChatGPT Web, Claude Web và Gemini Web vào máy tính Windows của bạn qua Tailscale Funnel HTTPS — không cần VPS, không cần mở port router.

Python 3.11+ FastMCP 3.x Tailscale Funnel OAuth 2.1 + PKCE Platform Windows License: MIT


Tại sao nên dùng MyPC MCP?

Các AI Agent chạy trên máy đã có thể thao tác trực tiếp, nhưng các phiên bản AI Web (ChatGPT Web, Claude Web, Gemini Web) lại không thể chạm vào ổ đĩa, terminal hay mã nguồn trên máy Windows của bạn. MyPC MCP giải quyết việc này chỉ trong vài phút:

  • Giao diện cài đặt cục bộ 1-Click (setup_ui.bat): Mở bảng điều khiển trực quan tại http://127.0.0.1:3099 (chạy bằng thư viện chuẩn Python, không cần cài gói trước) để tải Tailscale trực tiếp không cần winget, theo dõi thanh tiến trình realtime, cấu hình PIN, bật/tắt server và copy URL kết nối.

  • Không cần thuê VPS hay mở port router: Sử dụng Tailscale Funnel để cấp sẵn URL HTTPS chính chủ https://<tên-máy>.<tailnet>.ts.net/mcp kèm chứng chỉ TLS tự động.

  • 50+ công cụ toàn máy (Full-Machine): Duyệt ổ đĩa/thư mục, đọc file lớn theo dòng, sửa file bằng patch_file có kiểm tra hash, grep, nén/giải nén chống zip-slip, chạy CLI (exec_command), quản lý tiến trình nền, pytest, Git cục bộ và Chrome CDP (localhost:9222).

  • Tự động cài bằng AI Agent (AI_SETUP.md): Hỗ trợ giao hẳn cho Claude Code / Cursor / Windsurf / Antigravity tự động setup và kiểm thử từ A–Z.


Related MCP server: AKIMCP

Cài đặt nhanh

  1. Tải mã nguồn về máy:

    git clone https://github.com/Thangterter-Pipo/mypc-mcp.git
    cd mypc-mcp
  2. Nhấp đúp setup_ui.bat (hoặc chạy python setup_ui.py).

  3. Trên giao diện http://127.0.0.1:3099, bấm lần lượt từ Bước 1 → Bước 4:

    • Bước 1: Bấm Cài .venv & Thư viện → bấm Tải & Cài Tailscale → Đăng nhập & bật MagicDNS.

    • Bước 2: Kiểm tra/sinh Consent PIN, bấm Lưu .env → Bật Tailscale Funnel (HTTPS).

    • Bước 3: Bấm Khởi chạy Server và Test kết nối (có thể bấm thêm Khởi động MCP cùng Windows).

    • Bước 4: Bấm Copy URL và dán vào mục thêm Custom MCP Connector (chọn OAuth) trên ChatGPT / Claude / Gemini Web.


Kiến trúc hệ thống

ChatGPT Web / Claude Web / Gemini Web
        │  HTTPS (Auto TLS) + OAuth 2.1 (PKCE + Owner Consent PIN)
        ▼
Tailscale Funnel (https://<machine>.<tailnet>.ts.net)
        │  Reverse proxy cục bộ (không cần VPS, không mở port router)
        ▼
127.0.0.1:3080/mcp  ← MyPC MCP Server (FastMCP 3.x on Windows)

Bảo mật

  • Chạy đúng quyền user Windows: Không leo thang đặc quyền, không bypass Windows ACL/UAC.

  • Xác thực OAuth 2.1 + PKCE + Owner PIN: Trang /consent yêu cầu nhập MYPC_MCP_CONSENT_PIN (tự hủy ticket sau 5 lần sai) kết hợp allowlist redirect_uri (ChatGPT, Claude, Google/Gemini, Meta AI).

  • Giới hạn ổ đĩa & Audit Log: Hỗ trợ khóa phạm vi ổ đĩa qua MYPC_MCP_ALLOWED_DRIVES và ghi nhật ký gọi tool (tự động che toàn bộ token/mật khẩu) tại %LOCALAPPDATA%\MyPCMcp\audit.jsonl.

  • Setup UI cô lập cục bộ: Giao diện cài đặt chỉ lắng nghe trên 127.0.0.1:3099 và kiểm tra Host header, không bao giờ mở ra ngoài mạng.

Xem thêm lưu ý bảo mật chi tiết tại docs/SECURITY.md.


Tài liệu chi tiết

Tài liệu

Nội dung

AI_SETUP.md

Quy trình chuẩn 6 bước để AI Agent tự động cài đặt & kiểm thử

docs/ARCHITECTURE.md

Kiến trúc module, luồng kết nối và cơ chế supervisor

docs/CLIENT_SETUP.md

Hướng dẫn kết nối chi tiết cho ChatGPT Web, Claude Web, Gemini Web

docs/TOOLS.md

Danh sách đầy đủ 50+ công cụ MCP

docs/SECURITY.md

Mô hình bảo mật và các khuyến nghị vận hành an toàn


Kiểm thử

.venv\Scripts\python.exe -m pytest tests/ -v

Đóng góp & Giấy phép

Dự án phát hành theo giấy phép MIT. Nếu thấy MyPC MCP hữu ích, hãy tặng repo một Star để ủng hộ nhé!

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables web-based AI agents such as claude.ai, ChatGPT and Grok to read and edit files and run allowlisted shell commands on your own machine, plus control Chromium, DevTools, ports, git, SQLite and background tasks. Access is exposed over HTTPS with OAuth 2.1 through a swappable public edge (Tailscale Funnel or a Cloudflare tunnel), with a loopback-only control panel for configuration.
      MIT
    • F
      license
      Not graded
      quality
      Not graded
      maintenance
      Exposes a governed suite of 38 tools over one OAuth-gated MCP endpoint so web AI chat clients can read and edit files, run whitelisted shell commands, search, query Git/SQLite, drive browsers via DevTools, and manage background jobs on the local machine. Remote access runs through Tailscale Funnel while local tools connect straight to 127.0.0.1, keeping operations permission-scoped rather than granting unrestricted shell access.
      -
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables an AI agent to inspect and operate a remote Windows machine over a private tailnet, listing and reading files, transferring and mutating them within a configured sandbox root, capturing screenshots, and — only when explicitly double-opted-in — executing commands and sending keystrokes. It runs self-hosted with no third-party client or vendor cloud in the session path, and reports its live policy rather than asserting its own safety.
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Exposes an OAuth-gated suite of 38 tools that let web-based AI chat clients operate a local machine, covering files, whitelisted shell commands, search, Git, SQLite, browser and DevTools automation, background tasks, localhost services, clipboard, and ports. It keeps access governed through folder allowlists, a command whitelist, and rate limits so clients gain a large operating surface without unrestricted shell access.
      MIT