ahk-mcp
AutoHotkey v2 MCP Server
Ein TypeScript-MCP-Server für die AutoHotkey-v2-Entwicklung. Er bietet Skriptanalyse, Dateioperationen, Dokumentsuche und Skriptausführungswerkzeuge für MCP-Clients wie Claude Desktop.
Architektur

Related MCP server: Hotkeyless AHK MCP
Highlights
25+
AHK_*-Werkzeuge für AutoHotkey-WorkflowsGezielte Dateisuche und Operationen, die die aktive Datei berücksichtigen
Skriptausführung mit Prozessverfolgung und Fenstererkennung
Lokale AutoHotkey-Validierungs- und Diagnosewerkzeuge
Integrierte AutoHotkey-Dokumentation sowie Prompt-/Kontext-Helfer
Stdio- und Streamable-HTTP-Transports (zustandsbehaftet oder zustandslos), plus Legacy-SSE-Endpunkte
Optionale Bearer-Token-Authentifizierung und DNS-Rebinding-Schutz für den HTTP-Modus
Anforderungen
Node.js 18+
npm
AutoHotkey v2 (für Ausführungs-/Validierungswerkzeuge)
Installation
git clone https://github.com/truecrimedev/ahk-mcp.git
cd ahk-mcp
npm install
npm run buildAusführen
npm startEntwicklungsmodus:
npm run devSmoke-Test:
npm run smoke:mcpHTTP-Modus und Umgebungsvariablen
npm start verwendet stdio (Claude Desktop). Um Streamable HTTP auf /mcp
(zusätzlich zu den Legacy-SSE-Endpunkten) bereitzustellen, setzen Sie PORT oder übergeben Sie --sse:
npm run start:sseDas Verhalten wird über Umgebungsvariablen gesteuert:
Variable | Standard | Zweck |
|
| HTTP-Port; das Setzen aktiviert den HTTP-Modus |
| aus |
|
| nicht gesetzt | Wenn gesetzt, muss jede HTTP-Anfrage |
| nicht gesetzt | Kommagetrennte |
| nicht gesetzt | Kommagetrennte |
|
| Wie lange abgeschlossene Aufgabenaufzeichnungen aufbewahrt werden (30 Min.); |
|
|
|
Sicherheitshinweis: Die Werkzeugoberfläche umfasst Dateischreibvorgänge und Prozessausführung. Wenn
der HTTP-Port von etwas anderem als Ihrem eigenen Rechner erreichbar ist, setzen Sie
AHK_MCP_AUTH_TOKEN (z. B. openssl rand -hex 32) sowie die beiden Zulassungslisten — standardmäßig
akzeptieren die Endpunkte jede Anfrage.
Siehe docs/MCP_TRANSPORT_COMPATIBILITY.md für den Sitzungsablauf, Details zum zustandslosen Modus
und cURL-Beispiele.
Claude-Desktop-Konfiguration
Fügen Sie dies zu claude_desktop_config.json hinzu:
{
"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"
}
}
}
}Verwenden Sie absolute Pfade und maskieren Sie Backslashes in JSON.
AutoHotkey-Pfad und Startverhalten konfigurieren
Verwenden Sie AHK_Config, um den ausführbaren Pfad und das nicht blockierende Startverhalten festzulegen:
{
"action": "set",
"ahkPath": "C:\\Users\\YourUsername\\Documents\\Design\\Coding\\AutoHotkey\\bin\\AutoHotkey64.exe",
"waitForStdoutLine": true,
"stdoutLineTimeoutMs": 300
}Dies wird von AHK_Run (und der Pfadauflösung von AHK_Cloud_Validate) verwendet.
Kernwerkzeuge
AHK_Smart_Orchestrator: Reduziert mehrstufige Bearbeitungs-/Analyse-WorkflowsAHK_File_List,AHK_File_View,AHK_File_Edit: DateioperationenAHK_Analyze,AHK_Diagnostics: Analyse und DiagnoseAHK_Run: Skripte ausführen (warten, nicht warten, Fenstererkennung)AHK_Cloud_Validate: Validierung auf Basis lokaler AusführungAHK_Doc_Search,AHK_Tools_Search: Dokumentations- und WerkzeugsucheAHK_Config: MCP-Serverkonfiguration
Entwicklungsbefehle
npm run build
npm run clean
npm run lint
npm run test
npm run test:integration
npm run smoke:mcpDokumentation
docs/README.mddocs/QUICK_START.mddocs/QUICKREFERENCE.mddocs/MCP_TRANSPORT_COMPATIBILITY.mddocs/ARCHITECTURE_DIAGRAMS.mddocs/RELEASE_NOTES.md
Mitwirken
Siehe CONTRIBUTING.md und AGENTS.md.
Lizenz
MIT. Siehe LICENSE.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceA comprehensive utility MCP server that enables AI assistants to execute system commands, manage files, integrate with Google Sheets and Tasks, perform AI-powered text processing, and load dynamic prompts from markdown files.MIT
- AlicenseAqualityAmaintenanceMCP server for Hotkeyless AHK HTTP API. It lets your agent control your whole computer using hotkeys.42MIT
- AlicenseNot gradedqualityCmaintenanceLocal MCP server bridging ChatGPT Web to local tools for file, shell, git, test, and process management with secure policy controls.MIT
- AlicenseNot gradedqualityAmaintenanceMCP server for advanced PowerShell integration with AI agents, enabling autonomous script execution, code analysis, and IntelliSense.3MIT
Related MCP Connectors
Personal assistant MCP server with search, execute, packages, jobs, secrets, and integrations.
MCP Server for Slima - AI Writing IDE for Novel Authors with AI Beta Reader.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/TrueCrimeDev/ahk-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server