Skip to main content
Glama

GachaMCP

  • Linux
  • Apple

GachaMCP - Python Game Automation MCP Server

MCP Server giúp AI tương tác với Gacha Game thông qua screenshot và click automation!

Tính năng

  • 🖼️ Chụp màn hình game - Capture cửa sổ game để AI phân tích
  • 🖱️ Click automation - Click theo tọa độ trên cửa sổ game
  • 🪟 Window management - Tìm và quản lý cửa sổ game
  • ⏱️ Smart delays - Đợi và chụp lại sau mỗi hành động
  • 🎮 Game state tracking - Theo dõi trạng thái game

Cài đặt

# Tạo virtual environment python -m venv venv source venv/bin/activate # Linux/Mac # hoặc venv\Scripts\activate # Windows # Cài đặt dependencies pip install -r requirements.txt

Sử dụng

Development Mode

uv run mcp dev server.py

Claude Desktop Integration

uv run mcp install server.py --name "GachaMCP"

MCP Tools

  • find_game_window - Tìm cửa sổ game theo tên
  • capture_game_screen - Chụp màn hình cửa sổ game (lưu file)
  • click_at_position - Click tại tọa độ cụ thể
  • wait_and_capture - Đợi và chụp lại màn hình
  • get_window_info - Lấy thông tin cửa sổ game
  • focus_game_window - Focus vào cửa sổ game
  • list_all_windows - Liệt kê tất cả cửa sổ
  • get_last_screenshot - Lấy đường dẫn screenshot cuối
  • list_screenshots - Liệt kê tất cả screenshots
  • clear_screenshots - Xóa tất cả screenshots

Ví dụ sử dụng

AI có thể sử dụng các tools này để:

  1. Tìm cửa sổ game: find_game_window("Genshin Impact")
  2. Chụp màn hình: capture_game_screen() → Trả về đường dẫn file ảnh
  3. AI đọc ảnh từ đường dẫn để phân tích
  4. Click vào nút: click_at_position(x=500, y=300, description="Gacha button")
  5. Đợi và chụp lại: wait_and_capture(delay=2.0) → Ảnh mới

Lưu ý: Screenshots được lưu trong thư mục screenshots/ với tên file có timestamp.

-
security - not tested
F
license - not found
-
quality - not tested

A Python MCP server that helps AI interact with Gacha games through screenshot capture and click automation, enabling game analysis and automated actions.

  1. Tính năng
    1. Cài đặt
      1. Sử dụng
        1. Development Mode
        2. Claude Desktop Integration
      2. MCP Tools
        1. Ví dụ sử dụng

          Related MCP Servers

          • -
            security
            A
            license
            -
            quality
            An MCP server that bridges AI agents with GUI automation capabilities, allowing them to control mouse, keyboard, windows, and take screenshots to interact with desktop applications.
            Last updated -
            7
            Python
            MIT License
            • Apple
            • Linux
          • -
            security
            F
            license
            -
            quality
            A Python implementation of the MCP server that enables AI models to connect with external tools and data sources through a standardized protocol, supporting tool invocation and resource access via JSON-RPC.
            Last updated -
            1
            Python
          • -
            security
            F
            license
            -
            quality
            An MCP server that enables interaction with Google Cloud Game Services API, allowing users to manage game server deployments, realms, and configurations through natural language.
            Last updated -
            Python
            • Linux
            • Apple
          • -
            security
            F
            license
            -
            quality
            An MCP server that enables management of Google Play games via the Google Games Management API, allowing automated interactions for game resets, hiding/unhiding data, and player management through natural language commands.
            Last updated -
            Python

          View all related MCP servers

          MCP directory API

          We provide all the information about MCP servers via our MCP API.

          curl -X GET 'https://glama.ai/api/mcp/v1/servers/NguyenHuynhPhuVinh/GachaMCP'

          If you have feedback or need assistance with the MCP directory API, please join our Discord server