windows-mcp-lite

windows-mcp-lite

A lightweight Windows automation MCP server that scopes UI operations to a single target window, offering tools like ReadWindow, PeekWindow, Click, Type, Scroll, Screenshot, and App management with reduced token usage compared to full-desktop alternatives.

Category
Visit Server

README

windows-mcp-lite

windows-mcp はWindows操作用のMCPサーバーとして強力ですが、Snapshotのようなツールは常にデスクトップ全体(タスクバー・背面の全ウィンドウ含む)を走査するため、AIエージェントが消費するトークン量が大きくなりがちです。

windows-mcp-liteはこの課題に絞った軽量な代替です。対象ウィンドウ1つだけをスコープにし、コンパクトなテキスト形式で返すことで、同じ情報をより少ないトークンで提供します。

実測値

同じ電卓アプリのウィンドウに対して、実際に稼働中の両サーバーへ問い合わせて比較しました。

文字数
windows-mcp Snapshot(デスクトップ全体) 5630文字
windows-mcp-lite ReadWindow(電卓のみ) 678文字
削減率 88.0%

生の比較データは docs/note-assets を参照してください。

提供ツール

観測系

  • ReadWindow — 対象ウィンドウのUIツリーをコンパクトなテキストで取得
  • PeekWindow — ウィンドウの存在確認、または特定テキストの有無だけを真偽値で取得(ReadWindowより軽量)
  • LocateElement — 名前などから要素を検索し座標を取得
  • Screenshot — スクリーンショットを取得

操作系

  • Click / Type / Scroll / Move — 座標を指定して操作(ReadWindow/LocateElementで得た座標を使う)
  • Shortcut — キーボードショートカット送信
  • App — アプリの起動(スタートメニュー名 or 実行ファイルパス指定)・切替・リサイズ

windows-mcpのSnapshotが返す数値ラベル(前回スナップショット参照用)は保持しないため、操作系ツールには常に明示的な[x, y]座標を渡します。

インストール

pyproject.tomlでwindows-mcpをpinned依存として利用しています(Python 3.12+、Windows専用)。

uv sync

MCPクライアント(Claude Code等)の設定例:

{
  "mcpServers": {
    "windows-mcp-lite": {
      "type": "stdio",
      "command": "uv",
      "args": ["run", "--project", "<このリポジトリのパス>", "windows-mcp-lite"]
    }
  }
}

既知の制約

  • 電卓アプリの計算結果表示欄はUI Automationツリーに現れません(windows-mcp本体でも同様の制約)。
  • モーダルダイアログを伴うウィンドウで、かつそのウィンドウがフォアグラウンドでもない場合は、windows-mcp本体・lite共通の制約として検出できないことがあります(詳細は PLAN.md を参照)。

アーキテクチャ

UI Automation/COM連携を再実装せず、windows-mcpの内部クラス(Desktop/Tree等)をライブラリとして直接importしています。非公開の内部APIに依存する形になるため、windows-mcp側のアップデートで壊れる可能性があります。設計判断や実測の詳細な経緯は PLAN.md にまとめています。

ライセンス

MIT License(LICENSE)。

依存する windows-mcp はMIT License, Copyright (c) 2025 Jeomon George です。

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
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

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
Qdrant Server

Qdrant Server

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

Official
Featured