# MCP Test Utils [Health: Active]

**Category:** 🖥️ OS Automation  
**Repository:** https://github.com/JeenyJAI/mcp-test-utils  
**GitHub Stars:** 3  
**Views:** 10  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mcp-test-utils

## Description
Desktop UI automation for AI agents: screenshots, windows, mouse, keyboard, UI Automation, OCR

## Tools
Capabilities this server exposes over MCP:

- **take_screenshot** — Screenshot of the entire desktop; quality presets from full to minimal (fewer tokens)
- **take_window_screenshot** — Screenshot of a specific window
- **read_screen_text** — OCR the entire screen (Windows OCR)
- **read_region_text** — OCR a screen region with precise word coordinates
- **list_windows** — List windows with id, title, app, process id, position, size, state
- **focus_window** — Bring a window to the front and restore it if minimized; optionally set its position and size
- **launch_app** — Start a program from the allowlist of the server config (`MCP_LAUNCH_APPS`) and wait for its window
- **close_window** — Close a window as its X button would and wait until it is gone; reports a "Save changes?" prompt
- **mouse_click** — Click an element by id or at coordinates (left / right / middle, double); can wait for the expected effect and retry
- **mouse_move** — Move the cursor to a point or to a UI element
- **mouse_drag** — Drag between elements or points at a human pace (HTML5 drag-and-drop works)
- **mouse_scroll** — Scroll the mouse wheel over an element and wait until the scrolling stops
- **keyboard_type** — Type text (full Unicode — Latin, Cyrillic, CJK, emoji) and check that the field shows what was typed
- **keyboard_press** — Press a key (Enter, Tab, F1–F12, arrows, etc.), optionally several times
- **keyboard_shortcut** — Press a key combination (Ctrl+S, Alt+F4, Ctrl+Shift+P, etc.)
- **list_ui_elements** — UI Automation tree — buttons, fields, menus with ids, values, states and exact coordinates; filters by name, value, class
- **get_focused_element** — Which element has keyboard focus now, and in which window
- **read_text** — Full text of a document or field through UI Automation (up to 100 000 characters per call), no OCR
- **ui_action** — Act on an element without mouse or keyboard: invoke, toggle, expand, select an option, set a value, scroll into view
- **check_accessibility** — Accessibility defects: unnamed controls, controls the Tab key cannot reach, duplicate ids, zero-size controls
- **process_info** — Memory, handles, GDI objects, threads and CPU of the app under test — call it repeatedly to spot leaks
- **wait_for** — Wait for a window, an element or its state instead of sleeping
- **batch** — Run up to 20 tool calls in one request, with `find` and `assert` steps
- **run_scenario** — Replay a saved scenario, a suite or data rows and get a pass/fail report (see [Regression runs](#regression-runs-without-an-agent))
- **record_scenario** — Record what you do in one window into a draft scenario (see [Recording](#recording))
- **search_in_files** — Search text or regex in files within allowed directories (like VS Code Find in Files)
- **find_files** — Find files and directories by name pattern (glob), like "Go to File"
- **get_usage_guide** — Usage guide for agents: core rules + sections on request
- **prepare_feedback** — Prepare a suggestions file for the author (personal data masked; you review it and send it by email — nothing is sent automatically)
- **enable_logging** — Start recording tool calls to JSONL + screenshots (opt-in)
- **disable_logging** — Stop recording, get session stats

## Claude Desktop Quick Installation
No confirmed install details yet, so no config is published. Follow the setup steps in the repository above.

## Documentation

## What MCP Test Utils does

MCP Test Utils provides MCP tools for interacting with Windows desktop applications. Agents can capture the desktop or a particular window, extract visible text with Windows OCR, inspect windows and UI Automation elements, and control applications with mouse and keyboard input. Structured UI access exposes element names, values, states, identifiers, and coordinates, while direct actions can invoke, toggle, expand, select, set values, or scroll elements into view.

The server also supports repeatable desktop testing. An agent can record work in one window into a draft scenario, then replay a saved scenario, suite, or set of data rows. The standalone executable can run scenarios from the command line and return exit codes and reports suitable for CI jobs. Other tools check accessibility, inspect application resource usage, search permitted directories, and optionally record tool calls with screenshots.

## How it works

The server runs as a single Windows x64 executable and communicates with an MCP client over its configured command entry. A typical interaction combines observation and action: inspect windows or UI elements, focus the target, perform an input or UI Automation action, then wait for the expected state or capture the result. Mouse operations can target coordinates or identified elements, and keyboard typing verifies the resulting field content.

Scenarios are JSON files. The command-line runner can validate a scenario without changing anything, execute one, run several in sequence as a suite, or repeat it for each row in a CSV file. Reports include pass/fail information; failed steps can produce a screenshot, element tree, and diagnostic hint.

## Setup and configuration

Download `mcp-test-utils.exe` from the project releases and register it as an MCP server using the client’s command configuration. Claude Desktop uses its `claude_desktop_config.json` file, while Claude Code can add the executable with `claude mcp add`. Restart the client, then request a screenshot to verify the connection.

Optional environment variables control extra tools. Set `MCP_SEARCH_DIRS` to semicolon-separated directories to expose file search, `MCP_LAUNCH_APPS` to allowlisted executable paths for application launching, and `MCP_LOG_DIR` to enable session logging. `MCP_LOG_MAX_MB` and `MCP_LOG_RETAIN_DAYS` adjust logging limits and retention.

## Tools and capabilities

- Capture full-desktop or window screenshots and read screen or region text with OCR.
- List, focus, launch, resize, and close windows.
- Click, move, drag, scroll, type Unicode text, press keys, and send shortcuts.
- Inspect UI Automation trees, focused controls, document text, and accessibility defects.
- Wait for windows or element states, batch up to 20 calls, and assert results.
- Record and replay scenarios, suites, and data-driven runs.
- Search configured files, inspect process resources, prepare masked feedback, and log sessions.

## Limitations and notes

The executable currently targets Windows x64; macOS and Linux builds are not available. Application launching is restricted to programs listed in `MCP_LAUNCH_APPS`. File-search tools appear only when `MCP_SEARCH_DIRS` is configured, and logging tools appear only when `MCP_LOG_DIR` is set.

Scenario execution without a license key is limited to 50 steps. Recording excludes password-field contents, and terminal text is recorded only when the recording command enables key-text capture. Logging is opt-in rather than automatic.

_Full upstream README: https://allmcps.com/mcp/mcp-test-utils/readme_

