Weapp Dev MCP logo

Weapp Dev MCP

Unclaimed

by yfmeii

FastMCP server for automating WeChat Mini Program developer tooling

Set up this server

01 / Choose your client

02 / Before you connect

Authentication is not specified. Check the project instructions before connecting.

Install the runtime required by the project and make it available to your client.

Project instructions

Use names from the project instructions, separated by commas. Enter names only, never secret values.

03 / Add the configuration

Source: generated from public install instructions

claude mcp add --transport stdio 'weapp-dev-mcp' -- 'npx' '-y' '@yfme/weapp-dev-mcp'

Run in your terminal after replacing any placeholders.

04 / Check it in your client

Open your client’s MCP settings and confirm the server connects and lists its tools. A copied configuration does not confirm a working connection.

More in Developer Tools

Browse the full directory

Unclaimed listing

Is this your MCP server?

This listing was auto-indexed from the public record. Claim it to edit the page, set compatibility and unlock growth tools. Takes under two minutes.

Claim this server

Security profile

Claimed and verified servers get a weekly static scan that shows what the code can reach: external services, environment variables, shell commands, agent configuration folders, plus any dependencies with known advisories. Claim this listing to get one. How the security profile works

30 of 30 tools

Documented tools (30)

From project documentation. A server handshake does not verify each tool’s description or behavior.

element_callMethod

调用自定义组件实例的方法

element_getAttributes

获取元素的特性值,names 参数为特性名数组(如 ['class', 'id', 'data-index'])

element_getBoundingClientRect

获取元素相对于视口的边界矩形信息(left、top、width、height、right、bottom),考虑 CSS transform 变换;选择器支持微信小程序 SelectorQuery 子集(ID、class、连续 class、子代、后代、跨自定义组件后代和并集选择器)

element_getData

获取自定义组件实例的渲染数据

element_getInnerElement

获取元素内的元素(相当于 element.$(selector)),返回元素摘要信息;设置 withWxml: true 可额外返回完整 outerWxml

element_getInnerElements

获取元素内的元素数组(相当于 element.$$(selector)),返回元素摘要信息;设置 withWxml: true 可额外返回每个元素的完整 outerWxml

element_getStyles

获取元素的 CSS 样式值,names 参数为样式名数组(如 ['color', 'fontSize'])

element_getWxml

获取元素 WXML(内部或外部)

element_input

向元素输入文本(适用于 input 和 textarea 组件)

element_scrollTo

滚动 scroll-view 组件到指定位置(x, y)

element_setData

设置自定义组件实例的渲染数据

element_tap

通过 CSS 选择器模拟点击 WXML 元素;支持 [index=N] 语法选择第 N 个元素;支持 x/y 坐标偏移点击;增强稳定性:等待元素可交互状态,点击后自动验证页面路径是否变化

mp_callWx

调用微信小程序 API 方法(如 wx.showToast)

mp_currentPage

获取当前页面信息(路径、查询参数、尺寸、滚动位置),withData 为 true 时额外返回页面数据

mp_ensureConnection

确保自动化会话就绪;可选择强制重连或覆盖连接设置

mp_getLogs

获取小程序控制台日志,可选择获取后清除

mp_listProjects

列出微信开发者工具中的最近项目,方便选择项目目录

mp_mockWxMethod

有限 mock wx 方法能力;当前支持 method: "request",通过 action: "mock" 设置 wx.request 规则,通过 action: "restore" 恢复原方法

mp_navigate

在小程序内导航,支持 navigateTo、redirectTo、reLaunch、switchTab 或 navigateBack

mp_screenshot

捕获屏幕截图并返回(或保存到磁盘);若微信开发者工具的自动化截图接口失败或超时,请改用客户端/系统提供的截图 API 截取开发者工具模拟器区域

mp_setDefaultProject

设置默认的小程序项目路径,设置后下次连接会自动使用该项目

page_callMethod

调用当前页面实例上暴露的方法

page_getData

获取当前页面的数据对象,可指定路径(支持嵌套路径如 'user.name')

page_getElement

通过选择器获取页面元素,返回元素摘要信息(tagName、text、value、size、offset);设置 withWxml: true 可额外返回完整 outerWxml;支持 [index=N] 语法选择第 N 个元素

page_getElementByXpath

通过 XPath 获取页面第一个匹配元素,适合按文本、属性、层级关系、ancestor/following 等表达式定位;设置 withWxml: true 可额外返回完整 outerWxml

page_getElements

通过选择器获取页面元素数组,返回每个元素的摘要信息;设置 withWxml: true 可额外返回每个元素的完整 outerWxml;支持 [index=N] 语法

page_getElementsByXpath

通过 XPath 获取页面匹配元素数组,返回每个元素的摘要信息;设置 withWxml: true 可额外返回每个元素的完整 outerWxml

page_setData

使用 setData 更新当前页面的数据;增加 verify 选项,验证数据是否真正更新成功

page_waitElement

等待元素出现在页面上(⚠️ 不适用于自定义组件内部元素);支持 [index=N] 语法;增加超时和重试间隔参数

page_waitTimeout

等待指定的毫秒数

Tool change history

Compared across complete checks of the same configuration. Tools were listed, not invoked. Input-schema changes are not measured here.

No complete tool checks yet.

FAQ

Questions about Weapp Dev MCP Server

How do I connect Weapp Dev MCP Server to Claude?
Run `claude mcp add weapp-dev-mcp -- npx -y @yfme/weapp-dev-mcp` in Claude Code, or add the same command and arguments under mcpServers in Cursor's mcp.json or Claude Desktop's claude_desktop_config.json, then restart the client. The blocks above are ready to paste.
Is Weapp Dev MCP Server free?
MCPVault has not verified a licence for this server. Check the upstream terms and pricing before use; connected APIs may require a paid account.
What can Weapp Dev MCP Server do?
Weapp Dev MCP Server documents 30 tools to the agent, including element_callMethod, element_getAttributes, element_getBoundingClientRect. The descriptions above come from project documentation. A live handshake does not test individual tool behavior.