Supabase
MCP server for interacting with the Supabase platform
作者提供的说明(英文原文)
WordPress database access via Local by Flywheel. Execute read-only MySQL queries and inspect schema.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"local-wp": {
"command": "npx",
"args": [
"-y",
"@verygoodplugins/mcp-local-wp"
]
}
}
}在终端中运行这条命令
claude mcp add local-wp -- npx -y @verygoodplugins/mcp-local-wp粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"local-wp": {
"command": "npx",
"args": [
"-y",
"@verygoodplugins/mcp-local-wp"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"local-wp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@verygoodplugins/mcp-local-wp"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过 GitHub 账户 verygoodplugins 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(2.0.0)于26天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:Supabase, MongoDB MCP Server, Elasticsearch MCP Server
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
MCP server for interacting with the Supabase platform
MongoDB Model Context Protocol Server
MCP server for interacting with Elasticsearch
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
🎯 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.
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.
Think of MCP (Model Context Protocol) as a secure bridge between AI assistants and your development tools. Instead of copying and pasting database schemas or query results, MCP servers let AI assistants directly interact with your tools while you maintain complete control.
Without MCP: "Hey AI, I think there's a table called wp_something with a column that might be named user_meta... can you write a query?" With MCP: "Hey AI, check what's in my database and write the exact query I need."
Picture this: You're debugging a LearnDash integration issue. Quiz results aren't syncing properly. You fire up Cursor to help diagnose the problem, but without database access, even the most advanced AI is just making educated guesses about your table structures.
Here's an actual support ticket we were working on. The task was simple: fetch quiz activity data from LearnDash tables.
❌ Before MCP Server (AI Flying Blind):
The AI tried its best, suggesting this query:
$quiz_activities = $wpdb->get_results(
$wpdb->prepare( 'SELECT post_id, activity_meta FROM ' . esc_sql( LDLMS_DB::get_table_name( 'user_activity' ) ) . ' WHERE user_id=%d AND activity_type=%s AND activity_status=1 AND activity_completed IS NOT NULL', $user_id, 'quiz' ), ARRAY_A );
Problem? The activity_meta column doesn't exist! LearnDash stores metadata in a completely separate table with a different structure. Without database access, the AI made reasonable but incorrect assumptions. You'd spend the next 20 minutes manually correcting table names, discovering relationships, and rewriting the query.
✅ After MCP Server (AI With X-Ray Vision):
With database access, the AI immediately saw the actual table structure and wrote:
$quiz_activities = $wpdb->get_results(
$wpdb->prepare( 'SELECT ua.post_id, ua.activity_id, uam.activity_meta_key, uam.activity_meta_value FROM ' . esc_sql( LDLMS_DB::get_table_name( 'user_activity' ) ) . ' ua LEFT JOIN ' . esc_sql( LDLMS_DB::get_table_name( 'user_activity_meta' ) ) . ' uam ON ua.activity_id = uam.activity_id WHERE ua.user_id=%d AND ua.activity_type=%s AND ua.activity_completed IS NOT NULL AND uam.activity_meta_key IN (%s, %s, %s)', $user_id, 'quiz', 'percentage', 'points', 'total_points' ), ARRAY_A );
The difference? The AI could see that metadata lives in a separate user_activity_meta table, understood the relationship through activity_id, and knew exactly which meta keys were available. First try. Zero guesswork. Problem solved.
When your AI assistant can read your database:
When using the original mcp-server-mysql with Local by Flywheel, developers face several challenges:
lx97vbzE7) that change when sites are restartedThis MCP server automatically detects your active Local by Flywheel MySQL instance by:
mysqld instancesWhen you have multiple Local sites, the server uses priority-based site selection to ensure you're always connected to the right database:
Specify which site to connect to in your MCP config:
{
"mcpServers": { "wordpress-dev": { "command": "npx", "args": ["-y", "@verygoodplugins/mcp-local-wp@latest"], "env": { "SITE_NAME": "dev" } } } }
Or use the site ID directly:
{
"env": { "SITE_ID": "lx97vbzE7" } }
When using Claude Code or Cursor, the server automatically detects which site you're working in based on your current directory. If you're editing files in /Users/.../Local Sites/dev/app/public/wp-content/plugins/my-plugin/, the server connects to the "dev" site's database automatically.
Use the mysql_current_site tool to see which site you're connected to:
{
"siteName": "dev", "siteId": "lx97vbzE7", "sitePath": "/Users/.../Local Sites/dev", "domain": "dev.local", "selectionMethod": "cwd_detection", }
Use mysql_list_sites to see all available sites and their status.
Execute read-only SQL against your Local WordPress database.
Input fields:
sql (string): Single read-only statement (SELECT, including WITH CTEs, or SHOW/DESCRIBE/EXPLAIN)params ((string | number | boolean | null)[]): Optional parameter values for ? placeholdersExample Usage:
-- With parameters
SELECT * FROM wp_posts WHERE post_status = ? ORDER BY post_date DESC LIMIT ?; -- params: ["publish", "5"]
-- Direct queries SELECT option_name, option_value FROM wp_options WHERE option_name LIKE '%theme%'; SHOW TABLES; DESCRIBE wp_users;
-- Common table expression (CTE) WITH published AS (SELECT ID, post_title FROM wp_posts WHERE post_status = ?) SELECT * FROM published LIMIT 10; -- params: ["publish"]
Inspect database schema using INFORMATION_SCHEMA.
hasMore and nextAfterprefix (case-sensitive literal prefix), limit (1–200), after (previous page's nextAfter), and includeStats (defaults to false)table: returns columns and indexes for that tableWhen hasMore is true, pass nextAfter as after to fetch the next page, keeping the same prefix. The last page has hasMore: false and nextAfter: null. Listing rows contain only table_name by default; includeStats: true adds engine, estimated row count, data bytes and index bytes. % and _ in a prefix are literal characters. Use table alone for detailed inspection; listing options cannot be combined with it. Each page reflects the current schema, so changes to tables between requests can affect the listing.
Examples:
// First page of table names
{ "tool": "mysql_schema", "args": {} }
// Filter to WordPress tables and include statistics { "tool": "mysql_schema", "args": { "prefix": "wp_", "limit": 50, "includeStats": true } }
// Continue a filtered listing using the previous response's nextAfter { "tool": "mysql_schema", "args": { "prefix": "wp_", "limit": 50, "after": "wp_posts" } }
// Inspect a specific table { "tool": "mysql_schema", "args": { "table": "wp_posts" } }
Get information about the currently connected Local WordPress site.
Returns the site name, ID, path, domain, socket path, and how the site was selected (env var, cwd detection, or auto-detection).
{
"tool": "mysql_current_site", "args": {}, } // Returns: // { // "siteName": "dev", // "siteId": "lx97vbzE7", // "sitePath": "/Users/.../Local Sites/dev", // "domain": "dev.local", // "selectionMethod": "cwd_detection", // "socketPath": "/Users/.../Local/run/lx97vbzE7/mysql/mysqld.sock" // }
List all available Local WordPress sites and their running status.
{
"tool": "mysql_list_sites", "args": {}, } // Returns: // { // "sites": [ // { "id": "lx97vbzE7", "name": "dev", "domain": "dev.local", "running": true }, // { "id": "WP7lolWDi", "name": "staging", "domain": "staging.local", "running": false } // ], // "currentSiteId": "lx97vbzE7" // }
The easiest way to get started - no installation required:
Add this to your Cursor MCP configuration file (.cursor/mcp.json):
{
"mcpServers": { "mcp-local-wp": { "command": "npx", "args": ["-y", "@verygoodplugins/mcp-local-wp@latest"] } } }
Add this to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\\Claude\\claude_desktop_config.json
{
"mcpServers": { "mcp-local-wp": { "command": "npx", "args": ["-y", "@verygoodplugins/mcp-local-wp@latest"] } } }
For customization or local development:
git clone https://github.com/verygoodplugins/mcp-local-wp.git
cd mcp-local-wp npm install npm run build
{
"mcpServers": { "mcp-local-wp": { "command": "node", "args": ["/full/path/to/mcp-local-wp/dist/index.js"] } } }
For non-Local setups or custom configurations:
{
"mcpServers": { "mcp-local-wp": { "command": "npx", "args": ["-y", "@verygoodplugins/mcp-local-wp@latest"], "env": { "MYSQL_DB": "local", "MYSQL_HOST": "localhost",
只显示了开头部分;其余内容请在仓库中阅读