Agentβ™₯︎Age
Catalog

Dwarf Fortress (DFHack)

Official

by alexanderolvera Β· Lua

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

dfhack-mcp (io.github.alexanderolvera/dfhack-mcp)

This MCP server exposes a running Dwarf Fortress fort to an AI agent through curated, semantic tools. It provides a live, read-only view by default so an MCP client can ask about the fort’s condition and receive responses grounded in in-game data.

πŸ› οΈ Key Features

  • MCP server for a β€œlive window” into a Dwarf Fortress fort
  • Curated, semantic tools for agent interaction
  • 37 sensor and reference tools for observing the game
  • Actuators that can change the fort, including queue manager orders and quickfort blueprints
  • Labor assignment and sound/alerts-related changes (as implied by the actuator portion)

πŸš€ Use Cases

  • Ask an agent β€œhow’s my fort doing?” using an MCP client
  • Get plain-language early warnings and assessments of happiness, threats, stocks, jobs, health, and defenses from the running game
  • Use queued orders, quickfort blueprints, and labor assignment when changes are needed

⚑ Developer Benefits

  • Built for Model Context Protocol (MCP) clients such as Claude
  • Tooling split between sensors/reference (observe) and actuators (modify)
  • Semantic, curated access to fort data rather than raw scraping

⚠️ Limitations

  • Read-only by default; fort-changing actions require actuator use
  • The provided excerpt does not enumerate all tools or actuator capabilities beyond the named categories