laravel
If you are the rightful owner of laravel and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
PHP MCP Server for Laravel integrates the core php-mcp/server package into Laravel applications, enabling the exposure of application parts as Model Context Protocol (MCP) tools, resources, and prompts.
The PHP MCP Server for Laravel is a package that seamlessly integrates the core php-mcp/server package into Laravel applications. It allows developers to expose parts of their application as Model Context Protocol (MCP) tools, resources, and prompts using simple PHP attributes. The package automatically wires Laravel's Cache, Logger, and Container for use by the MCP server, provides configuration options via a config file, and registers Artisan commands for server management. It also sets up HTTP+SSE transport routes and controllers and integrates with Laravel's event system for dynamic updates. The package is designed to work with PHP 8.1 and Laravel 10.0 or higher, and it includes features for automatic and manual discovery of MCP elements, as well as support for both stdio and HTTP+SSE transports.
Features
- Automatic wiring of Laravel's Cache, Logger, and Container for MCP server use.
- Configuration options via config/mcp.php for server behavior customization.
- Artisan commands for server management: mcp:serve, mcp:discover, mcp:list.
- HTTP+SSE transport routes and controllers setup for MCP communication.
- Integration with Laravel's event system for dynamic updates and notifications.