Linux 软件免费装
Banner图

Zen MCP Bridge

开发者 guramzhgamadze
更新时间 2026年7月27日 01:45
PHP版本: 8.0 及以上
WordPress版本: 7.0
版权: GPLv2 or later
版权网址: 版权信息

标签

ai connector claude anthropic mcp

下载

3.2.2

详情介绍:

Zen MCP Bridge turns your WordPress site into an MCP server that Claude.ai can connect to. Once connected, Claude can inspect your site's architecture in real time — plugins, database schema, source code, ACF fields, REST routes, cron jobs and more — so it can write plugins, debug issues and answer questions tailored to your exact setup. Read-only by default. Claude cannot write, delete or modify anything unless you explicitly enable the opt-in write mode — and even then it can only work with drafts, allowlisted options, plugin toggles, caches and terms, with every action audited. Features Available tools Read: wp_get_site_info, wp_get_plugins, wp_get_themes, wp_get_post_types, wp_get_taxonomies, wp_get_options, wp_query_posts, wp_get_post, wp_get_db_schema, wp_db_query, wp_list_files, wp_read_file, wp_search_code, wp_get_logs, wp_get_hooks, wp_get_acf_fields, wp_get_users, wp_get_menus, wp_get_cron_jobs, wp_get_transients, wp_get_scheduled_actions, wp_get_active_widgets, wp_get_rest_routes, wp_get_woocommerce, wp_get_elementor. Write (only with write mode enabled): wp_create_draft_post, wp_update_draft_post, wp_update_option, wp_toggle_plugin, wp_clear_cache, wp_create_term.

安装:

  1. Upload the plugin to wp-content/plugins/zen-mcp-bridge, or install it from your WordPress admin.
  2. Activate the plugin through the Plugins screen.
  3. Go to Settings → MCP Bridge to find your endpoint URL and Bearer token.
  4. Flush rewrite rules once: Settings → Permalinks → Save Changes.

屏幕截图:

  • Per-tool switches and write mode — every tool can be turned off individually (write tools are badged); write mode is off by default and has its own option allowlist.
  • OAuth 2.1 (advanced) — authorization, token and discovery URLs, extra redirect URIs, and the WordPress Abilities API status card.
  • Active OAuth tokens — issued tokens with client, user, issue/expiry and last-used times, each revocable on the spot, plus the built-in health check.
  • Health check, audit log and emergency revocation — every tool call is recorded with credential, tool, arguments, IP and outcome; all OAuth tokens can be invalidated instantly.

升级注意事项:

3.2.2 The wp_db_query tool changed from raw SQL to a structured, injection-proof table reader (name a table + columns + filters instead of writing SQL). Joins/aggregations are no longer available; everything else is unchanged. 3.2.1 Review-compliance release: client_id derivation no longer uses a core auth key, the consent page uses an external stylesheet, and the Claude.ai/Anthropic external service is now documented. No action needed. 3.2.0 Adds opt-in write mode (off by default — nothing changes unless you enable it): draft-only post tools, allowlisted option updates, plugin toggling, cache clearing and term creation, gated behind a consent-screen write grant and fully audited. 3.1.0 Security hardening: cache-safe revocation, token manager, audit log, per-tool switches, secret redaction. Existing OAuth sessions must re-authenticate once after updating; Bearer Token connections are unaffected. 3.0.0 Renamed to Zen MCP Bridge. The MCP endpoint URL changed to …/wp-json/zen-mcp/v1/bridge — update your Claude.ai connector and re-authenticate after upgrading. Your Bearer token and settings are migrated automatically.

常见问题:

How do I connect with a Bearer token (simplest)?

  1. In Claude.ai: Profile → Settings → Connectors → Add custom connector.
  2. Paste your MCP endpoint URL (shown on Settings → MCP Bridge), for example https://your-site.com/wp-json/zen-mcp/v1/bridge.
  3. Set the auth type to Bearer Token (or API Key) and paste the token from the settings page.
  4. Save. Bearer tokens never expire.

How does the OAuth 2.1 login flow work?

Claude.ai auto-discovers the OAuth server from the /.well-known/ URLs and opens a login page on your site, where an administrator clicks Allow Access. If Claude.ai asks for details manually, use the Authorization URL and Token URL shown in the OAuth (advanced) section of the settings page, any Client ID except the literal text "Bearer Token", and the scope claudeai.

I get a 404 / rest_no_route error

Go to Settings → Permalinks and click Save Changes to flush rewrite rules, and confirm the plugin is active.

The Authorization header is always empty (Apache + FastCGI)

This is handled automatically. If it persists, add this line to your .htaccess: RewriteRule ^ - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

How do I enable debug logging?

Define WP_DEBUG, WP_DEBUG_LOG (true) and WP_DEBUG_DISPLAY (false) in wp-config.php, then read wp-content/debug.log or use the wp_get_logs tool.

Is it safe?

By default, yes — everything is read-only: credentials are redacted, database reads are structured (no raw SQL — table and column names are whitelisted against the live schema and every value is parameterized), file access is contained within wp-content, and OAuth uses mandatory PKCE with single-use, expiring authorization codes. Write access exists only when an administrator switches on write mode, is limited to drafts, allowlisted options, plugin toggles, caches and terms, and every write is recorded in the audit log. Deleting content, publishing, managing users and write SQL are impossible regardless of settings.

How does write mode work?

Enable it under Settings → MCP Bridge → Write mode (off by default). The static Bearer token then gains write access; OAuth sessions must additionally tick "Allow write access" on the consent screen (the claudeai:write scope). Six scoped tools become available; drafts can never be published, options must be on an allowlist you control (site identity, code-execution and secret options are refused even if listed), and the plugin can never toggle itself off. Each write tool can be disabled individually and every call is audited.

How does this relate to the "AI Provider for Anthropic" plugin?

They point in opposite directions and can coexist: that plugin lets WordPress call Claude's API; Zen MCP Bridge lets Claude.ai read this site. When AI Provider for Anthropic is active, Zen MCP Bridge automatically stops registering its tools as WordPress Abilities so the site's AI surface has a single owner — Claude.ai access via the MCP endpoint is unaffected. The zenmcp_enable_abilities filter overrides this.

更新日志:

3.2.2 3.2.1 3.2.0 3.1.0 3.0.0 2.8.0 2.6.0 2.5.0 2.2.0 – 2.4.0 2.1.0