
A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

An MCP server that connects AI assistants to a local Laravel project and runs only administrator-whitelisted Artisan commands.
Laravel Artisan MCP Server is cataloged as an MCP server attributed to entanglr. An MCP server that connects AI assistants to a local Laravel project and runs only administrator-whitelisted Artisan commands. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Laravel Artisan MCP Server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
Only commands included in the WHITELISTED_COMMANDS environment variable are executed.
The README recommends using it only in development or testing environments, and production use only with full understanding of security implications and appropriate safeguards.
README.md · 2b58e624ef28 · Fetched 2026-11-13 10:27:56 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
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 Laravel applications, allowing controlled management of Laravel projects through natural language conversations.

Clone this repository:
git clone https://github.com/diggy/laravel-artisan-mcp.git
cd laravel-artisan-mcp
Create a virtual environment:
uv init
uv venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
Install dependencies:
uv add "mcp[cli]"
The server requires the following environment variables:
ARTISAN_DIRECTORY: Absolute path to the Laravel project containing the Artisan executableWHITELISTED_COMMANDS: Comma-separated list of allowed Artisan commands (e.g., route:list,cache:clear,make:controller or any default or custom Commands registered in your Laravel application)You can provide these variables in several ways:
Directly in the command line:
ARTISAN_DIRECTORY="/absolute/path/to/your/laravel/project" WHITELISTED_COMMANDS="route:list,cache:clear,make:controller" uv run artisan_mcp_server.py
Using a .env file:
ARTISAN_DIRECTORY=/absolute/path/to/your/laravel/project
WHITELISTED_COMMANDS=route:list,cache:clear,make:controller
In the Claude Desktop configuration (cf. section on Claude Integration below)
The MCP Inspector provides a graphical interface for testing your server before integrating it with Claude:
# Run with direct environment variables
ARTISAN_DIRECTORY="/absolute/path/to/your/laravel/project" WHITELISTED_COMMANDS="route:list,cache:clear,make:controller" uv run mcp dev artisan_mcp_server.py
# Or using an env file
uv run mcp dev artisan_mcp_server.py --env-file .env
Once the Inspector is running:
list_available_artisan_commands: Shows all whitelisted commands in your Laravel projectrun_artisan: Executes a specific command (must be whitelisted)To use this server with Claude Desktop:
Ensure Claude Desktop is installed
Edit the Claude Desktop configuration file:
macOS:
nano ~/Library/Application\ Support/Claude/claude_desktop_config.json
Windows:
notepad %APPDATA%\Claude\claude_desktop_config.json
Add the following configuration (adjust paths as needed):
{
"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"
}
}
}
}
Restart Claude Desktop
run_artisanExecutes a whitelisted Artisan command.
Parameters:
command: The Artisan command to run (e.g., 'cache:clear')Example usage in Claude: "Run the route:list command to show all available routes in my Laravel app."
list_available_artisan_commandsDisplays all available whitelisted Artisan commands in the Laravel application.
Example usage in Claude: "Show me all available Artisan commands."
This server implements several security measures (according to Claude):
The server cannot find the path to your Laravel project. Check that:
The specified directory does not contain the Artisan executable. Verify that:
The server cannot find PHP in your PATH. Ensure that:
This Laravel Artisan MCP Server is provided as-is, without any warranties or guarantees of any kind. By using this software, you assume all risks associated with its operation. The server has access to execute commands within your Laravel environment, which could potentially impact your application data and functionality. We strongly recommend using this tool only in development or testing environments. Use this server with production Laravel applications only if you fully understand the security implications and have implemented appropriate safeguards. Always maintain proper backups of your Laravel project before allowing AI assistants to execute Artisan commands through this interface. The authors and contributors of this software cannot be held responsible for any damages, data loss, or security breaches that may result from the use or misuse of this tool. You are solely responsible for configuring appropriate command whitelisting and access controls. This software has not undergone formal security auditing and should be considered experimental. Use at your own risk.
This project is licensed under the MIT License - see the LICENSE file for details.
This MCP server was crafted with assistance from Claude, Anthropic's AI assistant (who insisted on adding this humble credit while promising it wouldn't include smiley emoticons or excessive enthusiasm).
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Laravel Artisan MCP Server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/laravel-artisan-mcp)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.