Laravel Setup
One-command setup for AI-powered Laravel development with Claude Code and MCP servers
What is Laravel Setup?
Laravel Setup is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to one-command setup for ai-powered laravel development with claude code and mcp servers
One-command setup for AI-powered Laravel development with Claude Code and MCP servers
This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- One-command setup for AI-powered Laravel development with Cl
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx laravel-claude-code-setupConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use Laravel Setup
Laravel Claude Code Setup is a one-command installer that configures Claude Code and a curated set of MCP servers specifically for Laravel PHP development. Running the script from your Laravel project root wires up global servers (GitHub, GitLab, memory, Context7 for PHP/Laravel docs, web fetch, Figma) and project-local servers (filesystem, database, Laravel DebugBar) so Claude Code has full context about your codebase, dependencies, and design assets. It guides you through obtaining and storing the required personal access tokens, then writes the appropriate MCP configuration files automatically.
Prerequisites
- Claude Code CLI installed and authenticated
- Node.js and npm installed
- Go 1.22 or newer installed (required by some MCP servers)
- A configured Laravel project with a valid .env file
- GitHub Personal Access Token with 'repo' scope (required); GitLab and Figma tokens are optional
Navigate to your Laravel project root
The installer must be run from the root of your Laravel application so it can detect the project structure and configure project-specific MCP servers.
cd /path/to/your/laravel-projectRun the installer
Execute the setup script via curl. This is the recommended one-command approach — it downloads and runs the installer, prompting you for tokens as needed.
curl -fsSL https://raw.githubusercontent.com/laraben/laravel-claude-code-setup/main/install.sh | bashProvide required tokens when prompted
The installer will ask for your GitHub Personal Access Token (needs 'repo' + user profile scopes). Optionally provide GitLab (api + repo read) and Figma (personal access token from account settings) tokens.
Review what was configured
After completion, the installer will report which global and project-local MCP servers were configured. Global servers (GitHub, memory, Context7, web fetch) are shared across all projects; project servers (filesystem, database, DebugBar) are scoped to this Laravel app.
Start Claude Code and verify
Open Claude Code in your Laravel project. Ask it to show the database structure or list recent commits to confirm the MCP servers are connected.
claudeLaravel Setup Examples
Client configuration
The installer creates the MCP config automatically, but here is a representative snippet showing the project-local filesystem and database servers it generates.
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/your/laravel-project"]
},
"github": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "your_github_pat_here"
}
},
"context7": {
"command": "npx",
"args": ["-y", "@upstash/context7-mcp"]
}
}
}Prompts to try
After setup, use these prompts in Claude Code to leverage the Laravel-specific MCP integrations.
- "Show me the database structure for this Laravel project."
- "List recent commits from my GitHub repository."
- "Convert this Figma button component to a Livewire component."
- "Look up the Laravel documentation for Eloquent relationships using Context7."
- "Find all routes defined in this application and check for missing middleware."
- "Extract the color palette from this Figma file and generate a Tailwind config."Troubleshooting Laravel Setup
Installer fails with 'Go not found' or similar Go-related error
Install Go 1.22 or newer from https://go.dev/dl/ and ensure it is on your PATH before re-running the installer.
GitHub MCP server reports authentication errors
Ensure your GitHub Personal Access Token has both 'repo' scope and user profile read permissions. Generate a new token at https://github.com/settings/tokens if the existing one lacks these scopes.
Project-local database server fails to connect
Verify that your Laravel .env file has correct DB_HOST, DB_PORT, DB_DATABASE, DB_USERNAME, and DB_PASSWORD values and that the database service is running locally.
Frequently Asked Questions about Laravel Setup
What is Laravel Setup?
Laravel Setup is a Model Context Protocol (MCP) server that one-command setup for ai-powered laravel development with claude code and mcp servers It connects AI assistants to external tools and data sources through a standardized interface.
How do I install Laravel Setup?
Follow the installation instructions on the Laravel Setup GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with Laravel Setup?
Laravel Setup works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is Laravel Setup free to use?
Yes, Laravel Setup is open source and available under the MIT license. You can use it freely in both personal and commercial projects.
Laravel Setup Alternatives — Similar Developer Tools Servers
Looking for alternatives to Laravel Setup? Here are other popular developer tools servers you can use with Claude, Cursor, and VS Code.
Ecc
★ 188.2kThe agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Javaguide
★ 155.8kJava 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发
Gemini CLI
★ 104.5kA secure MCP server that wraps the Google Gemini CLI, allowing clients to query Gemini models using local OAuth sessions without requiring an API key. It provides tools for model interaction and diagnostics with built-in protection against command in
Awesome MCP Servers
★ 87.3k⭐ Curated list of Model Context Protocol (MCP) servers - tools that extend Claude Desktop, Cursor, Windsurf, and other MCP clients with custom capabilities.
MCP Servers
★ 86.0kModel Context Protocol Servers
CC Switch
★ 77.5kA cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Gemini CLI & Hermes Agent. Only official website: ccswitch.io
Browse More Developer Tools MCP Servers
Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up Laravel Setup in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use Laravel Setup?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.