laravel-mcp
If you are the rightful owner of laravel-mcp 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.
A Laravel package that implements the Model Context Protocol (MCP), enabling seamless communication between your Laravel application and AI assistants or other systems through a standardized API.
Laravel MCP is a package designed to integrate the Model Context Protocol (MCP) into Laravel applications. It facilitates communication between Laravel applications and AI systems or other external systems using a standardized API. The package is still under development and not yet ready for production use. It currently supports creating MCP servers via the STDIO transport, with plans to add HTTP transport in the future. The package allows developers to expose application data models and define actions that can be performed through the MCP protocol, making it easier to interact with AI assistants and other systems.
Features
- Seamless integration with Laravel applications using MCP.
- Supports creating MCP servers via STDIO transport.
- Allows exposure of application data models through MCP resources.
- Provides built-in example tools and supports custom tool creation.
- Facilitates testing with Modelcontext Protocol Inspector.
Tools
HelloTool
Simple hello world sample tool
ClockTool
Tools that return the current time
自定义工具
Users can create custom tools by implementing
ToolInterface
, such as tools that call Artisan commands