What are the system requirements?
PHP >=8.1, Composer, and either Swow extension >1.5 or Swoole >5.1. Docker is optional.
@he426100
Basic information
基于 PHP 实现的 MCP (Model Control Protocol) 服务器框架,通过注解优雅地定义 MCP 服务,支持 Tool、Prompt、Resource 三种处理器,支持Stdio、Sse 两种 transport。
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"php-mcp-server": {
"command": "docker",
"args": [
"build",
"-t",
"php-mcp-server",
"."
]
}
}
}Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
PHP MCP Server is a PHP implementation of the Model Context Protocol (MCP) framework that enables developers to define MCP services using annotations. It supports Tool, Prompt, and Resource handlers and can operate over Stdio or SSE transports. It is intended for PHP developers building MCP-compatible servers for AI assistants or other contextual agents.
Clone the repository and install dependencies via Composer. Run the test server with php bin/console mcp:test-server and optionally pass --transport (stdio or sse) and --port (default 8000 for SSE). The server can also be executed without local installation via CPX (Composer Package Executor) using cpx he426100/php-mcp-server mcp:test-server.
PHP >=8.1, Composer, and either Swow extension >1.5 or Swoole >5.1. Docker is optional.
Stdio and SSE (Server-Sent Events). The default transport is stdio.
Yes, via CPX (Composer Package Executor). Run `cpx he426100/php-mcp-server mcp:test-server` directly.
Yes. Build the image with `docker build -t php-mcp-server .` and run with the SSE transport on port 8000.
Logs are saved to `runtime/server_log.txt` by default. The path can be customised by overriding `$logFilePath` in a subclass of `AbstractMcpServerCommand`.
Hindsight: Agent Memory That Learns
MCP Toolbox for Databases is an open source MCP server for databases.

Yuppsy MCP: build and publish real estate websites from your AI assistant. Yuppsy lets your AI assistant create live websites for real estate agents and individual property listings. You don't need a designer or any code

Model Context Protocol Servers
A curated list of references for MLOps
Comments