Skip to content

Add MCP server #593

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: trunk
Choose a base branch
from
Open

Add MCP server #593

wants to merge 6 commits into from

Conversation

chriszarate
Copy link
Member

Adds an MCP server via WP Feature API + WordPress MCP. This allows us to implement custom functionality and expose it to agentic tools. Here is GitHub Copilot Chat in VS Code using MCP to list the data sources in my local environment, with UUIDs and code snippets:

Screen.Recording.2025-06-10.at.15.08.05.mov

This was an experiment to make sure MCP was possible, but I additional strong use cases don't come immediately to mind. What would you like to see integrated with MCP?

Try it

  1. Restart your local environment to pick up the new plugins defined in .wp-env.json.
  2. Go to Settings > MCP > Authentication and create a JWT token.
  3. Start the MCP server inspector:
npx @modelcontextprotocol/inspector \
  -e WP_API_URL=http://localhost:8888/ \
  -e JWT_TOKEN=your-jwt-token-here \
  npx @automattic/mcp-wordpress-remote@latest
  1. Hit "Connect".
    1. Navigate to "Tools" and "List tools".
  2. Select the wp_feature_list-remote-data-block-data-sources tool, and run.

@chriszarate chriszarate requested a review from a team as a code owner June 10, 2025 19:15
@chriszarate chriszarate requested review from maxschmeling and removed request for a team June 10, 2025 19:15
Copy link
Contributor

Test this PR in WordPress Playground.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant