Simple MCP Tools for WebMCP
Make your WordPress site agent-ready. Exposes site capabilities as WebMCP tools that AI agents can discover and use via the W3C WebMCP standard.
by rextea · github.com/rextea/simple-mcp-tools-for-webmcp · website
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/rextea/simple-mcp-tools-for-webmcp/archive/refs/heads/main.zipSimple MCP Tools for WebMCP makes a WordPress site agent-ready by exposing site capabilities as WebMCP tools via navigator.modelContext.registerTool().
Features
- Frontend bridge script that registers tools for content discovery and retrieval.
- Optional MCP-B polyfill loading from unpkg.
- Admin settings page under Settings > Simple MCP Tools for WebMCP.
- Public REST config endpoint at
/wp-json/simple-mcp-tools-for-webmcp/v1/config. - WooCommerce tool support (when WooCommerce is installed and enabled in settings).
Installation
- Copy this plugin folder to
wp-content/plugins/simple-mcp-tools-for-webmcp. - Activate Simple MCP Tools for WebMCP from the Plugins screen.
- Configure settings at Settings > Simple MCP Tools for WebMCP.
Development
composer install
bin/install-wp-tests.sh wordpress_test root '' localhost latest
composer test
Architecture
simple-mcp-tools-for-webmcp.php: bootstrap and hook wiringadmin/: settings page and sanitizationpublic/: polyfill + bridge script enqueuerest-api/: config endpoint used by bridge JSassets/js/rextea-smwfw-bridge.js: WebMCP tool registration
Contributing
See CONTRIBUTING.md.
License
GPLv2 or later. See LICENSE.
WebMCP Reference
- W3C proposal: https://github.com/webmachinelearning/webmcp
- Draft spec: https://webmachinelearning.github.io/webmcp/