Windows Desktop Control MCP server

Enables AI to control Windows desktop applications through UIAutomation and PyAutoGUI, providing capabilities for launching programs, executing commands, and performing mouse/keyboard actions with tree-based UI element identification.
Back to servers
Provider
Jeomon George
Release date
May 13, 2025
Language
Python
Stats
36 stars

Windows MCP is a lightweight server that enables AI agents to interact with Windows operating systems. It bridges the gap between language models and the Windows environment, allowing for file navigation, application control, UI interaction, and automated testing without requiring computer vision capabilities.

Installation Requirements

Prerequisites

  • Python 3.12 or newer
  • Anthropic Claude Desktop app or another MCP client
  • UV (Python package manager)

Installation Steps

  1. Install UV if you haven't already:
pip install uv
  1. Clone the repository:
git clone https://github.com/CursorTouch/Windows-MCP.git
cd Windows-MCP
  1. Install dependencies:
uv sync

Configuration

Setting Up Claude Desktop

  1. Create a configuration file with the following JSON content (replace the placeholder paths):
{
   "mcpServers": {
      "windows-mcp": {
         "command": "{{PATH_TO_UV}}",
         "args": [
            "--directory",
            "{{PATH_TO_SRC}}/Windows-MCP",
            "run",
            "main.py"
         ]
      }
   }
}
  1. Save this as claude_desktop_config.json in your Claude Desktop configuration directory:
%APPDATA%/Claude/claude_desktop_config.json
  1. Restart Claude Desktop

After restarting, Windows-MCP should appear as an available integration in Claude Desktop.

Available Tools

Windows MCP provides the following tools for AI interaction with Windows:

Input and Control Tools

  • Click-Tool: Click at specific screen coordinates
  • Type-Tool: Enter text (with option to clear existing text)
  • Clipboard-Tool: Copy or paste using the system clipboard
  • Scroll-Tool: Scroll vertically or horizontally
  • Drag-Tool: Drag from one point to another
  • Move-Tool: Position the mouse pointer
  • Shortcut-Tool: Execute keyboard shortcuts (e.g., Ctrl+c, Alt+Tab)
  • Key-Tool: Press individual keys
  • Wait-Tool: Pause execution for a specified duration

Information and System Tools

  • State-Tool: Get a combined snapshot of active applications and UI elements
  • Screenshot-Tool: Capture desktop screenshots
  • Launch-Tool: Start applications from the Start menu
  • Shell-Tool: Execute PowerShell commands
  • Scrape-Tool: Extract information from webpages

Usage Considerations

Windows MCP interacts directly with your operating system, so use it with caution. The typical latency between actions ranges from 1.5 to 2.3 seconds, depending on system load and the speed of the language model being used.

For troubleshooting Claude Desktop integration issues, refer to the MCP documentation.

How to add this MCP server to Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "cursor-rules-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "cursor-rules-mcp"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later