ResourceHacker

Provides ResourceHacker resource-management capabilities via MCP for Windows PE files
  • javascript

4

GitHub Stars

javascript

Language

6 months ago

First Indexed

2 months ago

Catalog Refreshed

Documentation & install

Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.

Installation

Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "valerian7-resourcehacker-mcp": {
      "command": "node",
      "args": [
        "ResourceHacker-mcp_PATH\\\\ResourceHacker-mcp\\\\index.js"
      ],
      "env": {
        "RESOURCE_HACKER_PATH": "RESOURCE_HACKER_PATH\\\\ResourceHacker.exe"
      }
    }
  }
}

ResourceHacker MCP Server exposes ResourceHacker’s command line resource tools through the Model Context Protocol (MCP). You can control Windows PE resources from your MCP-enabled assistants, enabling tasks like extracting, listing, adding, or modifying resources in executables and libraries using natural language interfaces.

How to use

You interact with ResourceHacker MCP through an MCP client such as Claude or Codex. Install the server locally or access it via an MCP host, then issue high-level tasks in natural language. Common workflows include listing resources in a PE file, extracting specific resources to files, or applying changes like adding new icons or updating language IDs. The server translates your requests into ResourceHacker commands and returns results or logs.

How to install

# Prerequisites
Windows OS
Node.js 18+ (or newer)
ResourceHacker installed

# Step 1: Install dependencies
git clone https://github.com/Valerian7/ResourceHacker-mcp.git
cd ResourceHacker-mcp
npm install

# Step 2: Run the MCP server
node index.js

Configuration and usage notes

Configure your MCP clients to connect to the ResourceHacker MCP server using a stdio-based setup that launches the server script with Node.js. Provide the full path to ResourceHacker.exe via the RESOURCE_HACKER_PATH environment variable.

The following configurations show how to wire Claude and Codex to the local server. Replace RESOURCE_HACKER_PATH and ResourceHacker-mcp_PATH with your actual installed locations.

{
  "mcpServers": {
    "resource_hacker_claude": {
      "command": "node",
      "args": [
        "ResourceHacker-mcp_PATH\\ResourceHacker-mcp\\index.js"
      ],
      "env": {
        "RESOURCE_HACKER_PATH": "RESOURCE_HACKER_PATH\\ResourceHacker.exe"
      }
    }
  }
}
[mcp_servers.resource_hacker_claude]
type = "stdio"
command = "node"
args = ['ResourceHacker-mcp_PATH\\ResourceHacker-mcp\\index.js']

[mcp_servers.resource_hacker_claude.env]
RESOURCE_HACKER_PATH = 'RESOURCE_HACKER_PATH\\ResourceHacker.exe'

Available MCP commands you can perform with ResourceHacker MCP

You can run a range of resource operations via MCP. This section lists the supported commands and what they do.

  • list_resources: view all resources in a PE file without extracting anything
  • extract_resource: pull resources out of a PE file or resource file
  • add_resource: insert a new resource into a PE file
  • delete_resource: remove a resource from a PE file
  • modify_resource: update an existing resource in a PE file
  • compile_rc: compile a .rc script to a .res binary
  • change_language: set a new language ID for all resources
  • run_script: execute a script containing multiple ResourceHacker commands
  • get_help: display ResourceHacker command help

Resource mask format and examples

Resources are identified by a mask in the form: type,name,language. This lets you target specific resources or broad categories.

Examples include: ICON,, for all icons, BITMAP,128,0 for bitmap with ID 128, or ,,1033 for all English (United States) resources.

Quick function overview

The server operates on Windows and requires ResourceHacker.exe to be accessible. It uses JavaScript with Node.js 18+ and follows the MCP protocol to expose these commands to MCP clients.

Troubleshooting and notes

If the MCP server doesn’t appear in your MCP client, verify that the connection configuration uses absolute paths with double backslashes, Node.js is installed, dependencies are installed, and the MCP server process is running. Restart the MCP client completely if needed and check client logs for errors.

Common commands and examples

List resources in myapp.exe: 列表 myapp.exe 中的所有资源

Available tools

list_resources

List all resources contained in a PE file without extracting them, avoiding the creation of many temporary files.

extract_resource

Extract resources from a PE file or resource file to a specified output path with an optional resource mask and log file.

add_resource

Add a new resource to a PE file with options for output path, resource file, resource mask, mode, and logging.

delete_resource

Delete a resource from a PE file using a resource mask and an optional log file.

modify_resource

Modify an existing resource in a PE file using a new resource file and a resource mask.

compile_rc

Compile a .rc resource script into a binary .res file.

change_language

Change the language ID for all resources inside a PE file.

run_script

Run a script containing multiple ResourceHacker commands.

get_help

Display help information for ResourceHacker commands and topics.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational