MadaoMCP lets the AI assistant you already use (Claude Desktop, Claude Code or any other MCP app) talk to your Madao bot.
Ask it what the bot is doing, tell it to start or stop, or let it make a new profile for you: a Planner schedule, or a gather, craft or fate profile.
The program that does this is called MadaoLLM (MadaoLLM.exe), so the windows and buttons below say MadaoLLM.
Examples of what you can type to your AI:
MadaoLLM has two halves. The in-game half is the MadaoLLM Bridge window inside MadaoCore. The other half is the small program MadaoLLM.exe, which your AI app starts by itself. You need both.
| Profile your AI makes | Needed to run it |
|---|---|
| Planner schedule (the Madao Planner) | Madao Plus (or the older MadaoCorePlus2) |
| Gather profile | Madao Gather |
| Craft profile | Madao Craft |
| Fate profile | MadaoFate |
MadaoLLM.exe into LuaMods\MadaoExe. Install MadaoTools (EXE) in the MadaoCore window starts it at once; Update MadaoTools (EXE) shows when a new version is out.MadaoLLM.exe is then in LuaMods\MadaoExe.madao_llm.toml and this one line, with the full path of your LuaMods folder between the single quotes: luamods_dir = '<LuaMods>' . This tells MadaoLLM where your game folder is.
In the steps below, <LuaMods> means the full path of your LuaMods folder.
MadaoLLM does nothing until you turn it on in game. Only you can do this, in one of two ways:
While the link is on, your AI and programs on your PC that use MadaoLLM.exe ctl can read the bot's status and start and stop it.
One switch covers every game client you have open. Press Disable when you are done.
Your own profiles stay off until you allow them (see Your own profiles).
The MadaoLLM Bridge window has a MadaoLLM: line. It should say connected (port N) within about 20 seconds. First it may say connecting to MadaoLLM and then reaching MadaoLLM (waiting for its first answer). That is normal: do not restart anything.
Run this once, in any terminal:
claude mcp add --scope user madao-llm -- "<LuaMods>\MadaoExe\MadaoLLM.exe"
--scope user makes MadaoLLM available in every folder you start Claude Code in.
Or skip the terminal: open the MadaoLLM window, go to the MCP page and press Start Claude (see The MadaoLLM window).
To remove it: claude mcp remove --scope user madao-llm.
Put this entry into %APPDATA%\Claude\claude_desktop_config.json (Claude Desktop: Settings, Developer, Edit Config opens it). Write each backslash twice in JSON. If the file already has an mcpServers block, add only the madao-llm part to it.
{
"mcpServers": {
"madao-llm": {
"command": "<LuaMods>\\MadaoExe\\MadaoLLM.exe"
}
}
}
Then fully quit Claude Desktop from the system tray (closing the window is not enough) and start it again.
Add the same JSON entry as above to your app's MCP settings. For Codex, use the MCP page of the MadaoLLM window.
If you do not want to keep madao_llm.toml, set the environment variable MADAO_LUAMODS_DIR to your LuaMods folder instead.
| Target | What it starts |
|---|---|
| plan | The Madao Planner, or resumes it after a stop |
| current | The mode selected in the MadaoCore window |
Only these modes can be started with current: Leve, Gather, Craft, Fate, Retainer, Ocean Fishing, Repair, Allied Society, Craft Trial, Beastmaster, Duty Support and Custom Delivery. Stop is never refused. It also stops the stock FFXIVMinion bot if that is running.
The bridge in MadaoCore knows a fixed list of commands. Replacing or editing MadaoLLM.exe cannot add a command or unlock anything the bridge refuses.
Profiles are the one thing that does not go through that list: MadaoLLM writes the file and the bot then does what the file says.
So every profile is checked before it is written (no Lua code, only safe plate types), an old file is copied to a backup folder before it is replaced, and MadaoCore checks the selected plan or profile against the safe list before it starts.
Still, install MadaoLLM only from a source you trust, and treat a profile file from a stranger like any other file from a stranger.
“Plan” means the Madao Planner: the schedule that runs your plates one after another.
Your AI can apply two kinds of profile. The rules differ.
To allow it, open the MadaoLLM Bridge window in game while the link is on and press Allow my own profiles too. Or tick Also let it apply profiles I made or downloaded myself before you press Enable. Stop applying my own profiles takes it back. Disable turns off the whole link.
What MadaoLLM does with one of your own profiles:
You can also select a profile yourself in game (the MadaoCore window or the Planner window) and then ask your AI to start. That needs no permission. The safe-list check still applies.
You can run more than one game client. Your AI lists them and asks you which character you mean. Starting, choosing a mode and applying a profile act on one character at a time. Your AI never picks one by itself. Stop without a character name stops every connected game client, so your AI says so before it does it.
MadaoLLM has a window of its own, so you can watch and control your bots without an AI app.
Open it from the MadaoLLM icon in the Madao main window, or run MadaoLLM.exe ui (for example from a desktop shortcut you make yourself). The icon works once your AI app has started MadaoLLM one time.
The icon click also turns the game link on, like Enable does, for every game client you have open. Your own profiles stay off. The icon's tooltip says all this.
To turn the link off, press Disable in game, or press Turn the game link off on the Settings page of the window (it asks first). Only the game can turn the link on: the window, your AI and MadaoLLM.exe ctl cannot.
The window follows the same rules as your AI: the same safe list and the same checks before anything starts.
The window and your AI app can be open at the same time. They share one connection to the game. Keep every copy of MadaoLLM.exe on the same version.
Documents\MadaoLLM-AI (the MadaoLLM tools, their guides and the rules your AI follows, in the window's language) and opens the app there. It changes nothing outside that folder.CLAUDE.md or AGENTS.md between two MadaoLLM marker lines. Your other text is kept, and a copy of every file it changes is saved first.Other programs on your PC can check, start and stop the bot through the MadaoLLM that your AI app runs:
MadaoLLM.exe ctl status MadaoLLM.exe ctl start --plan MadaoLLM.exe ctl start --current MadaoLLM.exe ctl stop
<LuaMods>\MadaoExe\MadaoLLM.exe, with its full path.--instance NAME picks one character (a character name, or an id that ctl status shows). start needs it when more than one game client is connected. --json prints the whole answer as JSON.--instance reaches every connected game client.ctl does not start a MadaoLLM of its own. The game link must be on.| Exit code | Meaning |
|---|---|
| 0 | Done |
| 1 | Failed: no game client answered, it took too long, or the command line was wrong. The reason is printed |
| 2 | Refused. The reason is printed |
| 3 | No running MadaoLLM found: open your AI app |
| 4 | The game link is off: click the MadaoLLM icon in the MadaoCore window, or press Enable in the MadaoLLM Bridge window |
MadaoLLM.exe itself sends nothing over the internet. It opens one connection on your own PC only (address 127.0.0.1, a port from 41780 to 41789). A random key makes sure only MadaoCore's bridge can use it.~, and your Windows account name is hidden in paths. If you do not want any of this, leave the game link off.MadaoLLM.exe on the same version, and keep MadaoCore up to date. A panel that needs a newer MadaoCore says “update MadaoCore from the store” and stays empty. The rest of the window still works.Look at the MadaoLLM: line in the MadaoLLM Bridge window first. A grey line under it says what to do.
| It says | What to do |
|---|---|
| disabled | Click the MadaoLLM icon in the MadaoCore window, or press Enable. |
| connecting to MadaoLLM | You just turned the link on. Wait a few seconds. |
| connected (port N) | All good. |
| reaching MadaoLLM (waiting for its first answer) | MadaoLLM holds the connection. Give it up to 20 seconds. Do not restart anything. |
| MadaoLLM not running | Nothing answers. Open or restart your AI app: it starts MadaoLLM. The bridge retries by itself. |
| token rejected -- restart MadaoLLM | Restart your AI app. If it still says so after about 10 seconds, press Disable, then Enable. |
| version mismatch -- update both | Read the grey line. Usually MadaoCore and MadaoLLM.exe are from different releases: update MadaoCore from the MINION store and press Reload. MadaoCore then updates MadaoLLM with the other Madao Tools. |
| MadaoLLM refused the exchange | Read the grey line. If it keeps happening, press Disable, then Enable. |
| Problem | What to do |
|---|---|
| “the in-game LLM Bridge is off” | Click the MadaoLLM icon in the MadaoCore window, or press Enable in the MadaoLLM Bridge window. |
| “madao_llm.toml was not found next to MadaoLLM.exe” | Make the madao_llm.toml file in <LuaMods>\MadaoExe (see Install), then restart your AI app. |
| “no running game client is answering” | Check that FFXIV and FFXIVMinion run and you are logged in. Right after a Reload, answers can take about ten seconds. |
| “An older MadaoLLM is still running and holds the game link” | An older MadaoLLM.exe is still open, usually started by another AI app. Close that AI app, then restart this one. |
| “MadaoLLM could not open a local connection … ports 41780 to 41789” | Something on your PC uses or blocks all those ports. Close programs that might use them, allow MadaoLLM.exe through your firewall, then restart your AI app. |
| No MadaoLLM Bridge in the FFXIVMinion menu | Your MadaoCore is older than MadaoLLM. Update MadaoCore from the MINION store, then press Reload or restart the client. |
| The menu says MadaoLLM Bridge (built-in) | An old MadaoLLMBridge add-on from a test version is still loaded, so the bridge stays off. Ask in the Discord below. |
| “the command was handed to the game client but no answer came back” | It may still have run. Ask your AI for the bot's status before you repeat a start or a stop. |
| Your AI shows no MadaoLLM tools | Fully quit Claude Desktop from the tray and start it again. Check the path in your madao-llm entry: it must point at MadaoLLM.exe in <LuaMods>\MadaoExe, with each backslash written twice. For Claude Code, remove the entry and add it again. |
| The window does not open, or says WebView2 is missing | Install Microsoft's “WebView2 Runtime” (on Windows 10: the “Evergreen Standalone Installer”), then open the window again. |
| The window says “Reconnecting…” | The MadaoLLM that held the connection closed and another one takes over. Wait a few seconds. If it stays, press Disable, then Enable in game. |
| A panel says “update MadaoCore from the store” | Your MadaoCore is older than MadaoLLM. Update it, then press Reload. |
The answer says why. The usual reasons:
%APPDATA%\Claude\claude_desktop_config.json (Claude Code: claude mcp remove --scope user madao-llm).MadaoLLM.exe with the other Madao Tools. It does nothing while no AI app starts it and the game link is off.LuaMods\MadaoLLMBridge now holds only data, including copies of profiles that were replaced. You may delete it too.Questions and bug reports: MadaoSupport Discord.