drio
Open app

Laravel MCP

Source

Laravel Based Implementation for Model Context Protocol

Catalog onlyCatalog onlySTDIO

Overview

Laravel MCP is a Laravel package designed for implementing the Model Context Protocol (MCP) in Laravel applications, facilitating communication between AI models and Laravel applications through standardized interfaces.

To use Laravel MCP, install it via Composer, configure the server settings, and start the server using the provided Artisan commands. You can then register tools and manage resources through the MCP server.

  • Multiple transport options (HTTP, WebSocket, Stdio) - Server capabilities for tool registration, resource management, and logging - Dynamic prompt handling and progress tracking - Comprehensive logging system with multiple log levels
  1. Building AI-driven applications that require real-time communication.
  2. Implementing custom tools for data processing and analysis.
  3. Managing resources and prompts for AI model interactions.

Add to your AI client

Use these steps to connect Laravel MCP in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "laravel-mcp-sdk-mohamedahmed01": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-laravel-mcp-sdk-mohamedahmed01"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "laravel-mcp-sdk-mohamedahmed01": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-laravel-mcp-sdk-mohamedahmed01"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "laravel-mcp-sdk-mohamedahmed01": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-laravel-mcp-sdk-mohamedahmed01"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "laravel-mcp-sdk-mohamedahmed01": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-laravel-mcp-sdk-mohamedahmed01"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "laravel-mcp-sdk-mohamedahmed01": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-laravel-mcp-sdk-mohamedahmed01"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "laravel-mcp-sdk-mohamedahmed01": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-laravel-mcp-sdk-mohamedahmed01"
      ]
    }
  }
}

FAQ

What are the system requirements for Laravel MCP?

PHP 8.1 or higher, Laravel 10.x, and several PHP extensions are required.

How do I install Laravel MCP?

Install via Composer with the command: `composer require laravelmcp/mcp`.

Can I use Laravel MCP for non-Laravel applications?

Laravel MCP is specifically designed for Laravel applications.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":3347,"uuid":"3afe9e52-e58f-4a08-98b3-ef9e52919c39","name":"laravel-mcp-sdk","title":"Laravel MCP","description":"Laravel Based Implementation for Model Context Protocol","avatar_url":"https://avatars.githubusercontent.com/u/47615007?v=4","created_at":"2025-03-19T02:34:05.317Z","updated_at":"2025-03-19T02:41:24.294Z","status":"created","author_name":"mohamedahmed01","author_avatar_url":"https://avatars.githubusercontent.com/u/47615007?v=4","tags":"laravel,mcp,model-context-protocol,mcp-server,mcp-clients","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/mohamedahmed01/laravel-mcp-sdk","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"1\",\"license\":\"MIT license\",\"language\":\"PHP\",\"is_official\":false,\"latest_commit_time\":\"2025-03-19 00:37:06\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]