MCP directory
DF

Dwarf Fortress (DFHack)

by github.com/alexanderolvera · v1.4.1 · updated Jul 26, 2026

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

npm

Run it locally

Install the package and point your AI client at it.

Environment variables

  • DFHACK_HOST

    Host running DFHack's remote RPC server. Defaults to 127.0.0.1.

  • DFHACK_PORT

    Port for DFHack's remote RPC server. Defaults to 5000.

  • DFHACK_MCP_ACTUATORS

    Set to any value to expose the write tools. Unset, the server is read-only.

More MCP servers