Skip to content
Claude Desktop

Dwarf Fortress (DFHack) for Claude Desktop

io.github.alexanderolvera/dfhack-mcp

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

client:Claude Desktop transport:stdio runtime:npm

Install Dwarf Fortress (DFHack) in Claude Desktop

~/Library/Application Support/Claude/claude_desktop_config.json · windows: %APPDATA%\Claude\claude_desktop_config.json

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "dfhack-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "dfhack-mcp"
      ],
      "env": {
        "DFHACK_HOST": "<DFHACK_HOST>",
        "DFHACK_PORT": "<DFHACK_PORT>",
        "DFHACK_MCP_ACTUATORS": "<DFHACK_MCP_ACTUATORS>"
      }
    }
  }
}

Settings → Developer → Edit Config opens this file. Restart the app after saving. Claude Desktop docs

Dwarf Fortress (DFHack) in other clients