miniprogram-automator-mcp
Enables AI agents to automate WeChat mini-programs via launch or connect modes, providing a stable interaction tree for observation and operation.
README
miniprogram-automator-mcp
一个基于 miniprogram-automator 的 MCP Server,用来让 Agent 自动化操作微信小程序。
核心功能
- 支持两种连接方式:
launch(本地启动)与connect(连接已有端点) - 提供类似 agent-browser 的交互树模式(
snapshot返回 refs/tree/nth),便于稳定定位与操作 - 适合 Agent 场景下的稳定闭环操作(观察 -> 操作 -> 再观察)
前置要求
- Node.js
>=18 - 微信开发者工具版本
>= 1.02.1907232 - 小程序基础库版本
>= 2.7.3 - 已在微信开发者工具中开启安全设置里的 CLI/HTTP 调用能力(未开启会导致 automator 无法启动)
在 MCP 客户端中接入
{
"mcpServers": {
"weapp-automator": {
"command": "npx",
"args": ["-y", "miniprogram-automator-mcp"]
}
}
}
会话接入
会话接入支持 launch 和 connect:本地直接调试时用 launch,已有运行中的 websocket 自动化端点时用 connect。
CLI 启动参数(可选)
你可以在启动 MCP Server 时通过参数指定默认会话配置。
查看帮助:
bunx miniprogram-automator-mcp --help
bunx miniprogram-automator-mcp launch --help
bunx miniprogram-automator-mcp connect --help
launch 模式示例:
bunx miniprogram-automator-mcp \
launch \
--project-path /absolute/path/to/miniprogram \
--cli-path /Applications/wechatwebdevtools.app/Contents/MacOS/cli \
--port 9420
connect 模式示例:
bunx miniprogram-automator-mcp \
connect \
--ws-endpoint ws://127.0.0.1:9420
常用参数:
- 子命令:
launch(默认语义)或connect --project-path: 小程序项目路径(launch 必填)--cli-path: 微信开发者工具 CLI 路径(launch 可选)--port: 自动化端口(launch 可选)--account/--ticket/--trust-project/--cwd: launch 可选高级参数--ws-endpoint: 连接地址(connect 必填)
环境变量
MINIPROGRAM_AUTOMATOR_MODE:launch或connectMINIPROGRAM_PROJECT_PATH: 小程序项目路径(launch模式)MINIPROGRAM_CLI_PATH: 微信开发者工具 CLI 路径(launch模式)MINIPROGRAM_AUTOMATOR_PORT: 自动化端口(launch模式)MINIPROGRAM_AUTOMATOR_WS_ENDPOINT: ws 地址(connect模式)
Recommended Servers
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.
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.
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.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
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.
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.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.