AI assistants (MCP)
The KMacros Windows app includes a Model Context Protocol (MCP) server. Connect an assistant such as Claude and it can explain KMacros, work out why your phone will not connect, put text or pictures on your keys, and, if you allow it, set up what your keys do.
The server runs only on your PC, under your own Windows account, and talks to the KMacros app through the local API. Nothing is sent to ELT Software, and the server cannot press keys. It can read and change what a key does only after you tick a separate permission in the app (see below).
What it can do
| Tool | What it does |
|---|---|
kmacros_help | Facts about KMacros (what it is, key types, steps, troubleshooting, privacy, Pro, file locations) and where to find more. |
kmacros_diagnose_connection | Checks the usual reasons a phone cannot connect: app running, port, Windows Firewall rule, Public networks, linked phones, recent log warnings. Works even when the local API is off. |
kmacros_app_status, kmacros_read_logs | Whether the app and its local API are up, and the latest log lines. |
kmacros_status, kmacros_list_keys | Linked phones and every key, with the pixel size to draw at. |
kmacros_set_key_text, kmacros_set_key_image, kmacros_set_key_animation | Put text, a picture, or an animation on a key. |
kmacros_clear_key_image, kmacros_clear_all_images | Put keys back to normal. |
kmacros_get_key_action, kmacros_set_key_action, kmacros_clear_key_action | Read, replace, or remove the steps a key runs. Off until you allow it. |
kmacros_list_keyboards, kmacros_add_key, kmacros_update_key, kmacros_remove_key | See your keyboards, and add keys, change their label, icon, color, or place, or move them to the Tray. Off until you allow it, and only while the phone is connected. |
kmacros_wait_for_events | Listen for key presses and changes for a few seconds. |
The tools that show things on keys need Enable local API ticked on the app's Scripts & API screen. The help and diagnosis tools always work.
Letting an assistant change what keys do
Tick Let scripts and assistants change what keys do on the Scripts & API screen. It is off by default, and it is separate from Enable local API. Once it is on, an assistant can set up keys for you, for example by asking "make the Build key run my build script and show whether it passed", or "add keys to my keyboard for my three favorite sites". New and changed keys show up on your phone at once, and you can undo each change in the phone's editor.
The steps a key runs can start programs and scripts on your PC, with your Windows permissions, whenever the key is pressed. Turn the permission on only for assistants you trust, ask the assistant to tell you what it is setting, and check the result in the key inspector. Every change appears in the activity log on the Scripts & API screen. Untick the box to stop all changes.
Set it up
You don't need a token or a separate install. The server is KMacros.exe --mcp, and it reads the app's own settings. The Scripts & API screen in the PC app shows the exact lines for your PC with Copy buttons.
Claude Code
claude mcp add kmacros -- "C:\Program Files\KMacros\KMacros.exe" --mcp
Claude Desktop and other assistants
Add this to the assistant's MCP settings (for Claude Desktop, claude_desktop_config.json), using the path shown in the app:
{
"mcpServers": {
"kmacros": {
"command": "C:\Program Files\KMacros\KMacros.exe",
"args": ["--mcp"]
}
}
}
Restart the assistant, then try: “My phone won't connect to KMacros. Can you find out why?” or “Show the time on my Clock key.”
Where to find more
- Getting started, FAQ, Support
- Scripting and the local API, the same operations for your own programs
- KMacros for Windows privacy policy