技能潮 SkillTide 提交收录
官方说明3 个来源MCP 服务3 天前
php-mcp/laravel

php-mcp/laravel

Laravel SDK for building MCP servers
在 GitHub 查看 ↗直链 · 无中转页
来源明细
收录自 abordage/awesome-mcp 榜单(我们从中收集的条目之一) · 条目类型:MCP 服务
收录与活跃
收录于 2026-10-14 · 最近见到 2026-10-16 · 共见到 4 次 · 被 3 个来源列出
评分构成
综合分 303 · 3 个来源 · mcp
常见问题(答案都来自我们的记录)
怎么安装?
我们【没有】从该仓库取到安装命令(我们的 install 覆盖率只有约 4%)。请看它的 README 或 releases 页。
它适合谁 / 用来做什么?
我们把它归在这些标签下: MCP 服务。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
我们收录于 2026-10-14;最近见到 2026-10-16。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。
第三方质量标记

Laravel MCP Server SDK

以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →

**A comprehensive Laravel SDK for building Model Context Protocol (MCP) servers with enterprise-grade features and Laravel-native integrations.**
This SDK provides a Laravel-optimized wrapper for the powerful php-mcp/server library, enabling you to expose your Laravel application's functionality as standardized MCP **Tools**, **Resources**, **Prompts**, and **Resource Templates** for AI assistants like Anthropic's Claude, Cursor IDE, OpenAI's ChatGPT, and others.
Key Features
- **Laravel-Native Integration**: Deep integration with Laravel's service container, configuration, caching, logging, sessions, and Artisan console
- **Fluent Element Definition**: Define MCP elements with an elegant, Laravel-style API using the Mcp facade
- **Attribute-Based Discovery**: Use PHP 8 attributes (#[McpTool], #[McpResource], etc.) with automatic discovery and caching
- **Advanced Session Management**: Laravel-native session handlers (file, database, cache, redis) with automatic garbage collection
- **Flexible Transport Options**:
- **Integrated HTTP**: Serve through Laravel routes with middleware support
- **Dedicated HTTP Server**: High-performance standalone ReactPHP server
- **STDIO**: Command-line interface for direct client integration
- **Streamable Transport**: Enhanced HTTP transport with resumability and event sourcing
- **Artisan Commands**: Commands for serving, discovery, and element management
- **Full Test Coverage**: Comprehensive test suite ensuring reliability
This package supports the **2025-03-26** version of the Model Context Protocol.
Requirements
- **PHP** >= 8.1
- **Laravel** >= 10.0
- **Extensions**: json, mbstring, pcre (typically enabled by default)
Installation
Install the package via Composer:
Publish the configuration file:
For database session storage, publish the migration:
Configuration
All MCP server settings are managed through config/mcp.php, which contains comprehensive documentation for each option. The configuration covers server identity, capabilities, discovery settings, session management, transport options, caching, and logging. All settings support environment variables for easy deployment management.
Key configuration areas include:
- **Server Info**: Name, version, and basic identity
- **Capabilities**: Control which MCP features are enabled (tools, resources, prompts, etc.)
- **Discovery**: How elements are found and cached from your codebase
- **Session Management**: Multiple storage backends (file, database, cache, redis) with automatic garbage collection
- **Transports**: STDIO, integrated HTTP, and dedicated HTTP server options
- **Performance**: Caching strategies and pagination limits
Review the published config/mcp.php file for detailed documentation of all available options and their environment variable overrides.
Defining MCP Elements
Laravel MCP provides two powerful approaches for defining MCP elements: **Manual Registration** (using the fluent Mcp facade) and **Attribute-Based Discovery** (using PHP 8 attributes). Both can be combined, with manual registrations taking precedence.
Element Types
- **Tools**: Executable functions/actions (e.g., calculate, send_email, query_database)
- **Resources**: Static content/data accessible via URI (e.g., config://settings, file://readme.txt)
- **Resource Templates**: Dynamic resources with URI patterns (e.g., user://{id}/profile)
- **Prompts**: Conversation starters/templates (e.g., summarize, translate)
1. Manual Registration
Define your MCP elements using the elegant Mcp facade in routes/mcp.php:
**Available Fluent Methods:**
**For All Elements:**
- name(string $name): Override the inferred name
- description(string $description): Set a custom description
**For Tools:**
- annotations(ToolAnnotations $annotations): Add MCP tool annotations
- inputSchema(array $schema): Define custom JSON schema for parameters
来源
awesome · https://github.com/php-mcp/laravel
按领域浏览
MCP 服务
收录于
昨天

更多MCP 服务

查看MCP 服务全部 5,525 条 →

所属领域与标签

每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。

浏览全部领域 →

← 返回索引