A Laravel 12 MCP (Model Context Protocol) package that provides AI agents with comprehensive API discovery and analysis capabilities. LMAD enables AI
Connect Lmad to Claude, Cursor or any other MCP client and it stops being a tab you switch to. A Laravel 12 MCP (Model Context Protocol) package that provides AI agents with comprehensive API discovery and analysis capabilities. LMAD enables AI coding assistants to understand your Laravel application's API structure, validation. The lmad mcp server is what makes that connection.
The toolset is worth reading before you wire it up, because it tells you what the integration is really for:
list_api_routes — List all API routes with optional filters for path, method, domain, and vendor routesget_route_details — Get detailed information about a specific route including controller, middleware, and file locationsget_request_rules — Parse FormRequest validation rules, custom error messages, and authorization logicget_response_schema — Analyze what an endpoint returns (JsonResource, Model, array, JsonResponse)analyze_endpoint — Complete endpoint analysis combining route, controller, request, and response informationConfiguration is passed through the environment: APP_ENV, LARAVEL_ROOT. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.
Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client. The configuration blocks on this page cover the common clients.
This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Lmad's toolset — list_api_routes, get_route_details, get_request_rules and 2 more — is a fair guide to whether it matches your workflow. It is maintained by 0xmergen; worth a glance at recent repository activity before you build anything load-bearing on it.
This entry was verified against Lmad's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.
| Tool | What it does |
|---|---|
| list_api_routes | List all API routes with optional filters for path, method, domain, and vendor routes |
| get_route_details | Get detailed information about a specific route including controller, middleware, and file locations |
| get_request_rules | Parse FormRequest validation rules, custom error messages, and authorization logic |
| get_response_schema | Analyze what an endpoint returns (JsonResource, Model, array, JsonResponse) |
| analyze_endpoint | Complete endpoint analysis combining route, controller, request, and response information |
**For HTTP-based MCP server:**
```json
{
"mcpServers": {
"lmad": {
"url": "http://localhost:8000/mcp/lmad"
}
}
}Configuration as documented by the project. Restart the client after saving.
| Variable | Description | Required |
|---|---|---|
| APP_ENV | Configuration value read at startup. | Optional |
| LARAVEL_ROOT | Configuration value read at startup. | Optional |
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.