Limited support for memory analysis operations, with some Windows-specific features potentially unavailable.
Enables analysis of Cheat Engine Lua scripts, with support for script content execution in safe mode.
Limited support for memory analysis operations, with potential requirement to disable SIP for certain operations.
Powers the MCP server implementation, with version 3.9 or higher required for server operation.
MCP Cheat Engine Server Documentation
📋 Table of Contents
- Overview
- Quick Start Guide
- Installation
- Configuration
- Using the Tools
- Safety & Security
- Troubleshooting
- Advanced Usage
- API Reference
- FAQ
🎯 Overview
The MCP Cheat Engine Server provides safe, structured access to memory analysis and debugging functionality through the Model Context Protocol (MCP). This tool is designed for:
- Software developers debugging applications
- Security researchers analyzing programs
- Students learning about computer memory and reverse engineering
- Game modders understanding game mechanics
⚠️ Important Safety Notice
This server operates in READ-ONLY mode for safety. It can read and analyze memory but cannot modify it. All operations are logged for security auditing.
🔧 Key Features
- ✅ Process enumeration and attachment
- ✅ Memory reading with multiple data types
- ✅ Pattern scanning and searching
- ✅ Assembly code disassembly
- ✅ Pointer chain resolution
- ✅ Cheat Engine table (.CT) import
- ✅ Safe Lua script analysis
- ✅ Comprehensive security controls
🚀 Quick Start Guide
Prerequisites
- Windows 10/11 (64-bit recommended)
- Python 3.9 or higher
- Administrator privileges (for memory access)
- Claude Desktop or compatible MCP client
30-Second Setup
- Download the server files to your computer
- Open PowerShell as Administrator
- Navigate to the server directory
- Install dependencies:
pip install -r requirements.txt
- Start the server:
python server/main.py
First Use
- List processes: Use the
list_processes
tool to see available programs - Attach to a process: Use
attach_to_process
with a process ID - Read memory: Use
read_memory_region
to examine memory - Detach safely: Use
detach_from_process
when done
🔌 Claude Desktop MCP Setup
📖 For detailed Claude Desktop setup instructions, see MCP_SETUP.md
Quick configuration summary:
- Find your Claude Desktop config:
%APPDATA%\Claude\claude_desktop_config.json
(Windows) - Add the MCP server configuration:
- Restart Claude Desktop
- Test: Ask Claude to "list processes using the MCP server"
📦 Installation
Step 1: System Requirements
- Operating System: Windows 10/11 (Primary), Linux/macOS (Limited)
- Python Version: 3.9, 3.10, 3.11, or 3.12
- Memory: 4GB RAM minimum, 8GB recommended
- Permissions: Administrator/root access required
Step 2: Download and Setup
Step 3: Install Dependencies
Step 4: Test Installation
⚙️ Configuration
Basic Configuration
The server uses configuration files in the server/config/
directory:
settings.json
(Auto-created on first run)
whitelist.json
(Process Access Control)
Security Settings Explained
Setting | Description | Default | Recommendation |
---|---|---|---|
read_only_mode | Prevents memory writing | true | Keep enabled |
require_whitelist | Only allow whitelisted processes | true | Enable for safety |
log_all_operations | Log every operation | true | Enable for auditing |
max_memory_read | Maximum bytes per read | 1MB | Adjust as needed |
🛠️ Using the Tools
1. Process Management
List Available Processes
What you'll see:
- Process name and ID
- Memory usage
- Whether it's accessible
- Security level required
Attach to a Process
Best practices:
- Start with simple programs like Notepad
- Always detach when finished
- Check the whitelist if attachment fails
2. Memory Reading
Read Memory at Address
Supported Data Types
bytes
- Raw byte datastring
- ASCII/UTF-8 textint32
- 32-bit signed integeruint32
- 32-bit unsigned integerint64
- 64-bit signed integeruint64
- 64-bit unsigned integerfloat
- 32-bit floating pointdouble
- 64-bit floating point
3. Memory Scanning
Search for Patterns
Pattern Format Examples
"41 42 43"
- Find bytes 0x41, 0x42, 0x43"48 ?? 05 ?? ?? ?? ??"
- Wildcards for unknown bytes"Hello World"
- Search for ASCII text"00 00 00 01"
- Find integer value 1
4. Code Analysis
Disassemble Assembly Code
Analyze Data Structures
5. Pointer Chains
Follow Multi-Level Pointers
🔒 Safety & Security
Read-Only Protection
The server cannot modify memory - it can only read and analyze. This prevents:
- Accidental program crashes
- Security vulnerabilities
- System instability
Process Whitelist
Only approved processes can be accessed:
Operation Logging
All operations are logged to logs/operations.log
:
Permission Requirements
- Windows: Run as Administrator
- Linux: Run as root or with appropriate capabilities
- macOS: May require disabling SIP for some operations
🔧 Troubleshooting
Common Issues
"Access Denied" Error
Problem: Cannot attach to process Solutions:
- Run as Administrator
- Check if process is in whitelist
- Verify process is not protected by anti-virus
"Module Not Found" Error
Problem: Python dependencies missing Solution:
"Process Not Found" Error
Problem: Process ID doesn't exist Solutions:
- Use
list_processes
to get current IDs - Check if process is still running
- Try process name instead of ID
Memory Read Fails
Problem: Cannot read memory at address Solutions:
- Check if address is valid with
get_memory_regions
- Verify memory protection allows reading
- Try smaller read size
Debug Mode
Enable detailed logging:
Getting Help
- Check the FAQ section below
- Review log files in
logs/
directory - Verify configuration in
server/config/
- Test with simple programs like Notepad first
🎓 Advanced Usage
Cheat Engine Table Import
Import existing .CT files:
Lua Script Analysis
Analyze Cheat Engine Lua scripts:
Custom Memory Regions
Define specific regions for analysis:
Automation Examples
📚 API Reference
Tool Categories
Process Management
- list_processes() - Get all running processes
- attach_to_process(process_id) - Attach to specific process
- detach_from_process() - Safely detach from current process
- get_process_info() - Get detailed process information
Memory Operations
- read_memory_region(address, size, data_type) - Read memory
- get_memory_regions() - Get virtual memory layout
- scan_memory(pattern, start_address, end_address) - Pattern search
Analysis Tools
- analyze_structure(address, size) - Structure analysis
- disassemble_code(address, size, architecture) - Code disassembly
- resolve_pointer_chain(base_address, offsets) - Pointer resolution
Advanced Features
- import_cheat_table(file_path) - Import .CT files
- execute_lua_script(script_content, safe_mode) - Lua analysis
Data Types Reference
Type | Size | Range | Use Case |
---|---|---|---|
int8 | 1 byte | -128 to 127 | Small signed numbers |
uint8 | 1 byte | 0 to 255 | Bytes, characters |
int16 | 2 bytes | -32,768 to 32,767 | Short integers |
uint16 | 2 bytes | 0 to 65,535 | Port numbers |
int32 | 4 bytes | ±2.1 billion | Standard integers |
uint32 | 4 bytes | 0 to 4.2 billion | Addresses (32-bit) |
int64 | 8 bytes | ±9.2 quintillion | Large numbers |
uint64 | 8 bytes | 0 to 18.4 quintillion | Addresses (64-bit) |
float | 4 bytes | ±3.4E±38 | Decimal numbers |
double | 8 bytes | ±1.7E±308 | High precision decimals |
❓ FAQ
General Questions
Q: Is this tool safe to use? A: Yes, the server operates in read-only mode and cannot modify memory or harm your system.
Q: Can I use this on games? A: Yes, but respect the terms of service of online games. This tool is primarily for educational and debugging purposes.
Q: Do I need Cheat Engine installed? A: No, this is a standalone server that provides similar functionality through MCP.
Technical Questions
Q: Why do I need Administrator privileges? A: Windows requires elevated privileges to read memory from other processes for security reasons.
Q: Can I run this on Mac or Linux? A: The server has limited support for Mac/Linux. Some Windows-specific features may not work.
Q: How much memory does the server use? A: Typically 50-100MB, depending on the size of processes being analyzed.
Usage Questions
Q: What processes should I start with? A: Begin with simple programs like Notepad, Calculator, or your own test applications.
Q: How do I find the right memory addresses? A: Use memory scanning to find patterns, then analyze the results to identify relevant addresses.
Q: Can I save my analysis results? A: Yes, all tool results can be saved to files for later reference and analysis.
Troubleshooting Questions
Q: The server won't start - what should I check? A: Verify Python version (3.9+), install dependencies, and run as Administrator.
Q: I can't attach to a process - why? A: Check the process whitelist, verify the process is running, and ensure you have Administrator privileges.
Q: Memory reads are failing - what's wrong?
A: The memory address may be invalid or protected. Use get_memory_regions
to find readable areas.
📝 License & Credits
This project is licensed under the MIT License. Built with:
- FastMCP - Model Context Protocol implementation
- Capstone - Disassembly engine
- psutil - Process and system utilities
- trio - Async I/O framework
📞 Support
For additional help:
- Review this documentation thoroughly
- Check the troubleshooting section
- Enable debug mode for detailed error information
- Test with simple programs first
Remember: This tool is for educational and legitimate debugging purposes. Always respect software licenses and terms of service.
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
Provides safe, read-only access to memory analysis and debugging functionality through the Model Context Protocol, allowing users to examine computer memory for software development, security research, and educational purposes.
Related MCP Servers
- -securityAlicense-qualityA Model Context Protocol tool for analyzing code repositories, performing security scans, and assessing code quality across multiple programming languages.Last updated -1PythonMIT License
- -securityAlicense-qualityAn implementation of the Model Context Protocol (MCP) that enables interaction with debug adapters, allowing language models to control debuggers, set breakpoints, evaluate expressions, and navigate source code during debugging sessions.Last updated -14PythonAGPL 3.0
- AsecurityFlicenseAqualityA comprehensive Model Context Protocol server for advanced code analysis that provides tools for syntax analysis, dependency visualization, and AI-assisted development workflow support.Last updated -284Python
- -securityAlicense-qualityA Model Context Protocol server that provides network analysis tools for security professionals, enabling AI models like Claude to perform tasks such as ASN lookups, DNS analysis, WHOIS retrieval, and IP geolocation for security investigations.Last updated -1PythonApache 2.0