MCP server

MCP Local WP: Read-Only Database Access for Local Sites

MCP Local WP gives an AI client read-only SQL access to the database of a Local by Flywheel WordPress site, finding the running MySQL instance on its own.

Run
npx -y @verygoodplugins/mcp-local-wp@latest
View on GitHub

Stars, license and last push from GitHub. Install count as reported by the open skills directory.

What is MCP Local WP?

MCP Local WP is a Node.js MCP server from Very Good Plugins. It detects the running MySQL instance of a Local by Flywheel site and lets an AI client inspect the schema and run read-only SQL, so queries match your real tables instead of guesses.

MCP Local WP is a Model Context Protocol server for WordPress developers who work in Local by Flywheel. It lets the assistant look at the real database, so it stops guessing table and column names when it writes queries.

Instead of hardcoded socket paths, it scans for the running mysqld process, reads that site's configuration and connects. Explicit MySQL variables are the fallback for setups that are not Local.

How it behaves

  • Reads only by default: one SELECT, SHOW, DESCRIBE or EXPLAIN statement per call.
  • Runs reads inside a database enforced read-only transaction.
  • Picks a site by SITE_ID, SITE_NAME, working directory, running process, then newest socket.
  • Needs Node.js 24 or later as of version 2.0.

Who it is for

Best for

  • Plugin and theme developers debugging data issues on a Local site.
  • Developers who want an assistant to learn custom plugin tables before writing queries.

Not for

  • Content editing or page building. It reads data and does not manage posts through WordPress.
  • Live production databases. The README frames it as a local development tool.

Use it with UiChemy

This server inspects data on your machine. When you move to design, AI website builders for WordPress compares the routes, and LocalWP Agent Tools covers other Local tasks. Click Get Started on uichemy.com.