Skip to content
verygoodplugins avatar

MCP Local WP

verygoodplugins/mcp-local-wp

Read-only WordPress database access for Local by Flywheel sites: queries, schema inspection, and site selection.

CCM score
78 of 100
GitHub stars
35
tools
4
transport
STDIO
last updated
Oct 12, 2026
View on GitHub

Own this MCP server? Claim it

What it does

  • Reads data with mysql_query for single SELECT, CTE, SHOW, DESCRIBE, or EXPLAIN statements, plus mysql_schema for paged table listings
  • Checks context with mysql_current_site and mysql_list_sites, which report the selected site and running status
  • Runs locally over stdio, auto-detects the active Local mysqld, and needs Node.js 24 or newer
  • Designed for debugging plugin data, such as tracing custom tables like LearnDash, without guessing schemas

Tools

4 tools

Public tool metadata for what this MCP can expose to an agent.

mysql_queryExecute read-only SQL against your Local WordPress database.

Execute read-only SQL against your Local WordPress database.

No parameter schema in public metadata yet.

mysql_schemaInspect database schema using INFORMATION_SCHEMA.

Inspect database schema using INFORMATION_SCHEMA.

No parameter schema in public metadata yet.

mysql_current_siteGet information about the currently connected Local WordPress site.

Get information about the currently connected Local WordPress site.

No parameter schema in public metadata yet.

mysql_list_sitesList all available Local WordPress sites and their running status.

List all available Local WordPress sites and their running status.

No parameter schema in public metadata yet.

Readme

MCP Server Local WP

🎯 What if your AI assistant could actually SEE your WordPress database?

A Model Context Protocol (MCP) server that gives AI assistants like Claude and Cursor direct, read-only access to your Local by Flywheel WordPress database. No more guessing table structures. No more writing SQL queries blind. Your AI can now understand your actual data.

Upgrading to 2.0

Version 2.0 requires Node.js 24 or newer and uses MCP SDK v2. Existing tool names and site selectors remain available. Query results are now { "rows": [...] }; schema listing returns { "tables": [...], "hasMore": false, "nextAfter": null } with bounded pages of table names. Successful tools return matching structured and JSON-text results, and failures set isError: true.

Database and Local configuration are resolved lazily, so MCP tool discovery works without a running site. Explicit MYSQL_HOST or MYSQL_SOCKET_PATH selects the manual connection. Keep stdin open until all tool responses arrive; EOF closes the session. The parent watchdog also cleans up abandoned stdio servers.

🤔 What's an MCP Server?


View the full README on GitHub

Details

Repository
github.com/verygoodplugins/mcp-local-wp
Website
verygoodplugins.com/?utm_source=mcp-registry
Categories
Databases, Developer Tools
Package
@verygoodplugins/mcp-local-wp
Transport
STDIO
Registry
MCP registry, active

More from verygoodplugins

All 6

Similar to MCP Local WP

More Databases