Connect VS Code + Copilot to your WordPress site

Connect VS Code + Copilot to your site’s MCP URL, sign in and approve access in WordPress.

Steps checked on 16 November 2026. Guide available; not tested end to end yet. Steps look different? See VS Code + Copilot’s help

Before you start

  • MCPMate is installed on your site, and its setup checks pass.
  • An installed client that supports remote MCP and OAuth sign-in. Availability can depend on your plan or workspace settings.
  • WordPress 6.0 or later and PHP 7.4 or later, your site on HTTPS, permalinks set to anything but “Plain”, and an administrator account.

Your MCP URL

Copy yours from MCPMate → Connections. It looks like this:

Your MCP URL
https://your-site.com/wp-json/mcpmate/mcp

Steps

  1. Step 1

    In VS Code, run Chat: Open Customizations and select MCP Servers, then Add Server in the User group. Choose HTTP, paste your MCP URL and name the server wordpress.

  2. Step 2

    Start the server and choose Authenticate when prompted. Your workspace policy must allow MCP servers.

  3. Step 3

    Approve on the page that opens on this site.

Approve on your site

The approval page shows three things:

  • the app’s name, marked “not verified” if it registered itself;
  • where it will send you back;
  • the access choice: Full or Read-only.

Approval links last 10 minutes. If one expires, start again from VS Code + Copilot.

Try it

Three first prompts. They only read, so nothing on your site changes.

  • Prompt

    Give me a health summary of my WordPress site.

  • Prompt

    Which theme and plugins does my site use, and are any out of date?

  • Prompt

    Read my homepage and suggest three ways to make it clearer.

If it doesn’t work

The approval page warns about “this computer”. That’s expected for desktop apps like VS Code + Copilot, so you can approve.

If sign-in does not open, check that the client supports remote MCP with OAuth, then run the site’s connection checks.

For hosting problems, such as a stripped Authorization header or a blocked /.well-known address, see troubleshooting. Each fix names the Site checks row in the plugin that matches it.

Other apps