Back to Home
zero-to-prod icon

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

Run Command
docker compose up -d

Environment 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

Stats

Interest Score33
Security Score4
Cost ClassMedium
Avg Tokens1500
Stars2
Forks0
Last Update2026-01-16

Tags

PHPDockerAI ToolsDatabaseMicroservice