Skip to main content
Glama
dok4everak47

Laravel MCP Server

by dok4everak47

Laravel MCP Server

A Model Context Protocol (MCP) server that exposes Laravel development tools as standard MCP tools. Works with any MCP-compatible client: Claude Desktop, Cursor, Codex, OpenCode, and more.

Tools

Tool

Description

artisan

Run any php artisan command

migrateStatus

Check migration status

envInfo

Display APP_ENV, APP_DEBUG, DB connection

cache

Clear/cache config, routes, views

configGet

Inspect config values by key

schema

List database tables, view column definitions

model

Scan Eloquent models in app/Models

log

Tail the Laravel log file

Related MCP server: laravel-herd-mcp

Usage

With OpenCode

Add to ~/.config/opencode/opencode.jsonc:

{
  "mcpServers": {
    "laravel": {
      "type": "local",
      "command": ["npx", "tsx", "/path/to/laravel-mcp-server/src/index.ts"]
    }
  }
}

With Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "laravel": {
      "command": "npx",
      "args": ["tsx", "/path/to/laravel-mcp-server/src/index.ts"]
    }
  }
}

Environment Variables

Variable

Default

Description

LARAVEL_PROJECT_PATH

process.cwd()

Path to Laravel project

PHP_PATH

php

PHP executable path

Requirements

  • Node.js 18+

  • PHP 8.1+ (for Laravel project interaction)

  • A Laravel project with artisan in its root

Development

npm install
npm run typecheck
npm start

License

MIT

F
license - not found
-
quality - not tested
C
maintenance

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    C
    maintenance
    Connects Claude or any MCP client to Laravel Herd, providing 218 tools to manage PHP development environments, Laravel projects, sites, services, database, and more through natural language.
    Last updated
    1
    MIT
  • F
    license
    -
    quality
    D
    maintenance
    Provides various developer utilities such as UUID generation, timestamp conversion, Base64 encoding, color conversion, password generation, hash generation, and JSON formatting via MCP.
    Last updated
    26
    1

View all related MCP servers

Related MCP Connectors

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dok4everak47/laravel-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server