mcp-server
by zero-to-prod
Overview
A PHP 8.4 MCP (Model Context Protocol) server designed to expose custom PHP methods as AI tools and resources, facilitating AI agent interaction with data storage systems like Redis, MongoDB, and Memgraph.
Installation
docker compose up -dEnvironment Variables
- MCP_SERVER_NAME
- PORT
- REDIS_PORT
- MONGODB_PORT
- MEMGRAPH_PORT
- MEMGRAPH_LAB_PORT
- DOCKER_IMAGE
- REDIS_PASSWORD
- MONGODB_USERNAME
- MONGODB_PASSWORD
Security Notes
The `memgraph_relationship_create` tool is vulnerable to Cypher injection because it directly embeds user-provided string parameters (`$from`, `$to`) into the Cypher query's WHERE clause without proper sanitization or parameterization, allowing malicious input to execute arbitrary Cypher code. The `redis_command` tool allows direct execution of any raw Redis command, including destructive operations (e.g., DEL, FLUSHDB) or data exfiltration (e.g., KEYS), which is explicitly warned but still presents a high-risk surface if exposed to untrusted input.
Similar Servers
claude-code-mcp
Acts as an MCP server to enable LLMs to run Claude Code CLI in one-shot mode, bypassing permissions for complex coding, file system, Git, and terminal operations.
consult-llm-mcp
An MCP server that allows AI agents like Claude Code to consult stronger, more capable AI models (e.g., GPT-5.2, Gemini 3.0 Pro) for complex code analysis, debugging, and architectural advice.
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.