Back to Home
dalehurley icon

laravel-php-mcp-sdk

Verified Safe

by dalehurley

Overview

A comprehensive Laravel wrapper that enables applications to act as Model Context Protocol (MCP) servers and clients, facilitating AI/LLM integration.

Installation

Run Command
php artisan mcp:server start

Environment 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

Stats

Interest Score30
Security Score8
Cost ClassMedium
Avg Tokens250
Stars1
Forks0
Last Update2025-11-25

Tags

LaravelMCPAI/LLMSDKServer