php-mcp-server

php-mcp-server

16

The PHP MCP Server project is a PHP framework for implementing Model Control Protocol (MCP) servers. It supports service definitions via annotations and offers tools, prompts, and resource processors. Features include compatibility with Swow and Swoole environments, multiple transport methods, and Docker support.

What PHP version is required to run the PHP MCP Server?

The PHP MCP Server requires PHP version 8.1 or higher.

What are the supported transport methods?

The server supports Stdio and SSE as transport methods.

Can the server be run in a Docker container?

Yes, the server can be built and run in a Docker container.

What extensions are required for running the server?

The server requires either the Swow extension (version > 1.5) or the Swoole extension (version > 5.1).

How can I define a custom MCP service?

You can define a custom MCP service by creating a service class with annotations and a command class to run the server.