PHP MCP Server SDK
by yamayuski
This SDK allows you to build MCP servers in PHP. It supports standard transports and handles MCP protocol messages and lifecycle events.
Last updated: N/A
What is PHP MCP Server SDK?
A PHP SDK for building MCP (Machine Communication Protocol) servers, enabling the exposure of resources, prompts, and tools.
How to use PHP MCP Server SDK?
Install via composer: composer require yamayuski/php-mcp-server-sdk
. Develop using development containers with VSCode or PhpStorm. Refer to the documentation for specific implementation details.
Key features of PHP MCP Server SDK
Build MCP servers in PHP
Expose resources, prompts, and tools
Supports stdio and Streamable HTTP(SSE) transports
Handles MCP protocol messages and lifecycle events
Use cases of PHP MCP Server SDK
Creating custom MCP servers
Integrating PHP applications with MCP-based systems
Developing tools and resources accessible via MCP
Building interactive command-line interfaces
Streaming data via SSE
FAQ from PHP MCP Server SDK
What is MCP?
What is MCP?
MCP stands for Machine Communication Protocol, a protocol for communication between machines.
What PHP version is required?
What PHP version is required?
PHP 8.2 or higher is required.
How do I install the SDK?
How do I install the SDK?
Use composer: composer require yamayuski/php-mcp-server-sdk
What transports are supported?
What transports are supported?
stdio and Streamable HTTP(SSE) are supported.
Where can I find more documentation?
Where can I find more documentation?
Refer to the project's README and source code for detailed usage instructions.