MCP.so
Sign In
Servers

WordPress MCP Extension for VS Code

@sharmashivanand

A VS Code extension implementing MCP server for WordPress integration

Overview

What is WordPress MCP Extension for VS Code?

This VS Code extension implements a Model Context Protocol (MCP) server for WordPress integration. It automatically detects your WordPress environment, connects to the database, and provides context-aware coding assistance, making WordPress development easier and more intuitive. It is for developers working with WordPress in VS Code.

How to use WordPress MCP Extension for VS Code?

Open a folder containing a WordPress installation or a child directory of one. The extension auto-searches for wp-config.php. Use the command WordPress MCP: Connect to WordPress to explicitly connect. Then use commands like WordPress MCP: Show WordPress Configuration, WordPress MCP: Query Database, or chat queries with @wordpress to interact with your WordPress environment.

Key features of WordPress MCP Extension for VS Code

  • Automatically detects wp-config.php by searching parent directories
  • Extracts WordPress database credentials and connects to the database
  • Provides context-aware code completion for WordPress functions and hooks
  • Shows documentation on hover, including the current WordPress version
  • Offers WordPress-specific code actions and quick fixes

Use cases of WordPress MCP Extension for VS Code

  • Develop WordPress plugins or themes with intelligent code assistance
  • Quickly view database credentials and WordPress configuration without leaving the editor
  • Execute natural language queries against the WordPress database via chat
  • Check active plugins, themes, and custom post types from within VS Code

FAQ from WordPress MCP Extension for VS Code

What dependencies are required?

VS Code 1.74.0 or higher and a WordPress installation that the extension can access. Node.js and npm are needed for development.

How does the extension find the WordPress installation?

It automatically searches for a wp-config.php file starting from the current directory up through parent directories.

What are the known limitations?

PHP serialization parsing is simplified and may not handle all serialized data formats. The database connection needs to close properly when VS Code shuts down.

Does the extension require any additional settings?

No, it doesn't require any additional settings.

How can I test the MCP integration?

Use the @wordpress mention in the VS Code chat interface with queries like "What is the database name in wp-config.php?" or "Show me active plugins."

Tags

More from Developer Tools