laravel/mcp
Build MCP (Model Context Protocol) servers in Laravel so AI clients can securely interact with your app. Expose tools, resources, and prompts using familiar Laravel patterns, with docs and integrations designed for rapid setup and deployment.
laravel/mcp-tools-crm).protocolVersion: "2025-11-25")."Laravel MCP lets us ship AI integrations 10x faster—without hiring specialized API experts.
Ask: "Should we prioritize this for [Q3 roadmap] to enable our AI/agent strategy?"
"Laravel MCP is the fastest way to expose Laravel apps to AI agents—here’s how to use it:
composer require laravel/mcp
php artisan mcp:install
use Laravel\MCP\Attributes\Tool;
#[Tool(name: 'search_database', description: 'Query the company database')]
public function search(SearchRequest $request) {
return Database::search($request->query);
}
use Laravel\MCP\Attributes\ContentType;
#[ContentType('image/png')]
public function generateReportImage() {
return Storage::disk('s3')->get('reports/image.png');
}
MCPInspector for local debugging.Why this beats custom code:
Next Steps:
Blockers to Address:
How can I help you explore Laravel packages today?