AutoHotkey v2 MCP Server logo

AutoHotkey v2 MCP Server

Community
TrueCrimeDev

AutoHotkey v2 MCP Server with prompts, code completion, and diagnostics

PublisherTrueCrimeDev
Repositoryahk-mcp
LanguageTypeScript
Forks
6
Stars
38
Available tools
0
Transport typestdio
Categories
Links
  • Connect tools to AI workflows

    AutoHotkey v2 MCP Server exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    38 stars and 6 forks from the linked repository.

AutoHotkey v2 MCP Server

A TypeScript MCP server for AutoHotkey v2 development. It provides script analysis, file operations, documentation search, and script execution tools for MCP clients such as Claude Desktop.

Features Install Run Development

Architecture

AHK v2 MCP Agent Workflow

Highlights

  • 25+ AHK_* tools for AutoHotkey workflows
  • Focused file discovery and active-file aware operations
  • Script execution with process tracking and window detection
  • Local AutoHotkey validation and diagnostics tools
  • Built-in AutoHotkey docs and prompt/context helpers
  • Stdio and Streamable HTTP transports (stateful or stateless), plus legacy SSE endpoints
  • Opt-in bearer-token auth and DNS-rebinding protection for HTTP mode

Requirements

  • Node.js 18+
  • npm
  • AutoHotkey v2 (for run/validate tools)

Installation

bash
git clone https://github.com/truecrimedev/ahk-mcp.git
cd ahk-mcp
npm install
npm run build

Run

bash
npm start

Development mode:

bash
npm run dev

Smoke test:

bash
npm run smoke:mcp

HTTP Mode and Environment Variables

npm start speaks stdio (Claude Desktop). To expose Streamable HTTP on /mcp (plus legacy SSE endpoints), set PORT or pass --sse:

bash
npm run start:sse

Behavior is controlled with environment variables:

VariableDefaultPurpose
PORT3000HTTP port; setting it enables HTTP mode
AHK_MCP_STATELESSofftrue runs /mcp in the MCP spec's stateless mode: no mcp-session-id, a fresh transport per POST, safe behind load balancers
AHK_MCP_AUTH_TOKENunsetWhen set, every HTTP request must send Authorization: Bearer <token>; unset means no authentication
AHK_MCP_ALLOWED_HOSTSunsetComma-separated Host allowlist; enables DNS-rebinding protection (e.g. localhost:3000,127.0.0.1:3000)
AHK_MCP_ALLOWED_ORIGINSunsetComma-separated Origin allowlist for browser clients
AHK_MCP_TASK_RETENTION_MS1800000How long finished task records are kept (30 min); 0 keeps them until process exit
AHK_MCP_LOG_LEVELwarnerror, warn, info, or debug

Security note: the tool surface includes file writes and process execution. If the HTTP port is reachable by anything other than your own machine, set AHK_MCP_AUTH_TOKEN (e.g. openssl rand -hex 32) and the two allowlists — by default the endpoints accept every request.

See docs/MCP_TRANSPORT_COMPATIBILITY.md for the session flow, stateless mode details, and cURL examples.

Claude Desktop Configuration

Add this to claude_desktop_config.json:

json
{
  "mcpServers": {
    "ahk": {
      "command": "C:\\Program Files\\nodejs\\node.exe",
      "args": ["C:\\Users\\YourUsername\\path\\to\\ahk-mcp\\dist\\index.js"],
      "env": {
        "NODE_ENV": "production",
        "AHK_MCP_LOG_LEVEL": "warn"
      }
    }
  }
}

Use absolute paths and escape backslashes in JSON.

Configure AutoHotkey Path and Startup Behavior

Use AHK_Config to set the executable path and non-blocking startup behavior:

json
{
  "action": "set",
  "ahkPath": "C:\\Users\\YourUsername\\Documents\\Design\\Coding\\AutoHotkey\\bin\\AutoHotkey64.exe",
  "waitForStdoutLine": true,
  "stdoutLineTimeoutMs": 300
}

This is used by AHK_Run (and AHK_Cloud_Validate path resolution).

Core Tools

  • AHK_Smart_Orchestrator: reduce multi-step edit/analysis workflows
  • AHK_File_List, AHK_File_View, AHK_File_Edit: file operations
  • AHK_Analyze, AHK_Diagnostics: analysis and diagnostics
  • AHK_Run: execute scripts (wait, non-wait, window detection)
  • AHK_Cloud_Validate: local execution-based validation
  • AHK_Doc_Search, AHK_Tools_Search: documentation and tool lookup
  • AHK_Config: MCP server configuration

Development Commands

bash
npm run build
npm run clean
npm run lint
npm run test
npm run test:integration
npm run smoke:mcp

Documentation

  • docs/README.md
  • docs/QUICK_START.md
  • docs/QUICKREFERENCE.md
  • docs/MCP_TRANSPORT_COMPATIBILITY.md
  • docs/ARCHITECTURE_DIAGRAMS.md
  • docs/RELEASE_NOTES.md

Contributing

See CONTRIBUTING.md and AGENTS.md.

License

MIT. See LICENSE.

Installation

TypingMind
{
  "mcpServers": {
    "ahk-mcp": {
      "command": "node",
      "args": [
        "dist/index.js"
      ]
    }
  }
}

Use AutoHotkey v2 MCP Server MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once AutoHotkey v2 MCP Server is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add AutoHotkey v2 MCP Server as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the AutoHotkey v2 MCP Server MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "ahk-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "ahk-server-v2"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the AutoHotkey v2 MCP Server MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the AutoHotkey v2 MCP Server MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use AutoHotkey v2 MCP Server to help me with this task?
AutoHotkey v2 MCP Server
Sure. I read it.
Here is what I found using AutoHotkey v2 MCP Server.

Frequently asked questions

What is the AutoHotkey v2 MCP Server MCP server used for?

AutoHotkey v2 MCP Server is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use AutoHotkey v2 MCP Server MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use AutoHotkey v2 MCP Server with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use AutoHotkey v2 MCP Server MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With AutoHotkey v2 MCP Server connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect AutoHotkey v2 MCP Server MCP to TypingMind?

AutoHotkey v2 MCP Server runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does AutoHotkey v2 MCP Server MCP provide in TypingMind?

AutoHotkey v2 MCP Server exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use AutoHotkey v2 MCP Server MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If AutoHotkey v2 MCP Server requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇