yamayuski / php-mcp-server-sdk
Model Context Protocol Server SDK for PHP
0.1.1
2025-05-06 05:58 UTC
Requires
- php: ~8.2.0|~8.3.0|~8.4.0
- ext-json: *
- justinrainbow/json-schema: ^6.4
Requires (Dev)
- phpunit/phpunit: ^11.5.0
- symplify/easy-coding-standard: ^12.5.8
Suggests
- ext-opcache: For better performance
README
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-sdk
Development
You need Development containers with vscode or PhpStorm
$ composer install # Unit test $ composer test # Inspector test $ ./start-inspector.sh
LICENSE
Under Apache-2.0.