mcp-wp/mcp-server
Composer 安装命令:
composer require mcp-wp/mcp-server
包简介
MCP Server for WordPress
README 文档
README
Model Context Protocol server using the WordPress REST API.
Try it by installing and activating the latest nightly build on your own WordPress website:
Description
This WordPress plugin aims to implement the new Streamable HTTP transport, as described in the latest MCP specification.
Under the hood it uses the logiscape/mcp-sdk-php package to set up a fully functioning MCP server. Then, this functionality is exposed through a new wp-json/mcp/v1/mcp REST API route in WordPress.
Note: the Streamable HTTP transport is not fully implemented yet and there are no tests. So it might not 100% work as expected.
Usage
Given that no other MCP client supports the new Streamable HTTP transport yet, this plugin works best in companion with the WP-CLI AI command.
- Run
wp plugin install --activate https://github.com/mcp-wp/mcp-server/archive/refs/heads/main.zip - Run
wp plugin install --activate ai-services - Run
wp package install mcp-wp/ai-command:dev-main - Run
wp mcp server add "mysite" "https://example.com/wp-json/mcp/v1/mcp" - Run
wp ai "Greet my friend Pascal"or so
Note: The WP-CLI command also works on a local WordPress installation without this plugin.
统计信息
- 总下载量: 306
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 59
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2025-04-05