NestDaddy

Dwarf Fortress (DFHack)

io.github.alexanderolvera/dfhack-mcp ยท v1.4.1

MCP server exposing a live Dwarf Fortress fort to an AI agent as curated, semantic tools

Connect Runs on your machine

Terminal
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]
claude_desktop_config.json
{
  "mcpServers": {
    "dfhack-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "DFHACK_HOST": "<DFHACK_HOST>",
        "DFHACK_PORT": "<DFHACK_PORT>",
        "DFHACK_MCP_ACTUATORS": "<DFHACK_MCP_ACTUATORS>"
      }
    }
  }
}
~/.cursor/mcp.json
{
  "mcpServers": {
    "dfhack-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "DFHACK_HOST": "<DFHACK_HOST>",
        "DFHACK_PORT": "<DFHACK_PORT>",
        "DFHACK_MCP_ACTUATORS": "<DFHACK_MCP_ACTUATORS>"
      }
    }
  }
}
.vscode/mcp.json
{
  "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

NameDescription
DFHACK_HOST
Optional
Host running DFHack's remote RPC server. Defaults to 127.0.0.1.
DFHACK_PORT
Optional
Port for DFHack's remote RPC server. Defaults to 5000.
DFHACK_MCP_ACTUATORS
Optional
Set to any value to expose the write tools. Unset, the server is read-only.

Details

Package[email protected] (NPM, stdio)
First published26 Jul 2026
Last updated26 Jul 2026
Registry nameio.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.