Laravel SDK
Integrates Model Context Protocol 2025-06-18 specification support seamlessly into Laravel applications, enhancing development with its native conventions.
About
This SDK acts as a robust Laravel wrapper for the underlying PHP MCP SDK, providing complete support for the Model Context Protocol 2025-06-18 specification. It allows developers to effortlessly build, deploy, and manage MCP servers and clients directly within their Laravel applications, benefiting from Laravel's native conventions, service container integration, and extensive ecosystem. With support for all transport types (STDIO, HTTP, WebSocket) and core MCP functionalities like tools, resources, and prompts, alongside advanced features like authentication, cancellation, and progress reporting, it streamlines the creation of sophisticated AI-driven or agent-based systems.
Key Features
- Full MCP 2025-06-18 Specification Support (tools, resources, prompts, roots, sampling, elicitation)
- Support for multiple dynamic MCP server instances and client connections
- Deep integration with Laravel's service container, events, cache, and queue system
- Production-ready security including OAuth 2.1, bearer token, and scope-based authorization
- Comprehensive Artisan commands for all MCP operations and system management
- 1 GitHub stars
Use Cases
- Building and managing multiple MCP servers and clients within a Laravel application
- Integrating AI-powered functionalities and agent communication into Laravel projects
- Developing custom MCP tools, resources, and prompts with Laravel's ecosystem