Laravel Artisan MCP Server

A Model Context Protocol (MCP) server that enables secure execution of Laravel Artisan commands through Claude and other MCP clients. This server acts as a bridge between AI assistants and your…

Local serverstdio

What is the Laravel Artisan MCP Server?

Laravel Artisan MCP Server is an MCP project maintained in the diggy/laravel-artisan-mcp repository. The maintainer describes its purpose as “A Model Context Protocol (MCP) server that enables secure execution of Laravel Artisan commands through Claude and other MCP clients. This server acts as a…”. Read the project documentation for the complete scope.

Local setup

The project provides a local client configuration using uv. Follow the repository’s build and installation steps before copying it, and replace example paths with the paths on your own computer.

Configuration values

The example declares ARTISAN_DIRECTORY, WHITELISTED_COMMANDS. Secret-looking values have been replaced with placeholders. Required and optional labels are shown only when the documentation states them.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

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
run_artisan
list_available_artisan_commands

How to install the Laravel Artisan MCP Server

{
  "mcpServers": {
    "laravel-artisan": {
      "command": "uv",
      "args": [
        "--directory",
        "/absolute/path/to/laravel-artisan-mcp",
        "run",
        "artisan_mcp_server.py"
      ],
      "env": {
        "ARTISAN_DIRECTORY": "/absolute/path/to/your/laravel/project",
        "WHITELISTED_COMMANDS": "route:list,cache:clear,make:controller"
      }
    }
  }
}

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

Configuration

VariableDescriptionRequired
ARTISAN_DIRECTORYDeclared in the maintainer’s client configuration.Check documentation
WHITELISTED_COMMANDSDeclared in the maintainer’s client configuration.Check documentation