home / mcp / pcileech mcp server
Provides a local MCP server to perform DMA-based memory read, write, and formatting via PCILeech with a natural language interface.
Configuration
View docs{
"mcpServers": {
"evan7198-mcp_server_pcileech": {
"command": "C:\\\\path\\\\to\\\\mcp_server_pcileech\\\\.venv\\\\Scripts\\\\python.exe",
"args": [
"C:\\\\path\\\\to\\\\mcp_server_pcileech\\\\main.py"
]
}
}
}You deploy the PCILeech MCP server to expose memory operations via a simple, low-latency MCP interface. It lets AI assistants perform memory read, write, and multi-view formatting through natural language commands, by running PCILeech as a local subprocess and communicating over a standard MCP channel.
You connect to the MCP server from your MCP client by selecting the local stdio server configuration described here. Use the three MCP tools to read, write, and format memory across the target system via PCILeech, enabling memory debugging and analysis with natural language interactions.
Follow these steps to set up the MCP server locally on Windows with Python and PCILeech.
git clone https://github.com/Evan7198/mcp_server_pcileech
cd mcp_server_pcileechpython -m venv .venv
.venv\Scripts\activatepip install -r requirements.txtcd pcileech
pcileech.exe probe"mcpServers": {
"pcileech": {
"command": "C:\\path\\to\\mcp_server_pcileech\\.venv\\Scripts\\python.exe",
"args": [
"C:\\path\\to\\mcp_server_pcileech\\main.py"
],
"cwd": "C:\\path\\to\\mcp_server_pcileech",
"env": {}
}
}Restart Claude Code to load the MCP server configuration and establish the stdio channel to the local Python process running the MCP server.
The server uses a configuration block to define how to launch the PCILeech wrapper and how the MCP server exposes itself. The recommended local setup for the PCLeech MCP server is shown below.
{
"pcileech": {
"executable_path": "pcileech\\pcileech.exe",
"timeout_seconds": 30
},
"server": {
"name": "mcp-server-pcileech",
"version": "0.1.0"
}
}Once configured, you can issue natural language requests to perform memory operations through the MCP interface. Examples include reading, writing, and formatting memory around specific addresses.
If you encounter issues, check the following common problems and solutions.
Error: PCILeech executable not found. Verify the path in the configuration points to the correct location of pcileech.exe.
Warning: PCILeech connection verification failed. Ensure PCILeech hardware is properly connected and drivers are installed. Test with pcileech.exe probe directly.
Error: Memory read/write failed. Check that the target address is valid and accessible. Confirm hardware access permissions and test with the PCILeech CLI.
Error: PCILeech command timed out. If operations are legitimately slow, increase timeout_seconds in the configuration.
The project includes an MCP server entry point, a PCILeech integration layer, configuration, dependencies, and PCILeech binaries. This organization supports a clean separation between MCP protocol handling and direct PCILeech interactions.
Code formatting, type checking, and tests help ensure reliability. Use tools like Black for formatting, MyPy for type checking, and PyTest for tests to maintain quality during development.
Operate only on systems you are authorized to debug. Respect legal and organizational policies when performing memory operations, especially in production or sensitive environments.
Version: v0.1.0. Support via the established channels for the PCILeech and MCP communities.
Read raw memory from a specified address and length, returning a hex string with metadata.
Write hex-encoded data to a specified memory address and return a success status.
Read memory and present it in multiple views, including hex dump, ASCII, byte array, DWORDs, and raw hex.