Factorio Ai Companion
F

Factorio Ai Companion

An MCP protocol service that establishes a two - way chat bridge between the Factorio game and Claude Code, enabling real - time communication through RCON and allowing players to interact with the AI assistant in the game.
2.5 points
3.4K

What is Factorio AI Companion?

Factorio AI Companion is an innovative game assistance tool that establishes a two-way communication channel between the Factorio automation construction game and Claude AI. Through this tool, players can use special commands to talk to the AI assistant in the game. The AI assistant can understand the game context, provide real-time suggestions, answer questions, and may even control game characters in future versions.

How to use Factorio AI Companion?

The usage process is divided into several simple steps: First, install the necessary dependencies and game mods. Then, configure the RCON remote control function of Factorio, start the game server, and finally run the MCP server to connect the AI assistant. After completing the setup, you can enter the '/companion' command in the game chat to talk to the AI.

Applicable scenarios

This tool is especially suitable for novice Factorio players who need game guidance or experienced players who need creative suggestions during complex automation design. Whether it's solving resource bottlenecks, optimizing production line layouts, or learning new game mechanisms, the AI assistant can provide valuable help.

Main Features

Two-way in-game chat
Players can directly talk to the AI assistant through the game chat interface, and the AI's responses will also be displayed in the game chat, providing a seamless interactive experience.
RCON automatic connection
The intelligent retry mechanism ensures a stable connection with the Factorio game, and it can automatically re - establish the connection even if the game restarts.
Claude Code integration
Deeply integrated with Claude Code through the MCP protocol, the AI can understand the game context and provide targeted suggestions.
Message history
The AI assistant can access the unread chat message history, understand the conversation context, and provide a coherent conversation experience.
Advantages
Get AI help without leaving the game for an immersive experience.
Relatively simple to set up, just follow the steps to complete the configuration.
Based on the mature MCP protocol, it is stable and reliable.
An open - source project with good community support.
Limitations
Currently only supports chat functions, and the AI cannot directly control the game.
Requires Factorio to run in multiplayer server mode.
The configuration steps for Windows, Linux, and Mac are slightly different.
Requires basic command - line operation knowledge.

How to Use

Install dependencies
Use the Bun package manager to install all the dependencies required for the project. Make sure the Bun runtime environment is installed.
Install game mods
Copy the Factorio mod files to the game's mods directory. Windows users can use the provided command, and other systems please refer to the instructions in the mod directory.
Configure Factorio RCON
Edit the Factorio configuration file to enable the remote control function and set the connection parameters. You can use the game's built - in hidden settings interface for configuration.
Start Factorio multiplayer game
You must start the multiplayer game mode (even for single - player games) because the RCON function is only available in server mode.
Start the MCP server
Run the MCP server program, and it will automatically connect to the Factorio game and wait for the AI assistant to connect.
Start the conversation
Enter the '/companion' command followed by your message in the Factorio game chat, and the AI assistant will respond to you.

Usage Examples

Newbie guidance
New players encounter difficulties in the game and don't know how to start automated production. They seek basic guidance from the AI assistant.
Optimization suggestions
Experienced players' factories experience traffic congestion or low production efficiency and need the AI to provide optimization solutions.
Blueprint design
Players need to design a complex production unit but lack design inspiration and ask the AI for design ideas.

Frequently Asked Questions

Why does my connection always fail?
What if the AI assistant doesn't respond to my message?
Which operating systems are supported?
Can the AI directly control my game character?
Is an internet connection required?

Related Resources

Factorio official website
The official website of the Factorio game, where you can get the latest game information and community resources.
Bun runtime
A fast all - in - one JavaScript runtime. This project uses Bun as the runtime environment.
Model Context Protocol
The official documentation of the MCP protocol, where you can learn about the technical details and specifications of the protocol.
Factorio learning environment
The inspiration source for this project, which provides a model and best practices for integrating Factorio with AI.
Claude Code
The Claude Code development environment of Anthropic, which supports MCP protocol extensions.

Installation

Copy the following command to your Client for configuration
Note: Your key is sensitive information, do not share it with anyone.

Alternatives

A
Assistant Ui
assistant - ui is an open - source TypeScript/React library for quickly building production - grade AI chat interfaces, providing composable UI components, streaming responses, accessibility, etc., and supporting multiple AI backends and models.
TypeScript
7.6K
5 points
N
Next Devtools MCP
The Next.js development tools MCP server provides Next.js development tools and utilities for AI programming assistants such as Claude and Cursor, including runtime diagnostics, development automation, and document access functions.
TypeScript
10.9K
5 points
P
Praisonai
PraisonAI is a production-ready multi-AI agent framework with self-reflection capabilities, designed to create AI agents to automate the solution of various problems from simple tasks to complex challenges. It simplifies the construction and management of multi-agent LLM systems by integrating PraisonAI agents, AG2, and CrewAI into a low-code solution, emphasizing simplicity, customization, and effective human-machine collaboration.
Python
10.4K
5 points
B
Blueprint MCP
Blueprint MCP is a chart generation tool based on the Arcade ecosystem. It uses technologies such as Nano Banana Pro to automatically generate visual charts such as architecture diagrams and flowcharts by analyzing codebases and system architectures, helping developers understand complex systems.
Python
10.7K
4 points
K
Klavis
Klavis AI is an open-source project that provides a simple and easy-to-use MCP (Model Context Protocol) service on Slack, Discord, and Web platforms. It includes various functions such as report generation, YouTube tools, and document conversion, supporting non-technical users and developers to use AI workflows.
TypeScript
21.0K
5 points
D
Devtools Debugger MCP
The Node.js Debugger MCP server provides complete debugging capabilities based on the Chrome DevTools protocol, including breakpoint setting, stepping execution, variable inspection, and expression evaluation.
TypeScript
9.2K
4 points
M
Mcpjungle
MCPJungle is a self-hosted MCP gateway used to centrally manage and proxy multiple MCP servers, providing a unified tool access interface for AI agents.
Go
0
4.5 points
N
Nexus
Nexus is an AI tool aggregation gateway that supports connecting multiple MCP servers and LLM providers, providing tool search, execution, and model routing functions through a unified endpoint, and supporting security authentication and rate limiting.
Rust
0
4 points
M
Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
34.6K
5 points
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
72.6K
4.3 points
N
Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
20.5K
4.5 points
G
Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
25.7K
4.3 points
F
Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
63.8K
4.5 points
U
Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
31.5K
5 points
G
Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
22.1K
4.5 points
M
Minimax MCP Server
The MiniMax Model Context Protocol (MCP) is an official server that supports interaction with powerful text-to-speech, video/image generation APIs, and is suitable for various client tools such as Claude Desktop and Cursor.
Python
48.5K
4.8 points
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2026AIBase