ahk-mcp
AutoHotkey v2 MCP Server
AutoHotkey v2 개발을 위한 TypeScript MCP 서버입니다. Claude Desktop과 같은 MCP 클라이언트를 위한 스크립트 분석, 파일 작업, 문서 검색, 스크립트 실행 도구를 제공합니다.
아키텍처

Related MCP server: Hotkeyless AHK MCP
주요 기능
AutoHotkey 워크플로우를 위한 25개 이상의
AHK_*도구대상 파일 검색 및 활성 파일 인식 작업
프로세스 추적 및 창 감지가 포함된 스크립트 실행
로컬 AutoHotkey 검증 및 진단 도구
내장 AutoHotkey 문서 및 프롬프트/컨텍스트 헬퍼
Stdio 및 Streamable HTTP 전송(상태 유지 또는 무상태), 레거시 SSE 엔드포인트 지원
HTTP 모드의 옵트인 bearer-token 인증 및 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)를 사용합니다. /mcp에서 Streamable HTTP(및 레거시 SSE 엔드포인트)를 노출하려면 PORT를 설정하거나 --sse를 전달하세요:
npm run start:sse동작은 환경 변수로 제어됩니다:
변수 | 기본값 | 용도 |
|
| HTTP 포트; 설정 시 HTTP 모드 활성화 |
| off |
|
| unset | 설정 시 모든 HTTP 요청에 |
| unset | 쉼표로 구분된 |
| unset | 브라우저 클라이언트용 쉼표로 구분된 |
|
| 완료된 작업 레코드 보관 시간(30분); |
|
|
|
보안 참고: 도구 표면에는 파일 쓰기와 프로세스 실행이 포함됩니다. HTTP 포트에 자신의 머신 외의 다른 곳에서 접근할 수 있다면 AHK_MCP_AUTH_TOKEN(예: openssl rand -hex 32)과 두 허용 목록을 설정하세요 — 기본적으로 엔드포인트는 모든 요청을 수락합니다.
세션 흐름, 무상태 모드 세부 사항 및 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