mcp-windows-app-launcher

mcp-windows-app-launcher

Enables AI assistants to find and launch Windows applications by name using multi-strategy discovery via registry, Start Menu, PATH, and common directories.

Category
Visit Server

README

mcp-windows-app-launcher

δΈ­ζ–‡ζ–‡ζ‘£

πŸš€ A Model Context Protocol (MCP) tool that enables AI assistants like Claude to instantly find and launch Windows applications by name.

Project Overview

mcp-windows-app-launcher is an MCP Server that exposes a single launch_windows_app tool. When an AI assistant invokes it, the server searches your Windows system through multiple strategies β€” registry, Start Menu, PATH, and common install directories β€” to locate the target application's .exe path and launch it immediately.

Built with the official MCP Python SDK, it integrates seamlessly with Claude Desktop and Claude Code via stdio transport.

Features

  • Multi-strategy app discovery β€” searches registry App Paths, Start Menu .lnk shortcuts, system PATH, and Program Files directories in priority order
  • Smart name aliasing β€” maps common names to their real executables (e.g. vscode β†’ code, edge β†’ msedge, terminal β†’ wt)
  • Async process launching β€” uses asyncio.create_subprocess_exec for non-blocking app startup
  • Robust error handling β€” clear, Chinese-localized error messages for missing apps, permission issues, and system errors
  • Zero external dependencies beyond MCP SDK β€” all Windows interaction uses stdlib (winreg, subprocess, asyncio, pathlib)

Installation & Setup

Prerequisites

  • Windows 10 or later
  • Python 3.10+

1. Clone the repository

git clone https://github.com/ye1430937615-ai/mcp-windows-app-launcher.git
cd mcp-windows-app-launcher

2. Create a virtual environment and install dependencies

python -m venv .venv
.\.venv\Scripts\python -m pip install -r requirements.txt

3. Verify the installation

.\.venv\Scripts\python -c "from app_locator import find_app_path; print(find_app_path('notepad'))"

You should see the absolute path to notepad.exe printed on your terminal.

How to Configure

Configure your MCP client to launch this server. Choose the section that matches your client.

Claude Desktop

Add the following to your Claude Desktop mcp.json configuration file:

Windows path β€” %APPDATA%\Claude\mcp.json

{
  "mcpServers": {
    "mcp-windows-app-launcher": {
      "command": "C:\\Users\\ye1430937615-ai\\path\\to\\mcp-windows-app-launcher\\.venv\\Scripts\\python.exe",
      "args": [
        "C:\\Users\\ye1430937615-ai\\path\\to\\mcp-windows-app-launcher\\server.py"
      ]
    }
  }
}

[!WARNING] You MUST replace all placeholder paths above with the actual absolute paths on your machine.

  • All backslashes in the JSON must be escaped as double backslashes (\\).
  • The Python executable must be the one inside .venv\Scripts\python.exe, not the system Python.

Tip: Run the included helper script to generate the correct JSON for your machine automatically:

.\.venv\Scripts\python generate_config.py

Claude Code (CLI)

Add the following to your Claude Code settings file:

Windows path β€” %USERPROFILE%\.claude\settings.json

{
  "mcpServers": {
    "mcp-windows-app-launcher": {
      "type": "stdio",
      "command": "C:\\Users\\ye1430937615-ai\\path\\to\\mcp-windows-app-launcher\\.venv\\Scripts\\python.exe",
      "args": [
        "C:\\Users\\ye1430937615-ai\\path\\to\\mcp-windows-app-launcher\\server.py"
      ]
    }
  }
}

Or use .claudecode/mcp.json in your project directory for per-project configuration:

{
  "mcpServers": {
    "mcp-windows-app-launcher": {
      "type": "stdio",
      "command": ".\\.venv\\Scripts\\python.exe",
      "args": ["server.py"]
    }
  }
}

4. Restart your MCP client

Restart Claude Desktop or Claude Code. The launch_windows_app tool should now be available.

Send a message like:

Please launch Notepad for me

The assistant will call the tool with app_name: "notepad" and the application will start.

Usage Examples

Prompt Tool Call
"Launch Firefox" launch_windows_app("firefox")
"Open VS Code" launch_windows_app("code")
"Start Windows Terminal" launch_windows_app("terminal")
"Open Calculator" launch_windows_app("calc")
"Launch Task Manager" launch_windows_app("taskmgr")

How It Works

User prompt β†’ Claude β†’ MCP Tool call β†’ server.py β†’ app_locator.py
                                                       β”‚
                                          β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                                          β–Ό            β–Ό            β–Ό
                                     Registry      Start Menu    PATH / Dirs
                                          β”‚            β”‚            β”‚
                                          β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                                       β–Ό
                                               Found .exe path
                                                       β”‚
                                                       β–Ό
                                          asyncio.create_subprocess_exec()
                                                       β”‚
                                                       β–Ό
                                                  App launches πŸŽ‰
  1. server.py receives the launch_windows_app tool call from the MCP client
  2. app_locator.find_app_path() searches in priority order:
    • Registry App Paths (HKLM x64, HKLM x32, HKCU) β€” the standard Windows app registration
    • Start Menu .lnk shortcuts β€” resolved via PowerShell COM
    • System PATH β€” via shutil.which()
    • WindowsApps β€” Win10/Win11 App Execution Aliases
    • Program Files directory scan β€” depth-limited to 3 levels
  3. app_locator.launch_app() starts the found executable via asyncio.create_subprocess_exec()

License

MIT β€” see LICENSE for details.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured