Laravel MCP is a package for building Model Context Protocol servers in Laravel, enabling AI clients like Claude, Cursor, and GitHub Copilot to interact with your application's data and actions. The guide covers installation, defining tools (callable functions with schema validation), resources (URI-exposed data), and prompts (reusable conversation templates). It also covers authentication via Sanctum or OAuth 2.1 through Passport, and testing with the built-in MCP inspector. MCP is most valuable when non-technical users or large teams need structured, secure AI access to your app without custom integrations per client.
Table of contents
What MCP Does for Your Laravel AppWhen MCP Is the Right CallBuilding an MCP Server: Installing Laravel MCPDefining Your First ToolAuthenticationTesting with the MCP InspectorResources and PromptsMake Your Laravel App an Active Participant in AI WorkflowsSort: