Laravel Loop is a powerful Model Context Protocol (MCP) server designed specifically for Laravel applications. It connects your Laravel application with AI assistants using the MCP protocol.
# Add to your Claude Code skills
git clone https://github.com/kirschbaum-development/laravel-loop
Laravel Loop is a powerful Model Context Protocol (MCP) server designed specifically for Laravel applications. It connects your Laravel application with AI assistants using the MCP protocol.
Laravel Loop uses Prism behind the scenes to build the tools.
[!IMPORTANT] Laravel Loop and its pre-built tools are still in development and this is a beta version.

Laravel Loop allows you to:
Pre-built tools:
Kirschbaum\Loop\Toolkits\LaravelModelToolkit (Write operations to come)Kirschbaum\Loop\Toolkits\LaravelFactoriesToolkitKirschbaum\Loop\Tools\StripeToolYou can install the package via composer:
composer require kirschbaum-development/laravel-loop
Publish the configuration file:
php artisan vendor:publish --tag="loop-config"
First, you must register your tools (If you don't know where to put, put 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());
To build your own tools, you can use the Loop::tool method.
use Kirschbaum\Loop\Facades\Loop;
use Kirschbaum\Loop\Tools\CustomTool;
Loop::tool(
CustomTool::make(
name: 'custom_tool',
description: 'This is a custom tool',
)
->withStringParameter(name: 'name', description: 'The name of the user', required: true)
->withNumberParameter(name: 'age', description: 'The age of the user')
->using(function (string $name, ?int $age = null) {
return sprintf('Hello, %s! You are %d years old.', $name, $age ?? 'unknown');
}),
);
);
The available parameters types can be found in the Prism Tool Documentation.
You can also build your own tool classes. Each tool must implement the Tool contract, and return a `Prism\P...