Dwarf Fortress (DFHack) for Grok
io.github.alexanderolvera/dfhack-mcp
MCP server exposing a live Dwarf Fortress fort to an AI agent as curated, semantic tools
client:Grok
transport:stdio
runtime:npm
Install Dwarf Fortress (DFHack) in Grok
.mcp.json (in your project root)
{
"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>"
}
}
}
}
Grok Build reads Claude Code's .mcp.json and Claude Desktop's config unchanged, so a server you have already set up there needs nothing new. The Grok web app and X integration do not take custom servers. Grok docs