Skip to content
Cursor

Dwarf Fortress (DFHack) for Cursor

io.github.alexanderolvera/dfhack-mcp

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

client:Cursor transport:stdio runtime:npm

Install Dwarf Fortress (DFHack) in Cursor

~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json

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

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

Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs

Dwarf Fortress (DFHack) in other clients