Antigravity Game Memory Editor MCP Server
Provides an embedded Lua scripting runtime with Cheat Engine API compatibility, enabling execution of Lua scripts to read/write memory, freeze values, get module bases, and interact with game process memory.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Antigravity Game Memory Editor MCP ServerScan for my health value and set it to 9999."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
๐ฎ Game Memory Editor MCP Server
A high-performance Model Context Protocol (MCP) server that equips Antigravity and LLM agents with native, real-time memory inspection, multi-stage value scanning, pointer chain traversal, Cheat Engine Table (.CT) execution, Lua scripting, reflective manual mapping, and stealth low-footprint operations for single-player games on Windows.
๐๏ธ Architecture Overview
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Antigravity โ
โ (AI Coding Assistant) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ MCP Tool Call (JSON-RPC)
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Game Memory Editor MCP Server โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโค
โ Memory Engine โ Stealth Engine โ Modding & Tables โ Manual Mapper โ
โ โข Fast Regex AOB Scanner โ โข Direct NTDLL Syscalls โ โข Cheat Table (.CT) Parser โ โข PE Mapper โ
โ โข Multi-stage Value Scanner โ โข Ephemeral Handle Lifecycle โ โข LuaJIT Runtime (CE Globals)โ โข Base Relocs โ
โ โข Multilevel Pointer Chains โ โข Smart Adaptive Freezing โ โข Script Obfuscation (XOR) โ โข IAT Resolution โ
โ โข Memory Protection Restore โ โข Jittered Polling Delays โ โข Standard DLL Injector โ โข Wiped Headers โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโ
โ Win32 / Native NT Syscalls
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Single-Player Game Process โ
โ (x64 / x86 Virtual Memory) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโRelated MCP server: memscope-mcp
โก Key Capabilities
1. ๐ High-Performance Memory Scanner
Regex-Accelerated AOB Pattern Scanner: Compiled regular expressions scan committed memory pages in 2MB chunks with wildcards (
??), executing up to 100x faster than naive loops.Multi-Stage Value Filtering: Supports
first_scanandnext_scanwith exact value, increased, decreased, changed, and unchanged modes.Precision Floating-Point Support: Accurate float (
f32) and double (f64) comparisons usingmath.iscloseto eliminate IEEE-754 rounding discrepancies.Multilevel Pointer Chains: Resolves nested pointer offsets (
base + off1 -> [ptr] + off2 -> [ptr] + ...).
2. ๐ฅท Stealth & Low-Footprint Operations
Direct NT Syscalls: Calls
NtReadVirtualMemory,NtWriteVirtualMemory, andNtProtectVirtualMemorydirectly, bypassing user-mode hooks placed onkernel32.dll.Ephemeral Handle Lifecycle: Opens handles on demand with minimal required access rights (
PROCESS_VM_READ | PROCESS_VM_WRITE) and closes them immediately, leaving no persistent open handle signatures.Smart Adaptive Freezing (Write-on-Change): Reads memory before writing and only issues a write when the value changes in-game (e.g., 40 checks resulted in only 1 actual write in tests).
Timing Jitter: Introduces randomized micro-delays (e.g. 40msโ120ms) to disrupt static polling frequency heuristics.
Memory Protection Restoration: Automatically elevates page protections to
PAGE_EXECUTE_READWRITEbefore writing and restores the original page protection immediately afterward.
3. ๐ Cheat Engine Table (.CT) Integration
Native XML Parser: Parses Cheat Engine tables, resolving module-relative addresses (
"game.exe"+01A2B3C0), negative offsets ("game.exe"-0x50), and deep pointer chains.Direct Value Manipulation: Read, write, and freeze individual table entries without launching the Cheat Engine GUI.
4. ๐ Embedded Lua Scripting Runtime
Cheat Engine API Compatibility: Provides built-in functions:
readInteger(addr), writeInteger(addr, value) readFloat(addr), writeFloat(addr, value) readDouble(addr), writeDouble(addr, value) readString(addr), writeString(addr, value) freeze(addr, type, value), unfreeze(addr) getModuleBase(name), print(...)Script Obfuscation: Encrypts scripts using multi-byte rolling XOR keys and outputs standalone self-decrypting Lua stubs that execute in-memory.
5. ๐ Reflective Manual Mapping & DLL Injection
PE Manual Mapper: Maps DLLs directly into process memory without
LoadLibraryW:Maps
.text,.rdata,.datasections to their virtual addresses.Applies Base Relocations (
IMAGE_DIRECTORY_ENTRY_BASERELOC).Resolves Import Address Tables (IAT) (
IMAGE_DIRECTORY_ENTRY_IMPORT).Executes
DllMainvia an ABI-compliant assembly trampoline.Wipes PE headers from target memory to hide from memory scanners.
Standard Win32 Injector:
CreateRemoteThreadinjection with thread exit code validation.
๐ ๏ธ MCP Tools Reference
Process & Memory Management
Tool Name | Parameters | Description |
|
| List running Windows processes with PID and executable name. |
|
| Attach to a target process by PID or executable name (e.g. |
| (none) | Enumerate loaded modules and base addresses (useful for ASLR calculations). |
|
| Read typed values ( |
|
| Write typed value to address or pointer chain. |
|
| Continuously enforce a memory value (God Mode, Infinite Ammo). |
|
| Release a frozen address. |
| (none) | List all currently frozen addresses. |
Memory Scanning
Tool Name | Parameters | Description |
|
| Scan committed memory pages for an initial value. |
|
| Filter matches: |
|
| High-speed AOB regex scan with |
Stealth & Low-Footprint
Tool Name | Parameters | Description |
|
| Configure stealth handle lifecycle and timing jitter. |
|
| Direct |
|
| Low-footprint write-on-change freezing with jitter. |
|
| Stop smart adaptive freeze on an address. |
|
| Multi-byte XOR encrypt script and generate self-decrypting stub. |
|
| Reflective manual PE mapping without |
Cheat Tables & Scripting
Tool Name | Parameters | Description |
|
| Parse a Cheat Engine |
|
| List all table entries with resolved addresses and live values. |
|
| Overwrite or freeze value for a table entry. |
|
| Execute Lua script with Cheat Engine compatibility functions. |
|
| Inject a native DLL via standard |
๐ Quickstart
1. Installation
Clone repository and install dependencies:
git clone https://github.com/ZiggyBonham/game-memory-mcp.git
cd game-memory-mcp
pip install -r requirements.txt2. Antigravity MCP Registration
Add the server to your ~/.gemini/config/mcp_config.json:
{
"mcpServers": {
"game-memory": {
"command": "python",
"args": [
"C:\\Users\\Ziggy\\mcp-servers\\game-memory\\server.py"
]
}
}
}3. Example Agent Conversations
Memory Scanning Flow:
User: "Attach to
hades.exeand search for my health which is currently 250."
Antigravity: Callsattach_process("hades.exe"), thenfirst_scan("hp", "int32", 250).
User: "I took damage, health is now 215. Filter the scan."
Antigravity: Callsnext_scan("hp", "exact", 215).
User: "Set health to 5000 and smart-freeze it."
Antigravity: Callssmart_freeze("0x140A2C48", "int32", 5000).
Cheat Table Flow:
User: "Load
EldenRing.CTand show me the player stats."
Antigravity: Callsload_cheat_table("er", "C:\\Cheats\\EldenRing.CT"), thenlist_cheat_table_entries("er").
User: "Freeze Runes to 9999999."
Antigravity: Callsset_cheat_table_entry("er", "entry_runes", 9999999, freeze=True).
๐งช Automated Test Suites
Run the complete verification battery:
# Core memory engine (Attach, Scan, Read, Write, Freeze, Unfreeze)
python test_suite.py
# Modding features (Lua Scripting, Cheat Tables)
python test_extended_features.py
# Stealth features (Direct NT Syscalls, Smart Freeze, Protection Restore, Obfuscator)
python test_stealth.py
# High-speed optimizations (parse_address, Float Scanning, Regex AOB Scan)
python test_optimizations.py๐ก๏ธ Requirements & Safety Notice
Windows Administrator Privileges: Modifying virtual memory of external processes (
PROCESS_VM_WRITE,PROCESS_VM_READ) requires running your terminal / IDE with Administrator rights.Single-Player Games Only: This tool is designed strictly for offline single-player games and reverse-engineering research. Games utilizing active anti-cheat engines (Easy Anti-Cheat, BattlEye, Vanguard) must be launched offline with anti-cheat disabled.
๐ License
Distributed under the MIT License. Copyright (c) 2026 Ziggy.
This server cannot be deployed
Maintenance
Related MCP Connectors
Reasoning, code, anti-deception, memory harness MCP tools. Stdio or HTTPS api.ejentum.com/mcp
Agentic AI runtime: persistent memory, vault, autonomous agents, deep research, DeFi execution.
Full-control memory API for AI agents โ memories, collections, links, search, and bulk operations.
Shared long-term memory vault for AI agents with 20 MCP tools.
Related MCP Servers
- AlicenseAqualityFmaintenanceProvides Cheat Engine-like capabilities for game hacking and reverse engineering through Frida, enabling memory scanning, value modification, pattern matching, function hooking, and code injection across processes.4276MIT
- AlicenseNot gradedqualityAmaintenanceEnables AI agents to perform low-level Windows process memory research, including process attachment, memory scanning, reading/writing, pointer chasing, remote code execution, and inline hooking via MCP tools and Lua scripting.17 PyPI2MIT
- AlicenseBqualityDmaintenanceEnables AI agents to programmatically control Cheat Engine for memory scanning, editing, cheat table management, and reverse engineering tasks.42MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI to directly control Cheat Engine for process attachment, memory scanning, reading/writing, address list management, speed hack, Lua/Auto Assembler execution, and CT file management via the MCP protocol.3MIT