
MCP Wordpress
io.github.crunchtools由 GitHub 账号 crunchtools 发布v0.4.1更新于 Nov 3, 2026
Secure MCP server for WordPress content management
概览
本地 MCP 服务器,让助手通过 REST API 管理 WordPress 站点的文章、页面、媒体和评论。
- 可以做什么
- 读取站点信息并验证配置的凭据是否可用
- 列出、搜索、读取、创建、更新、编辑、定时发布和删除文章,以及分类、标签和修订版本
- 列出、读取、创建、更新、编辑和删除页面,并列出页面修订
- 列出、读取、上传、更新和删除媒体项,并获取其公开链接
- 列出、读取、创建、更新、删除和审核评论
- 适用场景
- 适合在自有 WordPress 站点上发布工作内容的开发者,让助手起草、定时发布、编辑或审核内容,无需来回复制文章。编辑类工具和可选的 expected_version 校验适合对已有内容做谨慎、局部的修改。
- 运行要求
- 以 Python 包(uvx 或 pip)或容器镜像在本地通过 stdio 运行。需要环境变量 WORDPRESS_URL、WORDPRESS_USERNAME 和 WORDPRESS_APP_PASSWORD,并在 WordPress 用户资料中创建应用密码。可选 MCP_UPLOAD_DIR 指定上传目录;需要能访问该站点的网络。
安装
在 SourceWeft 中
- 打开 控制台中的 MCP Wordpress,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
MCP WordPress CrunchTools
A secure MCP (Model Context Protocol) server for WordPress content management. Designed for developers publishing about their work.
Overview
This MCP server is designed to be:
- Secure by default - Input validation, credential protection, and SSRF prevention
- No third-party services - Runs locally via stdio, your credentials never leave your machine
- Cross-platform - Works on Linux, macOS, and Windows
- Automatically updated - GitHub Actions monitor for CVEs and update dependencies
- Containerized - Available at
quay.io/crunchtools/mcp-wordpress
Naming Convention
Features
- 33 Tools for posts, pages, media, and comments
- Security-focused: Credentials protected, input validation, SSRF prevention
- Developer workflow: Scheduled publishing, revisions, search
- Easy integration: Works with Claude Code and other MCP clients
Installation
With uvx (recommended)
With pip
With Container
SELinux note: Use
:z(lowercase, shared) instead of:Z(uppercase, private). MCP servers run as long-lived stdio processes. With:Z, files copied into the directory after container start won't have the container's private MCS label and will be invisible inside the container. The:zflag sets a sharedcontainer_file_tcontext that all containers and the host can read/write.Tip: Use the same shared directory (
~/.local/share/mcp-uploads-downloads/) across multiple MCP container servers (e.g., mcp-wordpress and mcp-gemini) so generated files are immediately available for upload without copying.
From source
Configuration
Set these environment variables:
Creating an Application Password
- Log in to WordPress admin
- Go to Users → Profile
- Scroll to Application Passwords
- Enter a name (e.g., "MCP Server") and click Add New
- Copy the generated password (shown once)
Usage with Claude Code
Using uvx (recommended)
Using pip
Using Container
Available Tools
Site Tools
Editing Model
Reads return the source the editor saved (context=edit), never the rendered page, so what
an agent reads is safe to write back. Changes go through the edit_* tools: the agent sends
the exact text to replace and its replacement, the server applies it to the current source,
and the post never round-trips through the agent. The post and page update and edit tools
take an optional expected_version (the version get_post or get_page returned); when
it is given, the write is refused if the item changed since. update_* refuses content that
is rendered output. edit_draft edits only draft or pending posts, so a gateway can grant
revision rights without the power to change published posts.
Post Tools
Page Tools
Media Tools
Comment Tools
Examples
Create a Draft Post
Schedule a Post
Upload an Image
Find and Moderate Comments
Security
- Credential Protection: All credentials stored as
SecretStr, never logged - SSRF Prevention: REST API path hardcoded, cannot be overridden
- Input Validation: All inputs validated via Pydantic models
- Rate Limiting: Handles WordPress rate limits gracefully
- TLS Enforcement: All requests use HTTPS with certificate validation
- Size Limits: Response size limited to 10MB to prevent memory issues
- Timeout: All requests timeout after 30 seconds
Development
License
AGPL-3.0-or-later
Credits
Built by crunchtools.com
来源:README.md,提交 671b7a2
工具
0版本历史
1- v0.4.1最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分