opgginc/laravel-mcp-server
Laravel MCP Server by OP.GG is a Laravel package that implements a secure and scalable Model Context Protocol server using Server-Sent Events (SSE) transport for real-time communication and enterprise-grade security.
Laravel Loop is a PHP package that turns a Laravel application into a Model Context Protocol server, so MCP clients such as Claude Code, Claude Desktop, Cursor and Windsurf can call tools that run inside the application. It is installed with composer, publishes a config file through vendor:publish, and uses Prism under the hood to build the tools. Developers register tools in a service provider through the Loop facade. A tool can be declared inline with Loop::tool and the CustomTool builder, chaining typed parameter definitions such as withStringParameter and withNumberParameter and a closure supplied to using. Tools can also be written as classes implementing the Tool contract, whose build method returns a Prism Tool instance; related tools are grouped into a toolkit class implementing the Toolkit contract and returning a ToolCollection. Several pre-built toolkits ship with the package: a Laravel model toolkit for interacting with model data, a factories toolkit for creating test data from the MCP client, a Stripe tool for the Stripe API, and a separate Filament MCP server package. Transport support covers stdio, streamable HTTP and the deprecated HTTP+SSE transport. The artisan command loop:mcp:start runs the stdio server and accepts options for the authenticated user id, user model, auth guard and debug output, which lets tools execute in the context of a specific user. The loop:mcp:generate-config command walks through generating the JSON configuration block for a client, and the README also shows the equivalent claude mcp add invocation. The HTTP transports avoid running a separate PHP or Node process by letting the client talk to the application directly. It supports Laravel 10, 11 and 12, is MIT licensed and distributed on Packagist, and the authors mark it and its pre-built tools as a beta. It is aimed at Laravel developers who want AI assistants working against their own models, factories and services.
https://github.com/kirschbaum-development/laravel-loop
Laravel MCP Server by OP.GG is a Laravel package that implements a secure and scalable Model Context Protocol server using Server-Sent Events (SSE) transport for real-time communication and enterprise-grade security.
Laravel package that connects Prism agents to MCP servers, turning remote tools into Prism tools over stdio or HTTP transports, with per-server configuration, tool list caching and bearer token support.