Feedback

Laravel MCP (Model Context Protocol)

@innoge Claim

Basic information

Runtime
php
Category
License
MIT
Transports
stdio
Author
innoge
Submitted by
Community
Quality
35
Stars
17

About Laravel MCP (Model Context Protocol) Server

A package for developing MCP Servers with Laravel.

Laravel MCP (Model Context Protocol) is a MCP server in the Other category listed in the AddMCP.net directory, published by InnoGE. Supported transport: stdio. Runtime: php. License: MIT. The repository has 17 GitHub stars. Source code is hosted on github.com.

Setup

{
    "mcpServers": {
        "laravel-mcp": {
            "command": "npx",
            "args": [
                "@modelcontextprotocol/inspector",
                "php",
                "/path/to/your/app/artisan",
                "mcp:serve"
            ]
        }
    }
}

Laravel MCP (Model Context Protocol) config

Add this server to your MCP-compatible client using the configuration below.

{
    "mcpServers": {
        "laravel-mcp": {
            "command": "npx",
            "args": [
                "@modelcontextprotocol/inspector",
                "php",
                "/path/to/your/app/artisan",
                "mcp:serve"
            ]
        }
    }
}

Laravel MCP (Model Context Protocol) tools

Tool list not available yet

This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is Laravel MCP (Model Context Protocol)?

Laravel MCP is a PHP package that implements the Model Context Protocol, allowing Laravel applications to communicate with AI assistants and other systems through a standardized API. It is designed for Laravel developers who want to expose application data and actions to MCP-compatible clients.

How to use Laravel MCP (Model Context Protocol)?

Install via Composer, then create an Artisan command using the ServesMcpServer trait. Define tools and resources in the command, then run php artisan mcp:serve. The server currently uses STDIO transport only; HTTP transport is planned. Test with the MCP Inspector or add the server to Claude Desktop by editing the claude_desktop_config.json file.

Key features of Laravel MCP (Model Context Protocol)

  • Exposes Eloquent models and custom data via resource providers
  • Defines tools with input schemas for AI assistant interactions
  • Built‑in example tools (HelloTool, ClockTool)
  • Create custom tools by implementing ToolInterface
  • Test with the Modelcontext Protocol Inspector
  • Integrates with Claude Desktop via STDIO transport

Use cases of Laravel MCP (Model Context Protocol)

  • Allow an AI assistant to query or update database records
  • Run Artisan commands through conversational interfaces
  • Provide real‑time application data as resources to external tools
  • Enable reporting, notifications, and file management via tool calls
  • Build a custom assistant that interacts with Laravel business logic

Frequently asked questions

1 What transport does this package support?

Only STDIO transport is currently supported. HTTP transport is planned for a future release.

2 Is Laravel MCP ready for production?

No. The package is still in development and not yet ready for production use.

3 How do I test my MCP server?

Run npx @modelcontextprotocol/inspector php /path/to/your/app/artisan mcp:serve to use the Modelcontext Protocol Inspector.

4 How do I add the server to Claude Desktop?

Edit ~/Library/Application Support/Claude/claude_desktop_config.json and add an entry with "command": "php" and "args": ["/path/to/artisan", "mcp:serve"].

5 Does Claude Desktop use MCP resources?

No. Claude currently does not use MCP resources; you can access application data by making tool calls instead.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬