# WP DevDocs MCP server

> Lets AI assistants search and validate WordPress hooks, block APIs, docs, and theme.json properties against indexed source code.

- Repository: https://github.com/pluginslab/wp-devdocs-mcp
- Page: https://hostedmcp.org/servers/pluginslab/wp-devdocs-mcp
- Transport: —
- Stars: 75
- License: MIT

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `GITHUB_TOKEN` | no | no |  |

## FAQ

### What does wp-devdocs-mcp do for AI coding assistants?

It indexes hooks, block registrations, JS APIs, and docs from WordPress source so the assistant can search and validate names before writing code.

### How do I install wp-devdocs-mcp?

Install it globally with npm or run it directly with npx.

### Can I index my private or local WordPress plugins?

Yes. Use the github-private type with a token stored in an environment variable, or point at a local folder with the local-folder type.

### Which WordPress sources can I add as presets?

Presets include wp-core, gutenberg-source, gutenberg-docs, woocommerce, plugin-handbook, rest-api-handbook, wp-cli-handbook, admin-handbook, and theme-json.

### How does the AI confirm a hook name is real?

The validate_hook tool does an exact-match check and returns VALID, NOT_FOUND with suggestions, or REMOVED for deprecated hooks.
