I'm not sure where this fits in terms of the Boards here. It's not actually a mod and it's only sort of a tool. I've been working on a Factorio MCP server which lets you wire up Factorio to a language model and let it try and play Factorio. I'll be honest up front and say that I haven't had much success at getting an LLM to play so consider this a work in progress. But if anyone is interested in trying it I'd be curious how it works for you and what suggestions you might have. It's on Github at FactoMCP. So far I've only been using it with Claude Code but it should be easy to use it with any other coding agent you want to try.
My goal with this is that it controls the player character and builds the factory as you would, walking around, mining, crafting, placing, etc. The Lua API isn't really geared to this use case but the key functions are there so as long as it's using tools other than the run_lua() one it should be more or less following the rules. The biggest gap in the toolset I know of is that I need to write up some tools for understanding belt topology. Trying to understand what the belts are doing just by looking at the placement of the individual belt entities is kind of a lost cause.
I'm running everything on a single Mac laptop so it's easy to plumb it all together. Factorio is running a multiplayer server so it has an RCON server available. Claude Code is running in a terminal with the MCP code in the same folder. I'd expect that Codex or Aider or any number of other coding / agent tools that run on your laptop would work as well. Other setups like Claude in the web browser accessing it would require the MCP to be on a publicly available server somewhere which is possible but I haven't tried to set that up.
Also fair warning that at least with the Claude Code setup it burns through tokens. I've got the Pro plan and I regularly burns through my usage limits without always getting a lot done. One of my next steps will probably to try out some of the free tier models on OpenRouter and see how those do. If you have the hardware to run a local LLM that's a possibility too although I haven't personally tried it out.
Anyway, if you think you might be interested give it a try. Let me know if you run into issues or have suggestions. It's a pretty new project of mine and I'm not great at writing documentation.
Factorio MCP Server
Re: Factorio MCP Server
Interesting. How far Claude went into playing the game and building a factory, in your testing?
Re: Factorio MCP Server
You're building an AI agent to automate playing Factorio, an automation game. Cool! That's the spirit!


