
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 lets Claude and other MCP clients run whitelisted Laravel Artisan commands in a configured local Laravel project directory.
Laravel Artisan MCP Server is cataloged as an MCP server attributed to diggy. An MCP server that lets Claude and other MCP clients run whitelisted Laravel Artisan commands in a configured local Laravel project directory. 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.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
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.
No, it only executes commands included in the WHITELISTED_COMMANDS configuration.
The README recommends dev or testing environments and cautions against production use without safeguards.
README.md · 2b58e624ef28 · 采集于 2026-11-13 12:13:58 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
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-diggy)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
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.