AI Skill Hub 强烈推荐:Motus 是一款优质的MCP工具。AI 综合评分 8.0 分,在同类工具中表现稳健。如果你正在寻找可靠的MCP工具解决方案,这是一个值得深入了解的选择。
Motus 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
Motus 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/DataficationSDK/Motus
# 方式二:手动配置 claude_desktop_config.json
{
"mcpServers": {
"motus": {
"command": "npx",
"args": ["-y", "motus"]
}
}
}
# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
# 安装后在 Claude 对话中直接使用 # 示例: 用户: 请帮我用 Motus 执行以下任务... Claude: [自动调用 Motus MCP 工具处理请求] # 查看可用工具列表 # 在 Claude 中输入:"列出所有可用的 MCP 工具"
// claude_desktop_config.json 配置示例
{
"mcpServers": {
"motus": {
"command": "npx",
"args": ["-y", "motus"],
"env": {
// "API_KEY": "your-api-key-here"
}
}
}
}
// 保存后重启 Claude Desktop 生效
Extensible browser automation and testing framework for .NET, built on a fully extensible architecture.
<video src="https://github.com/user-attachments/assets/7ad5ed29-1f65-45b1-a666-3b9537835b0a" autoplay loop muted playsinline></video>
| Category | Details |
|---|---|
| **Browser Support** | Chromium (CDP), Firefox (WebDriver BiDi) |
| **Selectors** | CSS, XPath, Text, ARIA Role, Test ID, plus custom strategies via ISelectorStrategy |
| **Auto-Wait** | Actionability checks (visible, enabled, stable, receives events) with configurable timeout |
| **Shadow DOM** | Automatic piercing of open shadow roots (configurable per-locator) |
| **Assertions** | Auto-retry polling assertions for locators, pages, and responses with .Not negation |
| **Network** | Request interception, response mocking, route matching with glob patterns |
| **Recording** | Capture browser interactions and emit idiomatic C# test code (MSTest, xUnit, NUnit) |
| **Codegen** | Generate Page Object Model classes from live pages with selector inference |
| **Accessibility** | Built-in WCAG 2.1 Level A/AA audits via CDP accessibility tree, lifecycle hook, page and locator assertions, custom rules via IAccessibilityRule |
| **Performance** | Core Web Vitals collection (LCP, FCP, TTFB, CLS, INP), configurable budgets via [PerformanceBudget] attribute or config, auto-retry assertions, reporter integration via IPerformanceReporter |
| **Coverage** | Per-test JS coverage via CDP Profiler/Debugger, CSS rule-usage coverage via CDP CSS, source-map remapping to original sources, console / HTML / Cobertura reporters, configurable thresholds that fail the run, custom reporters via ICoverageReporter |
| **Reporters** | Console, HTML, JUnit XML, TRX, plus custom reporters via IReporter (with opt-in IAccessibilityReporter, IPerformanceReporter, ICoverageReporter for domain events) |
| **Tracing** | Screenshots, DOM snapshots, network logs, HAR export, and WebM video recording |
| **Parallel** | Context-level, browser-level, and worker-level parallel execution |
| **Configuration** | Layered: motus.config.json, environment variables, code (code always wins) |
| **NativeAOT** | Source-generated serialization and plugin discovery with zero reflection |
motus install to download a browser binary)dotnet add package Motus
dotnet add package Motus.Testing.MSTest # or Motus.Testing.xUnit / Motus.Testing.NUnit
dotnet tool install --global Motus.Cli
git clone https://github.com/DataficationSDK/Motus
cd Motus
dotnet build Motus.sln
dotnet test Motus.sln
motus run <assemblies> Run tests with optional --visual, --filter, --workers, --reporter, --a11y, --perf-budget, --coverage, --retries
motus record Record a browser session and emit test code
motus codegen Generate POM classes from live pages (--headed, --connect, --detect-listeners)
motus screenshot Capture a screenshot (--full-page, --delay, --hide-banners, --width, --height)
motus pdf Generate a PDF from a URL (--delay, --hide-banners, --width, --timeout)
motus trace show Open a trace file in the visual runner with timeline, screenshots, and network
motus install Download and install browser binaries
motus update-protocol Fetch and update CDP protocol schema files
motus mcp Run the MCP server for AI agents (stdio by default, or --http)
Five interfaces define every point of extensibility, all registered through IPluginContext:
| Interface | What It Does |
|---|---|
ISelectorStrategy | Resolve elements and generate selectors for a custom prefix (e.g. data-testid=) |
ILifecycleHook | Intercept navigation, actions, page create/close, console messages, and errors |
IWaitCondition | Define named wait conditions for use with WaitForAsync |
IReporter | Receive test run events for custom reporting (multiple reporters run simultaneously) |
IAccessibilityRule | Define custom WCAG accessibility rules evaluated against the browser's accessibility tree |
IAccessibilityReporter | Opt-in interface for reporters to receive per-violation accessibility events |
IPerformanceReporter | Opt-in interface for reporters to receive performance metrics and budget results |
ICoverageReporter | Opt-in interface for reporters to receive per-test and aggregated JS/CSS coverage data |
IMotusLogger | Structured logging for plugin diagnostics |
Plugins are discovered two ways:
[MotusPlugin] and the Roslyn source generator emits a [ModuleInitializer] that registers it at startup. No reflection.LaunchOptions.Plugins for full control.[MotusPlugin]
public class MyPlugin : IPlugin
{
public string PluginId => "my-plugin";
public string Name => "My Plugin";
public string Version => "1.0.0";
public Task OnLoadedAsync(IPluginContext context)
{
context.RegisterSelectorStrategy(new MyCustomStrategy());
context.RegisterLifecycleHook(new MyHook());
return Task.CompletedTask;
}
public Task OnUnloadedAsync() => Task.CompletedTask;
}
高质量的开源MCP工具,.NET浏览器自动化和测试框架
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
总体来看,Motus 是一款质量优秀的MCP工具,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。
| 原始名称 | Motus |
| Topics | browser-automationcdpchrome-devtools-protocolcsharp |
| GitHub | https://github.com/DataficationSDK/Motus |
| License | MIT |
| 语言 | C# |
收录时间:2026-06-20 · 更新时间:2026-06-20 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端