yamayuski / php-mcp-server-sdk
Model Context Protocol Server SDK for PHP
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/yamayuski/php-mcp-server-sdk
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.