Today, we’re launching the public beta of Laravel MCP, a library that makes it simple to build Model Context Protocol (MCP) servers in your Laravel apps. This library has been field-tested by powering Laravel Boost.
MCP servers let your products reach users where they are and where they’ll be in the future: AI chats handling over three billion messages daily.
Adoption of MCP as the universal integration standard is rapid and will play a central role in production apps over the next 12 months. Explore it today to get a head start as it joins the web and API as core entry points to your app functionality.
What Laravel MCP Does
Laravel MCP helps you rapidly create MCP servers. This gives AI clients, such as ChatGPT, Claude, and Cursor, a structured way to interact with your application.
It supports the main MCP primitives:
- Tools allow AI agents to act. Anything you can code can be exposed as a tool, from creating an invoice to starting a robot vacuum.
- Resources lets users select content from the server to share with AI agents, from documents to invoices.
- Prompts offer users reusable prompts for consistent AI output, like code reviews or content vetting. They enable users to prompt the AI agent reliably by letting them choose a prompt from the server (e.g., “Review my code”), so it doesn’t have to be typed out each time.
Laravel MCP works out of the box with OAuth authentication through Laravel Passport and token authentication through Laravel Sanctum.
It runs on Laravel 10, 11, and 12, requires PHP 8.1+, and is as fluent and delightful to use as you’d expect from a Laravel package.
See It in Action
We’ve built a demo app called Locket to show MCP in a real product context. Locket has the trio of interfaces: a web interface, a JSON API, and an MCP server.
Check out the demo and read the code to familiarize yourself with MCP.
Get Started
It couldn’t be easier to get involved with this new paradigm. You can use Laravel MCP to add an MCP server to your product today. With over one billion users sending over 20 billion messages to AI chat apps each week, it's time to meet them where they are.
Read the MCP docs, explore Locket, and remember: MCP is the new entry point to your app.