|
| 1 | +--- |
| 2 | +title: MCP Docs Server |
| 3 | +order: 275 |
| 4 | +--- |
| 5 | + |
| 6 | +The full NativePHP documentation — for both [Mobile](/docs/mobile/getting-started/introduction) and [Desktop](/docs/desktop/getting-started/introduction) — is available over [MCP](https://modelcontextprotocol.io). Agents such as Claude Code, Cursor, and Copilot can search and read the docs while they work, instead of relying on training-data memory alone. |
| 7 | + |
| 8 | +It's hosted by NativePHP. There's nothing to install and no API key to create — just point your agent at this URL: |
| 9 | + |
| 10 | +``` |
| 11 | +https://nativephp.com/api/mcp/message |
| 12 | +``` |
| 13 | + |
| 14 | +## Quick connect |
| 15 | + |
| 16 | +### Claude Code |
| 17 | + |
| 18 | +```shell |
| 19 | +claude mcp add --transport http nativephp-docs https://nativephp.com/api/mcp/message |
| 20 | +``` |
| 21 | + |
| 22 | +Or commit `.mcp.json` to your repo so the whole team picks it up: |
| 23 | + |
| 24 | +```json |
| 25 | +{ |
| 26 | + "mcpServers": { |
| 27 | + "nativephp-docs": { |
| 28 | + "type": "http", |
| 29 | + "url": "https://nativephp.com/api/mcp/message" |
| 30 | + } |
| 31 | + } |
| 32 | +} |
| 33 | +``` |
| 34 | + |
| 35 | +### Cursor |
| 36 | + |
| 37 | +Create `.cursor/mcp.json` in your project, or `~/.cursor/mcp.json` to enable it everywhere: |
| 38 | + |
| 39 | +```json |
| 40 | +{ |
| 41 | + "mcpServers": { |
| 42 | + "nativephp-docs": { |
| 43 | + "type": "http", |
| 44 | + "url": "https://nativephp.com/api/mcp/message" |
| 45 | + } |
| 46 | + } |
| 47 | +} |
| 48 | +``` |
| 49 | + |
| 50 | +## What your agent can do |
| 51 | + |
| 52 | +Once connected, your agent gets these tools: |
| 53 | + |
| 54 | +- **`search_docs`** — full-text search across every platform and version |
| 55 | +- **`get_page`** — fetch a full page by path (e.g. `mobile/4/plugins/core/camera`) |
| 56 | +- **`get_navigation`** — the sidebar for a platform and version |
| 57 | +- **`list_apis`** — list pages in a version's `apis` section (Mobile v1/v2 only) |
| 58 | +- **`search_plugins`** — search the public plugin marketplace |
| 59 | +- **`get_plugin`** — fetch one marketplace plugin by composer name |
| 60 | + |
| 61 | +## Pair it with Laravel Boost |
| 62 | + |
| 63 | +This MCP tells your agent what NativePHP _can_ do. [Laravel Boost](https://laravel.com/ai/boost) tells it about _your_ application — routes, models, config, and package versions. Running both together works better than either alone. |
| 64 | + |
| 65 | +## More clients and details |
| 66 | + |
| 67 | +For VS Code / Copilot, `mcp-remote`, REST mirrors, rate limits, and the full client matrix, see the [Docs MCP Server](/mcp) page. |
0 commit comments