laravel-php-mcp-sdk
Verified Safeby dalehurley
Overview
A comprehensive Laravel wrapper that enables applications to act as Model Context Protocol (MCP) servers and clients, facilitating AI/LLM integration.
Installation
php artisan mcp:server startEnvironment Variables
- APP_KEY
- APP_ENV
- DB_CONNECTION
- DB_DATABASE
- MCP_AUTH_ENABLED
Security Notes
The server implements comprehensive security features including CORS, rate limiting, input sanitization, security headers (CSP, XSS, Frame Options), and suspicious activity detection (SQLi, XSS, Path Traversal, Command Injection patterns). Authentication supports OAuth 2.1, Bearer tokens, and API keys with scope-based authorization. A potential risk exists if the 'mcp.authorization.bearer.valid_tokens' or 'mcp.authorization.api_key.valid_keys' configurations are empty while authorization is enabled, as it would allow any non-empty token/key to authenticate. It is crucial to configure valid tokens/keys in production environments.
Similar Servers
boost
Accelerates AI-assisted development by providing essential context and structure for generating high-quality, Laravel-specific code via an MCP server.
tmcp
A server implementation for the Model Context Protocol (MCP) to enable LLMs to access external context and tools.
mcpc
Build and compose agentic Model Context Protocol (MCP) servers and tools, enabling AI assistants to discover, integrate, and orchestrate other MCP servers for complex tasks.
php-mcp
Facilitates communication and integration between LLM applications and external data sources or tools by implementing the Model Context Protocol (MCP).