Logo Cheat Engine MCP Bridge (TCP Enhanced Fork)

Cheat Engine MCP Bridge (TCP Enhanced Fork)

Cộng đồng
HollyZoe

TCP-enhanced fork of Cheat Engine MCP Bridge. Connect Cursor, Copilot and Claude AI directly to local or remote Cheat Engine via TCP. Automate reverse engineering, pointer scanning, and memory analysis using natural language.

Nhà phát hànhHollyZoe
Kho mãcheatengine-mcp-tcp-bridge
Ngôn ngữLua
Bản fork
12
Sao
59
Công cụ có sẵn
0
Phương thức truyền tảistdio
Danh mục
Giấy phépMIT
Liên kết
  • Kết nối công cụ với quy trình làm việc AI

    Cheat Engine MCP Bridge (TCP Enhanced Fork) cung cấp các khả năng MCP mà ứng dụng khách và tác nhân AI tương thích có thể sử dụng.

  • 0 công cụ có sẵn

    Xem các thao tác có thể gọi bên dưới, kèm tên và mô tả nếu máy chủ cung cấp.

  • Cấu hình sẵn để sao chép

    Dùng các đoạn cấu hình cài đặt mẫu để thiết lập máy chủ này trong ứng dụng khách MCP bạn muốn dùng.

  • Chỉ số quan tâm đến mã nguồn mở

    59 sao và 12 bản fork từ kho mã được liên kết.

English | 中文

Cheat Engine MCP Bridge — TCP Enhanced Edition

Version Python Transport Tools

A fork of miscusi-peek/cheatengine-mcp-bridge that replaces Windows Named Pipe with a native C TCP bridge, enabling remote CE control, zero pywin32 dependency, and multi-instance support.

Demo Video


This Fork vs Original — Key Differences

Architecture

ORIGINAL (v12.0.0)                         THIS FORK (v15.0.0)
AI Client                                  AI Client
  │ stdio JSON-RPC                           │ stdio JSON-RPC
  ▼                                          ▼
mcp_cheatengine.py                         mcp_cheatengine.py
  │ Named Pipe (pywin32)                     │ TCP socket (stdlib only)
  ▼                                          ▼
\\.\pipe\CE_MCP_Bridge_v99                 ce_mcp_tcp.dll (native C)
  │ Worker thread (Lua pipe I/O)             │ Winsock2 + select()
  ▼                                          ▼
ce_mcp_bridge.lua → Target Process         ce_mcp_bridge.lua → Target Process

Pros & Cons Comparison

Original (v12.0.0)This Fork (v15.0.0)
TransportNamed PipeNative TCP (C DLL)
Remote CERequires ce_tcp_relay.py relay scriptBuilt-in via CE_HOST env var
Python depsmcp + pywin32mcp only
Multi-instanceNot supportedPort auto-increment (17171–17181)
Timeout30s90s, 3x retry + auto-reconnect
Debug consoleNoneDedicated DLL diagnostic window
Lua code~6700 lines (FFI/Winsock/Pipe)~5700 lines (1000 lines removed)
CRT dependencyNoneStatic /MT — no VC runtime needed
Original AdvantagesFork Advantages
SimplicityZero DLL, pip install onlyN/A
Local securityNamed Pipe is local-only by designN/A
Remote debuggingN/ANative TCP, no relay scripts
Cross-platform serverN/ATCP stdlib works anywhere
StabilityN/ANo FFI crashes, no PEB-walk failures
Multi-CEN/AAuto port discovery

Security: TCP has no auth/encryption. Only expose on trusted networks. Never open port 17171 to the internet.

Project Structure Comparison

ORIGINAL                                   THIS FORK
────────                                   ─────────
MCP_Server/                                MCP_Server/
├── mcp_cheatengine.py  (pywin32 pipe)     ├── mcp_cheatengine.py  (TCP stdlib)
├── ce_mcp_bridge.lua   (~6700 lines)      ├── ce_mcp_bridge.lua   (~5700 lines)
├── ce_tcp_relay.py     (TCP relay)        ├── ce_mcp_tcp_x64.dll  ← NEW: native DLL
├── test_mcp.py                            ├── ce_mcp_tcp_x86.dll  ← NEW: native DLL
└── requirements.txt    (mcp + pywin32)    ├── test_mcp.py
                                           └── requirements.txt    (mcp only)
AI_Context/             (docs)
                                           NativeBridge/           ← NEW: DLL source
                                           ├── ce_mcp_tcp.c        (770 lines C)
                                           ├── build.bat
                                           └── bin/{x64,x86}/

                                           AI_Context/             (docs)

Key structural differences:

  • Removed: ce_tcp_relay.py — no longer needed, TCP is native
  • Removed: pywin32 from requirements — TCP uses Python stdlib
  • Added: NativeBridge/ — compiled C DLL source and build system
  • Added: Pre-built DLLs in MCP_Server/ for easy deployment
  • Reduced: Lua bridge from ~6700 to ~5700 lines (dead FFI/pipe code removed)

Setup

1. Clone the Repository

bash
git clone https://github.com/HollyZoe/cheatengine-mcp-tcp-bridge.git
cd cheatengine-mcp-tcp-bridge

2. Install Python Dependencies

Prerequisites: Python 3.10+ (download)

The MCP server requires the mcp Python package (Model Context Protocol SDK). This is not a built-in module — you must install it manually:

bash
pip install -r MCP_Server/requirements.txt

Or install directly:

bash
pip install mcp

If you have multiple Python versions, use python -m pip install mcp to ensure it installs to the correct environment.

Verify the installation succeeded:

bash
python -c "from mcp.server.fastmcp import FastMCP; print('OK')"

If you see ModuleNotFoundError: No module named 'mcp', the install failed — check:

  • You're using the same python that Cursor/your AI client will use
  • Try python -m pip install mcp instead of just pip install mcp
  • On Windows, pip may warn scripts are not on PATH — this is fine, Cursor spawns the server via the python command directly

Note: TCP transport (default) does not require pywin32. Only legacy Named Pipe transport (CE_TRANSPORT=pipe) needs it.

3. Place DLL

Copy ce_mcp_tcp_x64.dll (or _x86.dll for 32-bit CE) into your Cheat Engine directory:

C:\CE 7.5\cheatengine-x86_64.exe
C:\CE 7.5\ce_mcp_tcp_x64.dll    ← here

DLL source: MCP_Server/ or NativeBridge/bin/.

4. Load in Cheat Engine

  1. Attach CE to your target process
  2. File → Execute Script → open MCP_Server/ce_mcp_bridge.lua → Execute

Or via Lua console:

lua
dofile([[C:\path\to\MCP_Server\ce_mcp_bridge.lua]])

Expected output:

[MCP] CE x64 - loading ce_mcp_tcp_x64.dll
[MCP] DLL loaded OK
[MCP] Bridge started on port 17171 (native TCP, 1ms poll)

5. Configure AI Client

.cursor/mcp.json:

json
{
  "mcpServers": {
    "cheatengine": {
      "command": "python",
      "args": ["C:/path/to/MCP_Server/mcp_cheatengine.py"],
      "env": { "CE_HOST": "127.0.0.1", "CE_PORT": "17171" }
    }
  }
}

%APPDATA%\Claude\claude_desktop_config.json:

json
{
  "mcpServers": {
    "cheatengine": {
      "command": "python",
      "args": ["C:/path/to/MCP_Server/mcp_cheatengine.py"],
      "env": { "CE_HOST": "127.0.0.1", "CE_PORT": "17171" }
    }
  }
}

~/.codex/config.toml:

toml
[mcp_servers.cheatengine]
command = "python"
args = ['C:\path\to\MCP_Server\mcp_cheatengine.py']
json
{ "env": { "CE_HOST": "192.168.1.100", "CE_PORT": "17171" } }

Firewall on CE machine:

powershell
netsh advfirewall firewall add rule name="CE MCP" dir=in action=allow protocol=TCP localport=17171

6. Verify

Ask the AI: "Ping Cheat Engine"

json
{"success": true, "version": "15.0.0", "message": "CE MCP Bridge v15.0.0 alive"}

Environment Variables

VariableDefaultDescription
CE_HOST127.0.0.1CE machine IP (remote debugging)
CE_PORT17171TCP port (auto-increments if busy)
CE_PORT_RANGE10Ports to scan from base
CE_MCP_TIMEOUT90Per-tool timeout (seconds)
CE_TRANSPORTtcptcp or pipe (legacy)
CE_MCP_ALLOW_SHELL(unset)1 to enable run_command/shell_execute

Available Tools (~161)

CategoryExamples
Memory Read/Writeread_memory, write_memory, read_integer, write_string, read_pointer_chain
Scanningscan_all, next_scan, aob_scan, aob_scan_module, search_string
Disassembly & Analysisdisassemble, analyze_function, find_function_boundaries, find_references, find_call_references
Code Injectionauto_assemble, inject_dll, execute_code, compile_c_code
Breakpoints & Debugset_breakpoint, set_data_breakpoint, start_dbvm_watch, get_breakpoint_hits
Process & Modulesopen_process, get_process_list, enum_modules, get_symbol_address
Structurescreate_structure, dissect_structure, add_element_to_structure, get_rtti_classname
Memory Managementallocate_memory, free_memory, get_memory_protection, get_memory_regions
Cheat Tableload_table, save_table, create_memory_record, get_address_list
GUI & Inputfind_window, is_key_pressed, get_pixel, show_message, speak_text
File & Systemfile_exists, md5_file, get_file_list, evaluate_lua
Kernel (DBK/DBVM)dbk_get_cr3, get_physical_address, read_process_memory_cr3

Full reference: AI_Context/MCP_Bridge_Command_Reference.md


Tool Testing Results

Full testing on all 161 tools (target: Notepad.exe on Windows 10):

ResultCount
Passed110+
Fixed during testing3 (get_memory_protection, get_memory_regions, debug_get_current_debugger_interface)
CE environment limitation5 (compile_c_code, compile_cs_code, load_new_symbols, pointer_rescan, inject_dotnet_dll)
Requires kernel driver~20 (skipped — needs signed driver/DBVM)

Troubleshooting

ProblemSolution
No module named 'mcp'Run python -m pip install mcp (see Install)
DLL not foundCopy ce_mcp_tcp_x64.dll to CE directory
Cannot connectCheck netstat -an | findstr 17171, verify CE_HOST/CE_PORT
"too many local variables"Use dofile(...) instead of pasting the script
Timeout on heavy opsIncrease CE_MCP_TIMEOUT
CE UI freezesNormal — handlers run on main thread for API safety

Critical: BSOD Prevention

Disable CE → Settings → Extra → "Query memory region routines". Memory scans on DBVM pages trigger CLOCK_WATCHDOG_TIMEOUT BSODs with it enabled.


Credits

Fork of miscusi-peek/cheatengine-mcp-bridge by @miscusi-peek. Contributors: @libangli218, @lauralex, @iamtyroon.

Disclaimer

For educational and research purposes only. Do not use for malicious hacking, cheating in multiplayer games, or violating Terms of Service.

Cài đặt

TypingMind
{
  "mcpServers": {
    "cheatengine-mcp-tcp-bridge": {
      "command": "python",
      "args": [
        "-m",
        "mcp"
      ],
      "env": {
        "CE_TRANSPORT": "<CE_TRANSPORT>",
        "CE_HOST": "<CE_HOST>",
        "CE_PORT": "<CE_PORT>"
      }
    }
  }
}

Dùng MCP Cheat Engine MCP Bridge (TCP Enhanced Fork) với nhiều mô hình AI

TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên sau khi kết nối Cheat Engine MCP Bridge (TCP Enhanced Fork), bạn có thể dùng với nhiều mô hình AI khác nhau trong TypingMind thay vì phải thiết lập riêng cho từng mô hình. MCP này chạy cục bộ thông qua trình kết nối MCP của TypingMind trên thiết bị của bạn.

Hướng dẫn thiết lập để dùng trình kết nối cục bộ

Dùng cách này khi máy chủ MCP cần truy cập các tệp, ứng dụng hoặc tài nguyên riêng tư trên máy tính của bạn.

1

Mở cài đặt MCP

Trong TypingMind, vào Cài đặt, Cài đặt nâng cao, rồi đến Giao thức ngữ cảnh mô hình và chọn Cài trình kết nối.

  1. Mở TypingMind trong trình duyệt của bạn.
  2. Nhấp vào biểu tượng Cài đặt.
  3. Vào Cài đặt nâng cao.
  4. Mở mục Giao thức ngữ cảnh mô hình.
  5. Nhấp vào Cài trình kết nối rồi chọn Thiết bị này.
Màn hình thiết lập trình kết nối MCP của TypingMind với tùy chọn Thiết bị này được chọn
2

Chạy lệnh trình kết nối

Chọn Thiết bị này, sao chép lệnh từ TypingMind và chạy trong Terminal. Giữ tiến trình chạy trong khi bạn dùng MCP.

  1. Sao chép lệnh thiết lập hiển thị trong TypingMind.
  2. Mở Terminal trên macOS hoặc Windows Terminal trên Windows.
  3. Dán và chạy lệnh.
  4. Xác nhận cài đặt gói nếu Terminal hỏi bạn có muốn tiếp tục không.
  5. Giữ tiến trình trong cửa sổ Terminal chạy trong khi dùng các công cụ MCP.
3

Thêm Cheat Engine MCP Bridge (TCP Enhanced Fork) làm máy chủ

Khi trạng thái trình kết nối là Sẵn sàng, nhấp vào Sửa máy chủ và dán cấu hình máy chủ MCP.

  1. Đợi đến khi trạng thái trình kết nối hiển thị Sẵn sàng.
  2. Nhấp vào Sửa máy chủ.
  3. Dán cấu hình máy chủ MCP của Cheat Engine MCP Bridge (TCP Enhanced Fork).
  4. Lưu danh sách máy chủ.
  5. Làm mới nếu bạn muốn xác nhận trình kết nối vẫn sẵn sàng.
Cài đặt MCP của TypingMind hiển thị máy chủ đang hoạt động và nút Sửa máy chủ
{
  "mcpServers": {
    "cheatengine-mcp-tcp-bridge": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Dùng kết nối với nhiều mô hình

Lưu danh sách máy chủ, mở Plugin, bật các công cụ MCP của Cheat Engine MCP Bridge (TCP Enhanced Fork), sau đó chọn bất kỳ mô hình AI nào được hỗ trợ trong TypingMind và dùng các công cụ trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.

  1. Mở trang Plugin trong TypingMind.
  2. Bật các công cụ MCP của Cheat Engine MCP Bridge (TCP Enhanced Fork).
  3. Bắt đầu cuộc trò chuyện và chọn mô hình AI bạn muốn dùng.
  4. Dùng các công cụ MCP trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.
  5. Chuyển sang mô hình AI khác bất cứ khi nào cần mà không phải kết nối lại MCP.
Cuộc trò chuyện TypingMind dùng các công cụ MCP đã bật với một mô hình AI được chọn
Bạn có thể dùng Cheat Engine MCP Bridge (TCP Enhanced Fork) giúp tôi làm việc này không?
Cheat Engine MCP Bridge (TCP Enhanced Fork)
Được. Tôi đã đọc.
Đây là kết quả tôi tìm được bằng Cheat Engine MCP Bridge (TCP Enhanced Fork).

Câu hỏi thường gặp

Máy chủ MCP Cheat Engine MCP Bridge (TCP Enhanced Fork) dùng để làm gì?

Cheat Engine MCP Bridge (TCP Enhanced Fork) là máy chủ MCP cho phép các ứng dụng AI tương thích kết nối với công cụ và ngữ cảnh bên ngoài. Trong TypingMind, bạn chỉ cần thêm máy chủ MCP này một lần để các công cụ của nó có sẵn trong không gian làm việc AI của bạn.

Bạn có thể dùng MCP Cheat Engine MCP Bridge (TCP Enhanced Fork) với nhiều mô hình AI trong TypingMind không?

Có. TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên bạn có thể dùng Cheat Engine MCP Bridge (TCP Enhanced Fork) với nhiều mô hình AI như Claude, ChatGPT, Gemini hoặc các mô hình khác đã cấu hình trong TypingMind mà không cần thiết lập máy chủ MCP riêng cho từng mô hình.

Vì sao nên dùng MCP Cheat Engine MCP Bridge (TCP Enhanced Fork) với TypingMind?

TypingMind là một trong những giao diện trò chuyện với LLM tốt nhất vì tập hợp nhiều mô hình AI, prompt, plugin, tác nhân AI, khóa API và công cụ MCP vào một không gian làm việc. Khi kết nối Cheat Engine MCP Bridge (TCP Enhanced Fork), bạn có thể dùng các công cụ MCP của dịch vụ này với những mô hình ưa thích, đồng thời giữ quy trình trò chuyện gọn gàng trong TypingMind.

Làm cách nào để kết nối MCP Cheat Engine MCP Bridge (TCP Enhanced Fork) với TypingMind?

Cheat Engine MCP Bridge (TCP Enhanced Fork) hoạt động thông qua trình kết nối MCP cục bộ của TypingMind. Đây là lựa chọn phù hợp nhất khi máy chủ MCP cần truy cập tệp cục bộ, ứng dụng máy tính, công cụ dòng lệnh hoặc tài nguyên riêng trên máy tính của bạn.

MCP Cheat Engine MCP Bridge (TCP Enhanced Fork) cung cấp những công cụ nào trong TypingMind?

Cheat Engine MCP Bridge (TCP Enhanced Fork) cung cấp các chức năng MCP mà bạn có thể bật từ trang Plugin của TypingMind để dùng trong trò chuyện hoặc gán cho tác nhân AI.

Bạn có cần chia sẻ khóa API với TypingMind để dùng MCP Cheat Engine MCP Bridge (TCP Enhanced Fork) không?

Không. TypingMind ưu tiên xử lý cục bộ và cho phép bạn kiểm soát nhà cung cấp mô hình, khóa API, prompt và cấu hình MCP. Nếu Cheat Engine MCP Bridge (TCP Enhanced Fork) yêu cầu xác thực, hãy thêm các header, cài đặt OAuth hoặc cấu hình cục bộ cần thiết cho máy chủ MCP đó khi tạo kết nối.

Máy chủ MCP liên quan

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇