Back to Home
verygoodplugins icon

mcp-local-wp

Verified Safe

by verygoodplugins

Overview

Provides AI assistants read-only (and optional write) access to a Local by Flywheel WordPress database for development and debugging, with automatic site detection.

Installation

Run Command
npx -y @verygoodplugins/mcp-local-wp@latest

Environment Variables

  • MYSQL_ALLOW_WRITES
  • DEBUG
  • MYSQL_DB
  • MYSQL_HOST
  • MYSQL_PORT
  • MYSQL_USER
  • MYSQL_PASS
  • MYSQL_SOCKET_PATH
  • LOCAL_RUN_DIR
  • LOCAL_SITES_JSON
  • SITE_ID
  • SITE_NAME

Security Notes

The server implements strong security measures for database interaction. Read-only queries are strictly enforced (SELECT/SHOW/DESCRIBE/EXPLAIN). Write operations (INSERT/UPDATE/DELETE) are opt-in via environment variable (`MYSQL_ALLOW_WRITES=true`) and require parameterized WHERE clauses for UPDATE/DELETE, preventing broad data modification. Schema modification operations (CREATE/DROP/ALTER/TRUNCATE) are explicitly blocked. All queries are limited to single statements, and subqueries are disallowed in write operations. SQL parameterization is used to prevent injection. Local by Flywheel site detection uses `ps aux` and file system access, which is standard for such utilities and does not process user-provided paths in a risky manner. Default MySQL credentials `root`/`root` are typical for a local development environment and can be overridden by environment variables.

Similar Servers

Stats

Interest Score37
Security Score9
Cost ClassMedium
Avg Tokens750
Stars8
Forks4
Last Update2026-01-15

Tags

wordpresslocal-by-flywheelmysqldatabaseai-tools