Laravel MCP provides a simple, expressive interface for creating servers, tools, and resources that enable seamless AI interactions into your Laravel application.
$composer require laravel/mcp
Create MCP servers with just a few lines of code. Our package handles the complexity while you focus on developing amazing AI experiences.


Tools unlock your server's functionality to AI clients, enabling models to execute actions, run code, and integrate with your existing systems.
Protect your MCP servers with familiar Laravel middleware patterns and built-in OAuth 2.1 and Sanctum support out of the box.
Make reusable templates for AI clients to structure queries and interactions with your application.
Leverage Laravel's container for clean and testable code with automatic dependency resolution.
Use the included MCP Inspector and unit testing to ensure your AI works perfectly each commit.
Automatically send intermediate updates to the client or stream progress and responses automatically to your AI clients with Laravel's Server-Sent Events.
Use Laravel MCP to easily remote MCP servers to pair with AI clients or create local servers that interact with agents like Claude Code.
Examples
Our MCP package is made for Laravel developers. If you're building applications with
Laravel, you're ready to start building AI solutions.
Learn
Dive deeper into Laravel MCP with Ashley Hindle, Nuno Maduro and Josh Cirre. You'll
gain first hand experience and lessons directly from the Laravel Team.
Getting started is incredibly easy. View our documentation for more information, or
join us on GitHub and help contribute to the future of AI in Laravel.
$composer require laravel/mcp