Skip to main content

Dwarf Fortress (DFHack)

io.github.alexanderolvera/dfhack-mcp

v1.4.1Updated Jul 26, 2026stdio · npm

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

Install

Nothing to fill in: copy and run.

Run in your terminal

claude mcp add dfhack-mcp -e DFHACK_HOST=127.0.0.1 -e DFHACK_PORT=5000 -- npx -y [email protected]

Configuration

3 settings.

  • DFHACK_HOST
    Env var· optional
    Host running DFHack's remote RPC server. Defaults to 127.0.0.1.Default: 127.0.0.1
  • DFHACK_PORT
    Env var· optional
    Port for DFHack's remote RPC server. Defaults to 5000.Default: 5000
  • DFHACK_MCP_ACTUATORS
    Env var· optional
    Set to any value to expose the write tools. Unset, the server is read-only.

Listed in the official MCP Registry since Jul 26, 2026. Mirrored daily; last checked Nov 26, 2026.