mcpbeat

Dwarf Fortress (DFHack) MCP Server

io.github.alexanderolvera/dfhack-mcp
local only

Dwarf Fortress (DFHack) runs on your own machine — the client starts it, so there is no endpoint to ping. 120 installs a week from npm. Last commit 26 Jul 2026.

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

Installs per day peak 245 · avg 35 · -86% w/w
a month agotoday
120
Installs / week
npm · dfhack-mcp
0
Stars
9 open issues
26 Jul 2026
Last commit
0 releases in 90 days
ISC
License
Lua

Connect this server

This server runs on your own machine — install it with the package manager and the client starts it for you. Package name taken from the official registry entry.

run in your terminal
claude mcp add dfhack-mcp -- npx -y dfhack-mcp
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "dfhack-mcp": {
      "args": [
        "-y",
        "dfhack-mcp"
      ],
      "command": "npx"
    }
  }
}
~/.codex/config.toml
[mcp_servers.dfhack-mcp]
command = "npx"
args = ["-y", "dfhack-mcp"]
.cursor/mcp.json
{
  "mcpServers": {
    "dfhack-mcp": {
      "args": [
        "-y",
        "dfhack-mcp"
      ],
      "command": "npx"
    }
  }
}
.vscode/mcp.json
{
  "mcpServers": {
    "dfhack-mcp": {
      "args": [
        "-y",
        "dfhack-mcp"
      ],
      "command": "npx"
    }
  }
}

Dwarf Fortress (DFHack) — questions

Answers built from our own checks of this server.

Why is there no uptime for Dwarf Fortress (DFHack)?
Dwarf Fortress (DFHack) runs on your own machine over stdio — there is no network address to reach, so uptime cannot be measured for it by anyone. What can be measured is adoption: the npm package dfhack-mcp was installed 120 times last week.
How do I connect Dwarf Fortress (DFHack)?
Copy the ready config from this page — we generate it for Claude Code, Claude Desktop, Codex, Cursor and VS Code, each with the file path that client actually reads. It runs locally, so the command pulls dfhack-mcp straight from npm; nothing to host, nothing to sign up for.
How many people use Dwarf Fortress (DFHack)?
The npm package dfhack-mcp was installed 120 times in the last week. Week over week that is -86%. We show installs rather than GitHub stars on purpose: a star is a bookmark, an install is someone actually running it.
Is Dwarf Fortress (DFHack) open source?
Yes — it is published under the ISC licence, written in Lua, 0 stars on GitHub and 9 open issues. The source link is on this page, so you can read exactly what it does with your data before you connect it.