Back to Home
dtyq icon

php-mcp

Verified Safe

by dtyq

Overview

Facilitates communication and integration between LLM applications and external data sources or tools by implementing the Model Context Protocol (MCP).

Installation

Run Command
php examples/stdio-server-test.php

Security Notes

The server demonstrates robust message validation (UTF-8, JSON-RPC 2.0 structure, MCP stdio format) and uses interfaces for authentication and session management, promoting a secure design. Session IDs are generated cryptographically. Text content is sanitized to remove control characters. Potential risks include insecure implementations of custom tools, prompts, or resource handlers registered by the user, and possible path traversal/SSRF vulnerabilities if user-provided URIs are not meticulously validated by custom resource handlers leveraging `file_get_contents` or similar. The `Access-Control-Allow-Origin: *` header in HttpTransport exposes the API to all origins, which is standard for public APIs but should be noted.

Similar Servers

Stats

Interest Score42
Security Score8
Cost ClassMedium
Avg Tokens500
Stars25
Forks4
Last Update2025-12-12

Tags

MCPJSON-RPCLLMProtocolPHPServerToolsResourcesPromptsHyperf