mcp-php-starter
Verified Safeby SamMorrowDrums
Overview
Provides a feature-complete starter template for building Model Context Protocol (MCP) servers in PHP, demonstrating various capabilities like tools, resources, and prompts for AI integration.
Installation
composer start:httpEnvironment Variables
- PORT
Security Notes
The server demonstrates a solid structure for MCP implementation in PHP. No direct 'eval' calls or obvious malicious patterns were found. The use of `escapeshellarg` for file paths in the `passthru` command for starting the PHP built-in server (`server-http.php`) is good. However, the `PORT` environment variable used in this `passthru` command is not shell-escaped, which could pose a minor risk if the environment variable were maliciously crafted, though `getenv` values are typically considered trusted system configuration. No hardcoded secrets were identified. Error handling is present for HTTP requests.
Similar Servers
tmcp
A server implementation for the Model Context Protocol (MCP) to enable LLMs to access external context and tools.
php-mcp
Facilitates communication and integration between LLM applications and external data sources or tools by implementing the Model Context Protocol (MCP).
php-mcp-sdk
A PHP SDK for building Model Context Protocol (MCP) servers that expose AI capabilities (tools, prompts, sampling) and data resources to clients, facilitating AI agent orchestration and structured human-AI interaction.
mcp-python-starter
A feature-complete Model Context Protocol (MCP) server template in Python for developing AI applications and agents.