Back to Home
zero-to-prod icon

mcp-template

Verified Safe

by zero-to-prod

Overview

This repository serves as a template for creating custom Model Context Protocol (MCP) servers in PHP, allowing developers to quickly scaffold and deploy tool-based services.

Installation

Run Command
docker run -d -p 8080:80 -e MCP_DEBUG=true :docker_registry_username/:docker_image_name:latest

Environment Variables

  • MCP_DEBUG
  • APP_DEBUG
  • APP_VERSION

Security Notes

The `configure.php` script uses `shell_exec` for system interactions (e.g., git config, grep), which is inherently risky if user input were directly passed. However, this script is designed for one-time developer setup and is not part of the runtime server. The core server runtime (`public/index.php`) does not show direct `eval` or `shell_exec` on untrusted input. Environment variables (`APP_DEBUG`, `MCP_DEBUG`, `APP_VERSION`) are used for configuration, which is good practice. File-based session storage (`storage/mcp-sessions`) requires appropriate file permissions. No obvious hardcoded secrets or malicious patterns were found in the provided runtime source code.

Similar Servers

Stats

Interest Score0
Security Score8
Cost ClassLow
Avg Tokens150
Stars0
Forks0
Last Update2025-12-11

Tags

MCPServerPHPTemplateDocker