Skip to content
Zed

Dwarf Fortress (DFHack) for Zed

io.github.alexanderolvera/dfhack-mcp

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

client:Zed transport:stdio runtime:npm

Install Dwarf Fortress (DFHack) in Zed

~/.config/zed/settings.json · windows: %APPDATA%\Zed\settings.json

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

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

Merge this into your existing settings object — do not replace the file. Zed docs

Dwarf Fortress (DFHack) in other clients