
A Laravel package for implementing secure Model Context Protocol servers using Server-Sent Events (SSE) transport, providing real-time communication and a scalable tool system for enterprise...
概览
A powerful Laravel package to build a Model Context Protocol Server seamlessly English | Português do Brasil | 한국어 | Русский | 简体中文 | 繁體中文 | Polski Laravel MCP Server is a powerful package designed to streamline the implementation of Model Context Protocol (MCP) servers in Laravel applications. , this package transport, providing a more secure and controlled integration method. While stdio is straightforward and widely used in MCP implementations, it has significant security implications for enterprise environments: - : STDIO transport potentially exposes internal system details and API specifications - : Organizations need to protect proprietary API endpoints and internal system architecture - : SSE offers better control over the communication channel between LLM clients and your application By implementing the MCP server with SSE transport, enterprises can: - Expose only the necessary tools and resources while keeping proprietary API details private - Maintain control over...
README
以下为原文 README 节选,完整内容请查看原文。
Laravel MCP Server by OP.GG
A powerful Laravel package to build a Model Context Protocol Server seamlessly
Official Website
English | Português do Brasil | 한국어 | Русский | 简体中文 | 繁體中文 | Polski
Overview
Laravel MCP Server is a powerful package designed to streamline the implementation of Model Context Protocol (MCP) servers in Laravel applications. Unlike most Laravel MCP packages that use Standard Input/Output (stdio) transport, this package utilizes Server-Sent Events (SSE) transport, providing a more secure and controlled integration method.
Why SSE instead of STDIO?
While stdio is straightforward and widely used in MCP implementations, it has significant security implications for enterprise environments:
- Security Risk: STDIO transport potentially exposes internal system details and API specifications
- Data Protection: Organizations need to protect proprietary API endpoints and internal system architecture
- Control: SSE offers better control over the communication channel between LLM clients and your application
By implementing the MCP server with SSE transport, enterprises can:
- Expose only the necessary tools and resources while keeping proprietary API details private
- Maintain control over authentication and authorization processes
Key benefits:
- Seamless and rapid implementation of SSE in existing Laravel projects
- Support for the latest Laravel and PHP versions
- Efficient server communication and real-time data processing
- Enhanced security for enterprise environments
Key Features
- Real-time communication support through Server-Sent Events (SSE) integration
- Implementation of tools and resources compliant with Model Context Protocol specifications
- Adapter-based design architecture with Pub/Sub messaging pattern (starting with Redis, more adapters planned)
- Simple routing and middleware configuration
Requirements
安装
npx @modelcontextprotocol/inspector node build/index.js