Back to Home
SamMorrowDrums icon

mcp-php-starter

Verified Safe

by 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

Run Command
composer start:http

Environment 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

Stats

Interest Score0
Security Score8
Cost ClassMedium
Avg Tokens200
Stars0
Forks0
Last Update2026-01-19

Tags

MCPPHPServerTemplateAI Integration