# Local by Flywheel

> Use this tool when you need to seamlessly connect to Local by Flywheel WordPress development environments and execute SQL queries against WordPress databases. It solves the problem of dynamic MySQL socket paths by automatically detecting and connecting to active mysqld instances, providing a reliable and read-only query interface. Ideal for WordPress developers, it integrates with Local's directory structure and provides a single mysql_query tool for executing SQL queries during local development workflows.

Canonical page: https://skillsregistry.net/skills/local-wp  
JSON: https://api.skillsregistry.net/v1/skills/local-wp

## Description

A specialized MCP server built by Very Good Plugins that automatically detects and connects to Local by Flywheel WordPress development environments, solving the common problem of dynamic MySQL socket paths that change when Local sites restart. The implementation scans running processes to find active mysqld instances, extracts configuration details, and dynamically builds the correct connection parameters without requiring manual path updates. Built with TypeScript and featuring read-only query safety, automatic fallback to environment variables, and seamless integration with Local's unique directory structure, it provides a single mysql_query tool for executing SQL against WordPress databases and is designed for WordPress developers who need reliable database access through AI assistants during local development workflows.

## Trust

- **Trust score (0–1):** 0.50
- **Verification tier:** unverified

## Facts

- **Version:** 1.0.0
- **Skill type:** atomic
- **Execution layer:** mcp-remote
- **Runtime environment:** api
- **Category:** database
- **Updated:** 2026-04-29

## Source

- **Source listing:** [PulseMCP](https://www.pulsemcp.com/servers/local-wp)
- **Repository:** <https://github.com/verygoodplugins/mcp-local-wp>

## Use it

Resolve this record through the SkillsRegistry MCP server (no auth, read-only):

```
claude mcp add --transport http --scope user skillsregistry https://api.skillsregistry.net/mcp
```

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_skill",
    "arguments": {
      "slug": "local-wp"
    }
  }
}
```

REST: `GET https://api.skillsregistry.net/v1/skills/local-wp` · pull for local use: `GET https://api.skillsregistry.net/v1/skills/local-wp/pull`

---
SkillsRegistry indexes agent skills from public registries and GitHub. Skills we have analysed are scanned with Circle-IR and scored on six dimensions; each listing states its scan coverage. More: https://skillsregistry.net/llms.txt
