
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.
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:
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 READMElaravel_model_toolkitInteract with your Laravel models data
laravel_factories_toolkitCreate test data from your MCP client
stripe_toolInteract 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
Installation
Installation
Install via Composer:
composer require kirschbaum-development/laravel-loopPublish 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=1JSON 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
Last updated · Auto-generated from public README + GitHub signals.