mcp-local-wp
Verified Safeby 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
npx -y @verygoodplugins/mcp-local-wp@latestEnvironment 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
mcp-ai-wpoos
Provides a stable API and server framework for integrating AI models and tools into WordPress, enabling advanced AI assistant capabilities and workflow automation.
DatabaseMcpServer
Provides a robust and secure database access layer for AI assistants, supporting 19 types of databases with single-instance multi-database dynamic switching and over 50 tools for data and schema management.
chrono-mcp
Chronos-MCP acts as a local-first MCP server that indexes terminal and browser history for AI assistants, enabling instant recall and context awareness.
mcp-tutorial-1
Provides a Model Context Protocol (MCP) server for local SQLite database operations, integrating with AI-enabled IDEs and tools like Cursor, VS Code, and Claude Desktop.