Manage your servers with freedom and control. Learn more about the new Forge
AI Tools
Boost MCP

Build powerful AI interactions with Laravel MCP

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

Laravel MCP By Numbers
v0.3.0
2 weeks ago
14
Contributors
533
GitHub Stars
2
Open PRs

Incredibly simple

Create MCP servers with just a few lines of code. Our package handles the complexity while you focus on developing amazing AI experiences.

Incredibly simple

Built-in MCP Tools

Tools unlock your server's functionality to AI clients, enabling models to execute actions, run code, and integrate with your existing systems.

Secure by default

Protect your MCP servers with familiar Laravel middleware patterns and built-in OAuth 2.1 and Sanctum support out of the box.

Create smart prompts

Make reusable templates for AI clients to structure queries and interactions with your application.

Dependency injection

Leverage Laravel's container for clean and testable code with automatic dependency resolution.

Testing tools included

Use the included MCP Inspector and unit testing to ensure your AI works perfectly each commit.

Real-time streaming

Automatically send intermediate updates to the client or stream progress and responses automatically to your AI clients with Laravel’s Server-Sent Events.

Run web and local servers

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

Transform your Laravel knowledge into AI solutions

Our MCP package is made for Laravel developers. If you're building applications with Laravel, you're ready to start building AI solutions.

Learn

Learn about Laravel MCP directly from the development team

Dive deeper into Laravel MCP with Ashley Hindle, Nuno Maduro and Josh Cirre. You'll gain first hand experience and lessons direcly for the Laravel Team.

Start building your AI experiences in Laravel MCP

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