
automattic/mcp-wordpress-remote 是从 https://github.com/automattic/mcp-wordpress-remote. 导入的 MCP 服务器候选
概览
automattic/mcp-wordpress-remote 是从 https://github.com/automattic/mcp-wordpress-remote. 导入的 MCP 服务器候选
概述(AI 翻译)
WordPress MCP 服务器的 stdio 到 HTTP 直通代理
将像Claude Desktop这样的AI助手连接到你的WordPress网站,支持多种认证方法,包括OAuth 2.0、JWT令牌和应用密码。
特色
- MCP OAuth 客户端 - 授权码 PKCE、验证发现、发行者绑定凭证及协调续期
- OAuth 2.1 带 PKCE - 带 PKCE 的安全授权码流(RFC 7636)
- 资源指示器 - RFC 8707 对令牌受众绑定的合规要求
- 动态客户端注册 - RFC 7591 对自动客户端注册的支持
- 受保护资源元数据发现 - RFC 9728 用于自动端点发现
- 多重认证方法 - OAuth 2.1、JWT 令牌和 WordPress 应用密码
- 持久令牌存储 - 通过自动验证安全存储的OAuth令牌
- 多实例协调 - 锁文件防止认证冲突
- 自动令牌管理 - 处理验证、刷新和清理
- 增强错误处理 - 详细错误信息并进行适当分类
- 综合日志 - 带有类别和层级的结构化日志
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
MCP WordPress Remote
A stdio-to-HTTP pass-through proxy for WordPress MCP servers
Connect AI assistants like Claude Desktop to your WordPress sites with multiple authentication methods including OAuth 2.0, JWT tokens, and application passwords.
Features
- MCP OAuth Client - Authorization-code PKCE, validated discovery, issuer-bound credentials, and coordinated renewal
- OAuth 2.1 with PKCE - Secure authorization code flow with PKCE (RFC 7636)
- Resource Indicators - RFC 8707 compliance for token audience binding
- Dynamic Client Registration - RFC 7591 support for automatic client registration
- Protected Resource Metadata Discovery - RFC 9728 for automatic endpoint discovery
- Multiple Authentication Methods - OAuth 2.1, JWT tokens, and WordPress application passwords
- Persistent Token Storage - OAuth tokens stored securely with automatic validation
- Multi-instance Coordination - Lockfiles prevent authentication conflicts
- Automatic Token Management - Handles validation, refresh, and cleanup
- Enhanced Error Handling - Detailed error messages with proper categorization
- Comprehensive Logging - Structured logging with categories and levels
- Complete MCP Support - Tools, resources, prompts, and more
When to use this proxy
If your MCP client supports the Streamable HTTP transport and can authenticate to your site, connect it to the MCP Adapter endpoint directly. You don’t need this proxy. For example, in Claude Code (.mcp.json), using an application password:
{
"mcpServers": {
"wordpress": {
"type": "http",
"url": "https://your-wordpress-site.com/wp-json/mcp/mcp-adapter-default-server",
"headers": {
"Authorization": "Basic "
}
}
}
}
Other clients use their own config format. Check your client’s documentation for remote or HTTP MCP servers.
Use the proxy when one of these applies:
- Your client only supports stdio. It can launch a local command but cannot connect to an HTTP MCP server.
- Your client can’t authenticate the way your site requires. The proxy can send application passwords, JWT tokens, WooCommerce keys, or custom headers, and it can run the OAuth flow and store tokens for clients that can’t.
- Your traffic must go through a proxy. Set
SOCKS_PROXY,HTTPS_PROXY,ALL_PROXYorHTTP_PROXYto route requests through it. On macOS, setUSE_SYSTEM_PROXY=trueto use the system PAC file or SOCKS proxy instead. - Your site is slow or unreliable.
WP_API_TIMEOUT_MSandWP_API_INIT_TIMEOUT_MSset the timeouts, and a failed initialize returns a degraded response instead of a broken connection (see Forwarding behavior).
安装
npx -y @automattic/mcp-wordpress-remote配置
{
"mcpServers": {
"wordpress": {
"type": "http",
"url": "https://your-wordpress-site.com/wp-json/mcp/mcp-adapter-default-server",
"headers": {
"Authorization": "Basic <base64 of username:application-password>"
}
}
}
}