Cheat Engine MCP Bridge (TCP Enhanced Fork)のロゴ

Cheat Engine MCP Bridge (TCP Enhanced Fork)

コミュニティ
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.

公開者HollyZoe
リポジトリcheatengine-mcp-tcp-bridge
言語Lua
フォーク
12
スター
59
利用可能なツール
0
通信方式stdio
カテゴリ
ライセンスMIT
リンク
  • ツールをAIワークフローに接続

    Cheat Engine MCP Bridge (TCP Enhanced Fork)は、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 0個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには59件のスターと12件のフォークがあります。

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.

インストール

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

Cheat Engine MCP Bridge (TCP Enhanced Fork)のMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度Cheat Engine MCP Bridge (TCP Enhanced Fork)に接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

Cheat Engine MCP Bridge (TCP Enhanced Fork)をサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. Cheat Engine MCP Bridge (TCP Enhanced Fork)のMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "cheatengine-mcp-tcp-bridge": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてCheat Engine MCP Bridge (TCP Enhanced Fork)のMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. Cheat Engine MCP Bridge (TCP Enhanced Fork)のMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
Cheat Engine MCP Bridge (TCP Enhanced Fork)を使ってこのタスクを手伝ってもらえますか?
Cheat Engine MCP Bridge (TCP Enhanced Fork)
はい、読みました。
Cheat Engine MCP Bridge (TCP Enhanced Fork)で調べた結果をお伝えします。

よくある質問

Cheat Engine MCP Bridge (TCP Enhanced Fork) MCPサーバーは何に使いますか?

Cheat Engine MCP Bridge (TCP Enhanced Fork)は、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでCheat Engine MCP Bridge (TCP Enhanced Fork) MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでCheat Engine MCP Bridge (TCP Enhanced Fork)を利用できます。

TypingMindでCheat Engine MCP Bridge (TCP Enhanced Fork) MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。Cheat Engine MCP Bridge (TCP Enhanced Fork)を接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

Cheat Engine MCP Bridge (TCP Enhanced Fork) MCPをTypingMindに接続するにはどうすればよいですか?

Cheat Engine MCP Bridge (TCP Enhanced Fork)はTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでCheat Engine MCP Bridge (TCP Enhanced Fork) MCPのどのようなツールを利用できますか?

Cheat Engine MCP Bridge (TCP Enhanced Fork)はMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

Cheat Engine MCP Bridge (TCP Enhanced Fork) MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。Cheat Engine MCP Bridge (TCP Enhanced Fork)で認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇