MCP Catalogs
Homelaravel-loop screenshot

laravel-loop

by kirschbaum-development·128·Score 46

Laravel Loop is an MCP server connecting Laravel applications with AI assistants via tools for models, factories, and Stripe integration.

developer-toolsai-llmother
10
Forks
9
Open issues
2 mo ago
Last commit
2d ago
Indexed

Overview

Laravel Loop is a PHP-based MCP server specifically designed for Laravel applications. It enables developers to expose application-specific tools to AI assistants through the MCP protocol, using Prism for tool implementation. The server supports multiple MCP transports including STDIO, Streamable HTTP, and SSE, making it flexible for various deployment scenarios. While still in beta, it provides a well-structured approach to integrating Laravel functionality with AI assistants like Claude Code, Cursor, and Windsurf.

Try asking AI

After installing, here are 5 things you can ask your AI assistant:

you:Interact with Laravel models directly from AI assistants
you:Generate test data using Laravel factories through MCP clients
you:Perform Stripe payment operations from AI coding assistants
you:What MCP transports does Laravel Loop support?
you:How can I debug connection issues with Laravel Loop?

When to choose this

Choose Laravel Loop if you're building Laravel applications and want to integrate AI assistants with your application data and functionality through the MCP protocol.

When NOT to choose this

Avoid if you're not using Laravel or need a stable production-ready solution, as Laravel Loop is still in beta with limited write capabilities.

Tools this server exposes

3 tools extracted from the README
  • laravel_model_toolkit

    Interact with your Laravel models data

  • laravel_factories_toolkit

    Create test data from your MCP client

  • stripe_tool

    Interact with the Stripe API

Note: Tool names are inferred from class names mentioned in the README, but detailed descriptions and signatures are not fully documented.

Comparable tools

laravel-mcpphp-mcp-serverprism-php

Installation

Installation

Install via Composer:

composer require kirschbaum-development/laravel-loop

Publish configuration:

php artisan vendor:publish --tag="loop-config"

Configuration

Register tools in app/Providers/AppServiceProvider:

use Illuminate\Support\ServiceProvider;
use Kirschbaum\Loop\Facades\Loop;
use Kirschbaum\Loop\Toolkits;
use Kirschbaum\Loop\Tools;

Loop::toolkit(Kirschbaum\Loop\Filament\FilamentToolkit::make());

Connecting to MCP Server

STDIO Transport

Start the MCP server:

php artisan loop:mcp:start [--user-id=1 [--user-model=] [--auth-guard=] [--debug]]

Configure Claude Code:

claude mcp add laravel-loop-mcp php /your/full/path/to/laravel/artisan loop:mcp:start --user-id=1

JSON Configuration:

{
  "mcpServers": {
    "laravel-loop-mcp": {
      "command": "php",
      "args": [
        "/your/full/path/to/laravel/artisan",
        "loop:mcp:start",
        "--user-id=1"
      ]
    }
  }
}

FAQ

What MCP transports does Laravel Loop support?
Laravel Loop supports STDIO, Streamable HTTP, and SSE (deprecated) transports, allowing flexible integration with various MCP clients.
How can I debug connection issues with Laravel Loop?
Check your application logs for errors, verify PHP binary path if getting 'ENOENT' errors, and use 'php artisan loop:mcp:call' to manually test tools.

Compare laravel-loop with

GitHub →

Last updated · Auto-generated from public README + GitHub signals.