{"type":"mcp_server","name":"laravel-artisan-mcp","description":"This repository provides a Model Context Protocol (MCP) server that securely executes whitelisted Laravel Artisan commands from AI assistants like Claude, bridging natural language conversations with local Laravel project management.","category":"Developer Tools","language":"Python","stars":6,"forks":0,"owner":"diggy","github_url":"https://github.com/diggy/laravel-artisan-mcp","homepage":null,"setup":"## Setup\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/diggy/laravel-artisan-mcp.git\n   cd laravel-artisan-mcp\n   ```\n\n2. Create a virtual environment:\n   ```bash\n   uv init\n   uv venv\n   source .venv/bin/activate  # On Windows: .venv\\Scripts\\activate\n   ```\n\n3. Install dependencies:\n   ```bash\n   uv add \"mcp[cli]\"\n   ```\n\nThe server requires `ARTISAN_DIRECTORY` and `WHITELISTED_COMMANDS` environment variables, which can be provided via command line, `.env` file, or Claude Desktop configuration.","tools":"## Available Tools\n\n1. Access a single directory containing a Laravel project (Allows the server to interact with a specific Laravel project). \n2. Automatically locate PHP on your system (The server automatically finds the PHP executable).\n3. Execute only whitelisted Artisan commands (The server only runs pre-approved Artisan commands).\n4. View all available Artisan commands (The server can display all Artisan commands in the project).\n5. `run_artisan` (Executes a whitelisted Artisan command).\n6. `list_all_artisan_commands` (Displays all available Artisan commands in the Laravel application).\n7. `artisan://commands` (Returns a list of all whitelisted commands configured for the server).","faq":null,"created_at":"2025-03-25T23:41:15+00:00","updated_at":"2025-03-26T20:46:59+00:00","source_url":"https://model-context-protocol.com/servers/laravel-artisan-commands-ai-execution-server","related_articles":[]}