Back to Home
hyperf icon

mcp-server-incubator

by hyperf

Overview

Provides an annotation-driven, high-performance Model Context Protocol (MCP) server implementation built on the Hyperf framework, supporting tools, prompts, resources, and Redis-backed session management.

Installation

Run Command
php bin/hyperf.php start

Environment Variables

  • REDIS_HOST
  • REDIS_AUTH
  • REDIS_PORT
  • REDIS_DB
  • APP_ENV
  • APP_DEBUG

Security Notes

The server defaults to NullAuthenticator, meaning no authentication is enforced out-of-the-box. This is a severe security risk for production deployments; users must explicitly implement and configure a custom AuthenticatorInterface. Method invocations rely on schema validation to prevent malicious input, which depends on the robustness of the underlying dtyq/php-mcp library's SchemaUtils. Redis security is critical for session management. The example API Key Authenticator in the README contains hardcoded keys, which should be replaced with secure key management in production.

Similar Servers

Stats

Interest Score32
Security Score6
Cost ClassMedium
Avg Tokens1000
Stars2
Forks1
Last Update2025-11-30

Tags

HyperfMCPAPIServerAnnotation-drivenRedisPHPMicroservices