Lmad MCP Server

A Laravel 12 MCP (Model Context Protocol) package that provides AI agents with comprehensive API discovery and analysis capabilities. LMAD enables AI

Local serverstdio

What is the Lmad MCP Server?

A Laravel 12 MCP (Model Context Protocol) package that provides AI agents with comprehensive API discovery and analysis capabilities. LMAD enables AI coding

What the server does

  • Route Discovery — List and filter API routes by path, HTTP method, domain, and vendor exclusion
  • Controller Inspection — Get detailed controller method information including file paths and line numbers
  • Request Validation Analysis — Parse FormRequest validation rules, custom error messages, and authorization logic
  • Response Schema Analysis — Analyze controller return types, JsonResource structures, and Model attributes
  • Complete Endpoint Analysis — Get comprehensive information about any endpoint in a single call
  • Dynamic Resources — Access controller and route information via MCP URI templates

Credentials and setup notes

  • PHP: 8.2 or higher - Laravel: 12.x - laravel/mcp: 0.5.x or higher

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
list_api_routesList all API routes with optional filters for path, method, domain, and vendor routes
get_route_detailsGet detailed information about a specific route including controller, middleware, and file locations
get_request_rulesParse FormRequest validation rules, custom error messages, and authorization logic
get_response_schemaAnalyze what an endpoint returns (JsonResource, Model, array, JsonResponse)
analyze_endpointComplete endpoint analysis combining route, controller, request, and response information

How to install the Lmad MCP Server

{
  "mcpServers": {
    "lmad": {
      "command": "php",
      "args": [
        "/path/to/your/lmad/project/artisan",
        "mcp:serve",
        "--server=lmad"
      ],
      "env": {
        "APP_ENV": "local"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

  • PHP: 8.2 or higher - Laravel: 12.x - laravel/mcp: 0.5.x or higher
VariableDescriptionRequired
APP_ENVDeclared in the maintainer’s client configuration.Check documentation

Example prompts to try

  • “Use Lmad to list api routes.”
  • “Use Lmad to get route details.”
  • “Use Lmad to get request rules.”

Frequently asked questions

A Laravel 12 MCP (Model Context Protocol) package that provides AI agents with comprehensive API discovery and analysis capabilities. LMAD enables AI coding Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.