php-mcp-server-sdk
PHP MCP Server SDK library
Documentation
PHP MCP Server sdk
Requirements
- PHP 8.2+
Overview
- Build MCP servers that expose resources, prompts and tools on PHP
- Use standard transports like stdio and Streamable HTTP(SSE)
- Handle all MCP protocol messages and lifecycle events
Installation
$ composer require yamayuski/php-mcp-server-sdkDevelopment
You need Development containers with vscode or PhpStorm
$ composer install
# Unit test
$ composer test
# Inspector test
$ ./start-inspector.shLICENSE
Under Apache-2.0.
Frequently asked questions
What is php-mcp-server-sdk?
php-mcp-server-sdk is PHP MCP Server SDK library
How do I install php-mcp-server-sdk?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is php-mcp-server-sdk open source?
Yes — it is hosted on GitHub at https://github.com/yamayuski/php-mcp-server-sdk.
Related MCP tools
An SDK building Laravel MCP servers PHP-based implementation.
Core PHP implementation for the Model Context Protocol (MCP) server Trusted by 700+ developers. Trusted by 700+ developers.
Model Context Protocol SDK for PHP
The official TypeScript SDK for Model Context Protocol servers and clients Trusted by 10500+ developers. Trusted by 10500+ developers.
Visual testing tool for MCP servers TypeScript-based implementation. Trusted by 7300+ developers. Trusted by 7300+ developers.
AWS MCP Servers — helping you get the most out of AWS, wherever you use MCP. Python-based implementation. Trusted by 6900+ developers.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP