MacroWin MCP server setup
Connect Claude Code, Claude Desktop, Codex, ChatGPT, Cursor, Gemini CLI, VS Code with Copilot, Windsurf or any other MCP app to MacroWin. The server runs on your own Windows PC: the app starts MacroWin.exe --mcp.
What the server is
MacroWin's MCP server runs on your PC, not on the internet. An AI app starts it as a local program over stdio:
| Setting | Value |
|---|---|
| Server name | macrowin |
| Type | stdio (a program the app starts) |
| Command | C:\Users\<you>\AppData\Local\Programs\MacroWin\current\MacroWin.exe |
| Arguments | --mcp |
There is no address to connect to: macrowin.org has no MCP endpoint, so don't add MacroWin as an HTTP or SSE server. MacroWin.exe --mcp passes the app's messages to the MacroWin running on the same PC, and starts MacroWin first when it isn't running. It works on Windows only, for the Windows user who installed MacroWin.
Two steps on the PC first
These happen in MacroWin itself. An AI agent setting this up can't do them: it should ask the person at the PC.
- Install MacroWin from the download page and start it once.
- In MacroWin, open Settings > AI > AI apps on this PC and switch on Let AI apps on this PC use MacroWin. It's off until you turn it on.
The first time an app connects, MacroWin asks whether to allow it. The app waits up to 50 seconds for the answer; after that it gets a message to try again once you've answered.
The quick way
In MacroWin, open Help > Ask your AI and pick your app. Add MacroWin to ... shows the settings file it will change and changes it only when you click Change it, after keeping a copy of the file as it was. For Claude Code and Windsurf it gives Copy command or Copy config instead, because MacroWin doesn't change their files itself.
Everything below is the same setup by hand.
Find MacroWin.exe
The installer puts it here, and updates keep the same path:
C:\Users\<you>\AppData\Local\Programs\MacroWin\current\MacroWin.exe
Use the MacroWin.exe in the current folder. The one a folder up is only a launcher, and an AI app can't talk to MacroWin through it. To print the full path in PowerShell:
Join-Path $env:LOCALAPPDATA 'Programs\MacroWin\current\MacroWin.exe'
In the settings files below, replace <you> with your Windows user name. In JSON every backslash is written twice.
Claude Code
In PowerShell:
claude mcp add --scope user macrowin -- "$env:LOCALAPPDATA\Programs\MacroWin\current\MacroWin.exe" --mcp
In Git Bash:
claude mcp add --scope user macrowin -- "$LOCALAPPDATA\Programs\MacroWin\current\MacroWin.exe" --mcp
Start a new Claude Code session: /mcp lists macrowin. For one project only, leave out --scope user, or put the JSON from Claude Desktop in .mcp.json in that project's folder.
Claude Desktop
Open Claude Desktop's Settings > Developer > Edit Config, or the file %APPDATA%\Claude\claude_desktop_config.json, and add MacroWin under mcpServers, next to any servers already there:
{
"mcpServers": {
"macrowin": {
"command": "C:\\Users\\<you>\\AppData\\Local\\Programs\\MacroWin\\current\\MacroWin.exe",
"args": ["--mcp"]
}
}
}
Quit Claude Desktop from its tray icon and start it again.
Codex and the ChatGPT desktop app
They share one settings file, %USERPROFILE%\.codex\config.toml. Add MacroWin with Codex's own command:
codex mcp add macrowin -- "$env:LOCALAPPDATA\Programs\MacroWin\current\MacroWin.exe" --mcp
Or add these lines to the file:
[mcp_servers.macrowin]
command = 'C:\Users\<you>\AppData\Local\Programs\MacroWin\current\MacroWin.exe'
args = ["--mcp"]
In the ChatGPT desktop app you can also use Settings > MCP servers > Add server (STDIO) with the command and argument above. Then start a new Codex session (/mcp lists macrowin), or in ChatGPT open Settings > MCP servers and select Restart.
Cursor
Add MacroWin to %USERPROFILE%\.cursor\mcp.json, or to .cursor\mcp.json in one project's folder:
{
"mcpServers": {
"macrowin": {
"type": "stdio",
"command": "C:\\Users\\<you>\\AppData\\Local\\Programs\\MacroWin\\current\\MacroWin.exe",
"args": ["--mcp"]
}
}
}
Restart Cursor if MacroWin doesn't show under its MCP servers.
Gemini CLI
gemini mcp add --scope user macrowin "$env:LOCALAPPDATA\Programs\MacroWin\current\MacroWin.exe" -- --mcp
Or add the JSON from Claude Desktop to %USERPROFILE%\.gemini\settings.json. Start Gemini CLI again: /mcp lists macrowin.
VS Code and GitHub Copilot
Add the JSON from Claude Desktop to %USERPROFILE%\.copilot\mcp-config.json, which VS Code's agents and the Copilot CLI both read, or to .mcp.json in one project's folder. Start a new chat: VS Code lists MacroWin under MCP Servers.
Windsurf
Add the JSON from Claude Desktop to %USERPROFILE%\.codeium\windsurf\mcp_config.json, then refresh Windsurf's MCP servers or restart Windsurf.
Other apps
Most AI apps take the same JSON in their MCP settings, or ask for a program to start (stdio): give them the command MacroWin.exe from the current folder and the argument --mcp. Restart the app, then ask it about your macros.
Check that it works
Ask the app "Which macros do I have in MacroWin?". It should call MacroWin's list_macros tool and answer with your macros. If you just set things up, MacroWin may ask you first whether to allow the app.
What an AI app can do
It gets the same actions as MacroWin's own assistant. Reading answers at once: macros, profiles, modes, variables, panels and the steps MacroWin has, with password fields shown as dots. Every change, such as a new or edited macro, only proposes it: a card appears in MacroWin's assistant panel, or a Windows notification when the editor is closed, and nothing changes until you click Confirm. The app can ask MacroWin what you did with each card (the get_proposal_status tool).
One app can have at most 10 cards waiting at once and make up to 120 calls a minute. Revoke in Settings > AI > Connected apps takes an app's access away, and App lock shuts every app out while MacroWin is locked.
When it doesn't connect
The app shows MacroWin's answer in its chat or its MCP log:
| What the app shows | What to do |
|---|---|
| MacroWin doesn't let AI apps use it yet | Switch on Let AI apps on this PC use MacroWin in Settings > AI. |
| MacroWin asked the user whether ... may use it | Answer the question in MacroWin, then ask the app again. |
| The user didn't allow ... to use MacroWin | Allow it in Settings > AI > Connected apps. |
| MacroWin is locked | Unlock MacroWin, then try again. |
| MacroWin is still starting and loading its macros | Wait a moment and try again. |
| Windows couldn't tell which program started this connection | The command points at a launcher. Use MacroWin.exe in the current folder, started by the AI app itself. |
| MacroWin couldn't be started, so its MCP server isn't available | Start MacroWin from the Start menu, then restart the app's connection to it. |
| The server failed or shows no tools | Check the command's path with Find MacroWin.exe and that the argument is --mcp, then restart the app. |
More on AI in MacroWin, including your own AI provider and AI steps in macros: AI in MacroWin.