Table of Contents

MadaoMCP

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.

Features

Requirements

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

Get MadaoLLM

How to start

Install

  1. Buy MadaoMCP and update MadaoCore from the MINION store.
  2. Start FFXIV with FFXIVMinion as usual and log in. If the game was already running, press Reload.
  3. Keep the bot stopped for a minute: MadaoCore installs the Madao Tools by itself, or press Install MadaoTools (EXE). MadaoLLM.exe is then in LuaMods\MadaoExe.
  4. In that MadaoExe folder, make a text file named 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.
  5. Connect your AI app: Claude Code, Claude Desktop or another AI app.
  6. Turn the game link on (next section).
  7. Ask your AI: “What is my bot doing right now?”

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.

Claude Code

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.

Claude Desktop

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.

Other AI apps

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.

Good first things to try

What the AI can and cannot do

The AI can

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 AI cannot

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 mode (the Madao Planner)

“Plan” means the Madao Planner: the schedule that runs your plates one after another.

Your own profiles

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.

Several characters

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.

The MadaoLLM window

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.

The MCP page

Language

Control from other programs

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
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

Please Note

Troubleshooting

The MadaoLLM: line

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.

Common problems

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.

Start is refused

The answer says why. The usual reasons:

Applying a profile is refused

Uninstall

  1. Press Disable in game, or press Turn the game link off in the MadaoLLM window.
  2. Remove the madao-llm entry from %APPDATA%\Claude\claude_desktop_config.json (Claude Code: claude mcp remove --scope user madao-llm).
  3. MadaoCore keeps MadaoLLM.exe with the other Madao Tools. It does nothing while no AI app starts it and the game link is off.
  4. The folder LuaMods\MadaoLLMBridge now holds only data, including copies of profiles that were replaced. You may delete it too.

Support and Feedback

Questions and bug reports: MadaoSupport Discord.