symfony / mcp-sdk
Model Context Protocol SDK for Client and Server applications in PHP
Fund package maintenance!
fabpot
Tidelift
symfony.com/sponsor
Requires
- php: ^8.2
- psr/log: ^1.0 || ^2.0 || ^3.0
- symfony/uid: ^6.4 || ^7.0
Requires (Dev)
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^11.5
- psr/cache: ^3.0
- rector/rector: ^2.0
- 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-07-11 11:17:17 UTC
README
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 symfony/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.