Laravel Setup

v1.0.0Developer Toolsstable

One-command setup for AI-powered Laravel development with Claude Code and MCP servers

laravel-claude-code-setupmcpai-integration
Share:
288
Stars
0
Downloads
0
Weekly
0/5

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

Set up Laravel projects for AI-powered development with Claude Code.
Configure MCP servers for Laravel ecosystem integration.
Automate Laravel development environment initialization.
laraben

Maintainer

LicenseMIT
Languageshell
Versionv1.0.0
UpdatedMay 21, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx laravel-claude-code-setup

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

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
1

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-project
2

Run 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 | bash
3

Provide 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.

4

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.

5

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.

claude

Laravel 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.

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.

Quick Config Preview

{ "mcpServers": { "laravel-claude-code-setup": { "command": "npx", "args": ["-y", "laravel-claude-code-setup"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

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.

33,000+ ServersFree & Open SourceStep-by-Step Guides