gregory-gerard / mcp-sdk
Model Context Protocol SDK for Client and Server applications in PHP. Backport of symfony/mcp-sdk for PHP 7.4 compatibility.
Requires
- php: ^7.4 || ^8.0
- psr/log: ^1.0 || ^2.0 || ^3.0
- symfony/uid: ^5.4 || ^6.4 || ^7.0
Requires (Dev)
- php-cs-fixer/shim: ^3.75
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^9.6 || ^11.5
- psr/cache: ^3.0
- rector/rector: ^2.1
- symfony/console: ^6.4 || ^7.0
Suggests
- psr/cache: To use CachePoolStore with SSE Transport
- symfony/console: To use SymfonyConsoleTransport for STDIO
This package is auto-updated.
Last update: 2025-08-05 16:14:03 UTC
README
Important
This is a backport of the Symfony MCP SDK https://github.com/symfony/mcp-sdk for PHP 7.4 compatibility.
Model Context Protocol SDK for Client and Server applications in PHP.
This Component is experimental. Experimental features are not covered by Symfony's Backward Compatibility Promise.
Installation
composer require gregory-gerard/mcp-sdk
This is a low level SDK that implements the Model Context Protocol (MCP). The protocol is used by LLM model to build "plugins" and give them extra context. Example the logged in users' latest order.
This repository is a READ-ONLY sub-tree split. See https://github.com/symfony/ai to create issues or submit pull requests.