ahk-mcp
AutoHotkey v2 MCP サーバー
AutoHotkey v2 開発のための TypeScript MCP サーバーです。スクリプト解析、 ファイル操作、ドキュメント検索、スクリプト実行ツールを Claude Desktop などの MCP クライアントに提供します。
アーキテクチャ

Related MCP server: Hotkeyless AHK MCP
主な特長
AutoHotkey ワークフローのための 25 以上の
AHK_*ツール対象を絞ったファイル検出とアクティブファイル対応の操作
プロセストラッキングとウィンドウ検出を備えたスクリプト実行
ローカル AutoHotkey 検証・診断ツール
組み込みの AutoHotkey ドキュメントとプロンプト/コンテキストヘルパー
Stdio および Streamable HTTP トランスポート(ステートフルまたはステートレス)、さらにレガシー SSE エンドポイント
HTTP モードでのオプトイン Bearer トークン認証と DNS リバインディング保護
必要条件
Node.js 18+
npm
AutoHotkey v2(実行/検証ツール用)
インストール
git clone https://github.com/truecrimedev/ahk-mcp.git
cd ahk-mcp
npm install
npm run build実行
npm start開発モード:
npm run devスモークテスト:
npm run smoke:mcpHTTP モードと環境変数
npm start は stdio(Claude Desktop)で通信します。Streamable HTTP を /mcp で公開するには(レガシー SSE エンドポイントも含む)、PORT を設定するか --sse を渡します:
npm run start:sse動作は環境変数で制御します:
変数 | デフォルト | 目的 |
|
| HTTP ポート。設定すると HTTP モードが有効になります |
| オフ |
|
| 未設定 | 設定すると、すべての HTTP リクエストに |
| 未設定 | カンマ区切りの |
| 未設定 | ブラウザクライアント向けのカンマ区切りの |
|
| 完了したタスクレコードの保持時間(30 分)。 |
|
|
|
セキュリティ上の注意: ツールの機能にはファイル書き込みとプロセス実行が含まれます。HTTP ポートが自分のマシン以外から到達可能な場合は、AHK_MCP_AUTH_TOKEN(例: openssl rand -hex 32)と 2 つの許可リストを設定してください。デフォルトではエンドポイントはすべてのリクエストを受け入れます。
セッションフロー、ステートレスモードの詳細、cURL の例については docs/MCP_TRANSPORT_COMPATIBILITY.md を参照してください。
Claude Desktop の設定
claude_desktop_config.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"
}
}
}
}JSON では絶対パスを使用し、バックスラッシュをエスケープしてください。
AutoHotkey のパスと起動動作の設定
AHK_Config を使用して、実行可能ファイルのパスと非ブロッキング起動動作を設定します:
{
"action": "set",
"ahkPath": "C:\\Users\\YourUsername\\Documents\\Design\\Coding\\AutoHotkey\\bin\\AutoHotkey64.exe",
"waitForStdoutLine": true,
"stdoutLineTimeoutMs": 300
}これは AHK_Run(および AHK_Cloud_Validate のパス解決)で使用されます。
コアツール
AHK_Smart_Orchestrator: 複数ステップの編集・解析ワークフローを削減AHK_File_List、AHK_File_View、AHK_File_Edit: ファイル操作AHK_Analyze、AHK_Diagnostics: 解析と診断AHK_Run: スクリプトの実行(待機、非待機、ウィンドウ検出)AHK_Cloud_Validate: ローカル実行ベースの検証AHK_Doc_Search、AHK_Tools_Search: ドキュメントとツールの検索AHK_Config: MCP サーバーの設定
開発コマンド
npm run build
npm run clean
npm run lint
npm run test
npm run test:integration
npm run smoke:mcpドキュメント
docs/README.mddocs/QUICK_START.mddocs/QUICKREFERENCE.mddocs/MCP_TRANSPORT_COMPATIBILITY.mddocs/ARCHITECTURE_DIAGRAMS.mddocs/RELEASE_NOTES.md
コントリビューション
CONTRIBUTING.md と AGENTS.md を参照してください。
ライセンス
MIT。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