MCP server exposing a live Dwarf Fortress fort to an AI agent as curated, semantic tools
Connect Runs on your machine
claude mcp add dfhack-mcp -e DFHACK_HOST=<DFHACK_HOST> -e DFHACK_PORT=<DFHACK_PORT> -e DFHACK_MCP_ACTUATORS=<DFHACK_MCP_ACTUATORS> -- npx -y [email protected]
{
"mcpServers": {
"dfhack-mcp": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"DFHACK_HOST": "<DFHACK_HOST>",
"DFHACK_PORT": "<DFHACK_PORT>",
"DFHACK_MCP_ACTUATORS": "<DFHACK_MCP_ACTUATORS>"
}
}
}
}
{
"mcpServers": {
"dfhack-mcp": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"DFHACK_HOST": "<DFHACK_HOST>",
"DFHACK_PORT": "<DFHACK_PORT>",
"DFHACK_MCP_ACTUATORS": "<DFHACK_MCP_ACTUATORS>"
}
}
}
}
{
"servers": {
"dfhack-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"DFHACK_HOST": "<DFHACK_HOST>",
"DFHACK_PORT": "<DFHACK_PORT>",
"DFHACK_MCP_ACTUATORS": "<DFHACK_MCP_ACTUATORS>"
}
}
}
}
Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.
Tools
This server runs locally, so its tools are listed by your MCP client once it starts.
Environment variables
| Name | Description |
|---|---|
DFHACK_HOSTOptional | Host running DFHack's remote RPC server. Defaults to 127.0.0.1. |
DFHACK_PORTOptional | Port for DFHack's remote RPC server. Defaults to 5000. |
DFHACK_MCP_ACTUATORSOptional | Set to any value to expose the write tools. Unset, the server is read-only. |
Details
| Package | [email protected] (NPM, stdio) |
| First published | 26 Jul 2026 |
| Last updated | 26 Jul 2026 |
| Registry name | io.github.alexanderolvera/dfhack-mcp |
More ai and media servers See all
Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.
