factorio-docs-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@factorio-docs-mcpcompare 'LuaPlayer' between versions 1.1 and 2.0"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
factorio-docs-mcp
同步 Factorio 官方 mod API 文档到本地 SQLite 索引,并通过 MCP server 为 mod 开发与跨大版本升级迁移提供检索 + 版本对比能力。
能力
检索:查询 runtime / prototype API(类、方法、属性、事件、define、prototype)与散文文档
版本对比:对比任意 API 条目在两个版本间的差异(成员增删 / 类型变更)
迁移清单:从官方 changelog 提取 Modding / Scripting 变更,标记 breaking 级别(如"defines.direction 从 8 个增至 16 个,存储值需乘 2")
离线:所有数据落地本地,同步增量进行,使用时无需联网
Related MCP server: wiki-mcp-hub
数据源(仅官方)
lua-api.factorio.com:runtime-api.json/prototype-api.json/archive.zip(多版本)wube/factorio-data:含changelog.txt
安装
npm install -g factorio-docs-mcp
# 或用 npx 直接运行要求:
Node.js ≥ 22(依赖内置
node:sqlite)git(
fdocs sync需调用 git 同步 factorio-data 仓库,请确保git在PATH中)
使用
1. 同步文档
fdocs sync # 增量同步缺失版本
fdocs sync --rebuild # 重建全部索引同步版本范围由数据目录下 config.json 的 versions 模式控制,默认 ["1.1.110", "2.0.*", "2.1.*"]。
2. 数据目录
环境变量
FACTORIO_DOCS_DATA优先否则用平台用户数据目录(Windows:
%APPDATA%/factorio-docs-mcp)
<数据目录>/
├── raw/<版本>/ # 原始下载(可随时重建)
└── index.db # SQLite 索引3. 接入 MCP
Claude Code / Claude Desktop 配置:
{
"mcpServers": {
"factorio-docs": { "command": "fdocs-mcp" }
}
}MCP 工具(8 个)
工具 | 用途 |
| 列出已索引版本 |
| 按名称/描述模糊搜索 API 条目 |
| 精确获取某条目完整定义(未命中返回建议) |
| 对比某条目在两版本间的差异 |
| 全文检索散文文档 |
| 按 slug 获取整篇文档 |
| 列出两版本间的迁移/breaking 变更清单 |
| 检查或触发同步 |
架构
三层严格隔离:sync/(只写 raw/)→ index/(读写 index.db)→ mcp/(只读 index.db)。检索经 SearchProvider 接口(v1 = SQLite FTS5,预留向量扩展)。数据保真:api_entries.data 原样存储官方 JSON 子树。
开发
npm test # Vitest
npm run typecheck # tsc --noEmit
npm run lint # biome check
npm run build # tsup(双 bin)详见 AGENTS.md 与设计文档 docs/superpowers/specs/2026-07-29-factorio-docs-mcp-design.md。
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityBmaintenanceIndexes documentation sites by base URL and serves keyword search, optional semantic search, and Markdown page retrieval as MCP tools, all from a single SQLite file.Last updated
- Flicense-qualityCmaintenanceEnables lexical search over local Markdown wiki folders using SQLite FTS5, with MCP tools for querying and managing wiki indices.Last updated
- Alicense-qualityDmaintenanceSelf-hosted documentation and code indexing with MCP integration.Last updated17MIT
- Flicense-qualityDmaintenanceScrapes, stores, and searches documentation locally, enabling AI assistants to access and query documentation via MCP.Last updated4
Related MCP Connectors
MCP-native open-source Notion alternative: read & write pages, databases and kanban boards.
Search your AI chat history (ChatGPT, Claude, Codex) from any MCP client. Remote, private, read-only
MCP server for AgentDocs (agentdocs.eu): read, search, write, comment on & share Markdown docs.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/hjfmailbox/factorio-docs-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server