MCPHub LabRegistryweb-infra-dev/midscene
web-infra-dev

web infra dev/midscene

Built by web-infra-dev โ€ข 12,408 stars

What is web infra dev/midscene?

AI-powered, vision-driven UI automation for every platform.

How to use web infra dev/midscene?

1. Install a compatible MCP client (like Claude Desktop). 2. Open your configuration settings. 3. Add web infra dev/midscene using the following command: npx @modelcontextprotocol/web-infra-dev-midscene 4. Restart the client and verify the new tools are active.
๐Ÿ›ก๏ธ Scoped (Restricted)
npx @modelcontextprotocol/web-infra-dev-midscene --scope restricted
๐Ÿ”“ Unrestricted Access
npx @modelcontextprotocol/web-infra-dev-midscene

Key Features

Native MCP Protocol Support
Real-time Tool Activation & Execution
Verified High-performance Implementation
Secure Resource & Context Handling

Optimized Use Cases

Extending AI models with custom local capabilities
Automating system workflows via natural language
Connecting external data sources to LLM context windows

web infra dev/midscene FAQ

Q

Is web infra dev/midscene safe?

Yes, web infra dev/midscene follows the standardized Model Context Protocol security patterns and only executes tools with explicit user-granted permissions.

Q

Is web infra dev/midscene up to date?

web infra dev/midscene is currently active in the registry with 12,408 stars on GitHub, indicating its reliability and community support.

Q

Are there any limits for web infra dev/midscene?

Usage limits depend on the specific implementation of the MCP server and your system resources. Refer to the official documentation below for technical details.

Official Documentation

View on GitHub
<p align="center"> <img alt="Midscene.js" width="260" src="https://github.com/user-attachments/assets/f60de3c1-dd6f-4213-97a1-85bf7c6e79e4"> </p> <h1 align="center">Midscene.js</h1> <div align="center">

English | ็ฎ€ไฝ“ไธญๆ–‡

<strong>Official Website</strong>: <a href="https://midscenejs.com/">https://midscenejs.com/</a>

<a href="https://trendshift.io/repositories/12524" target="_blank"><img src="https://trendshift.io/api/badge/repositories/12524" alt="web-infra-dev%2Fmidscene | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a>

</div> <p align="center"> Open-source, vision-driven UI testing โ€” write tests in natural language, automate any platform. </p> <p align="center"> <a href="https://www.npmjs.com/package/@midscene/web"><img src="https://img.shields.io/npm/v/@midscene/web?style=flat-square&color=00a8f0" alt="npm version" /></a> <a href="https://huggingface.co/ByteDance-Seed/UI-TARS-1.5-7B"><img src="https://img.shields.io/badge/UI%20TARS%20Models-yellow" alt="hugging face model" /></a> <a href="https://npm-compare.com/@midscene/web/#timeRange=THREE_YEARS"><img src="https://img.shields.io/npm/dm/@midscene/web.svg?style=flat-square&color=00a8f0" alt="downloads" /></a> <a href="https://github.com/web-infra-dev/midscene/blob/main/LICENSE"><img src="https://img.shields.io/badge/License-MIT-blue.svg?style=flat-square&color=00a8f0" alt="License" /> <a href="https://discord.gg/2JyBHxszE4"><img src="https://img.shields.io/discord/1328277792730779648?style=flat-square&color=7289DA&label=Discord&logo=discord&logoColor=white" alt="discord" /></a> <a href="https://x.com/midscene_ai"><img src="https://img.shields.io/twitter/follow/midscene_ai?style=flat-square" alt="twitter" /></a> <a href="https://deepwiki.com/web-infra-dev/midscene"> <img alt="Ask DeepWiki.com" src="https://devin.ai/assets/deepwiki-badge.png" style="height: 18px; vertical-align: middle;" /> </a> </p>

๐Ÿ“ฃ Midscene Skills is here!

Use Midscene Skills to control any platform with OpenClaw

Showcases

๐Ÿ’ก Why Midscene

Most UI automation โ€” including AI tools that read the DOM or the accessibility tree โ€” depends on page structure. That structure is fragile and incomplete: selectors break on every refactor, elements without semantic markup (icon-only buttons, custom controls, <canvas>) are invisible to it, native apps and cross-origin iframes are out of reach, and it cannot tell whether something actually looks right. Midscene works from the screenshot alone, and you describe each step in natural language:

  • Less maintenance โ€” no selectors to chase when the UI changes.
  • Reach every element and surface โ€” if a human can see it, Midscene can target it, even with no semantic annotations, on <canvas>, native apps, and cross-origin iframes.
  • Assert what users actually see โ€” verify colors, highlights, layout, and rendered state, not just whether a DOM node exists.
  • Two ways to test โ€” add Midscene to your Playwright / Vitest suite, or let an AI agent test autonomously via Skills.

Midscene is built for UI testing first, but the same vision-driven engine handles any UI automation task.

๐Ÿ’ก What you can automate

Midscene works anywhere you can take a screenshot โ€” web browsers, Android, iOS, HarmonyOS, desktop apps, and any custom interface โ€” all through one API. Write automation with the JavaScript SDK or in YAML, hand it to AI agents via Skills, and look up every method (aiAct, aiQuery, aiAssert, and more) in the API reference.

๐Ÿš€ Get started

โœจ Driven by Multimodal Models

Midscene is all-in on pure vision for UI actions: element localization is based on screenshots only. It runs on multimodal models with strong UI localization, such as Qwen3.x, Doubao-Seed-2.1, GLM-4.6V, gemini-3.5-flash, and UI-TARS, including open-source options you can self-host. For data extraction and page understanding, you can still opt in to include DOM when needed.

Read more about Model Strategy.

๐Ÿ“„ Resources

๐Ÿค Community

๐ŸŒŸ Awesome Midscene

Community projects that extend Midscene.js capabilities:

๐Ÿ“ Credits

We would like to thank the following projects:

  • Rsbuild and Rslib for the build tool.
  • UI-TARS for the open-source agent model UI-TARS.
  • Qwen-VL for the open-source multimodal model Qwen-VL.
  • scrcpy and yume-chan allow us to control Android devices with browser.
  • appium-adb for the javascript bridge of adb.
  • appium-webdriveragent for the javascript operate XCTestใ€‚
  • YADB for the yadb tool which improves the performance of text input.
  • libnut-core for the cross-platform native keyboard and mouse control.
  • Puppeteer for browser automation and control.
  • Playwright for browser automation and control and testing.

๐Ÿ“– Citation

If you use Midscene.js in your research or project, please cite:

@software{Midscene.js,
  author = {Xiao Zhou, Tao Yu, YiBing Lin},
  title = {Midscene.js: Your AI Operator for Web, Android, iOS, Automation & Testing.},
  year = {2025},
  publisher = {GitHub},
  url = {https://github.com/web-infra-dev/midscene}
}

โœจ Star History

Star History Chart

๐Ÿ“ License

Midscene.js is MIT licensed.


<div align="center"> If this project helps you or inspires you, please give us a star </div>

Global Ranking

8.5
Trust ScoreMCPHub Index

Based on codebase health & activity.

Manual Config

{ "mcpServers": { "web-infra-dev-midscene": { "command": "npx", "args": ["web-infra-dev-midscene"] } } }