Mirror of https://github.com/modelcontextprotocol/php-sdk — The official PHP SDK for Model Context Protocol servers and clients. Maintained in collaboration with The PHP Foundation.
  • PHP 99.8%
  • Makefile 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2025-08-29 11:19:51 +02:00
.github Adopt server examples 2025-08-29 11:19:51 +02:00
doc Kick off the SDK based on Symfony's MCP SDK 2025-08-29 11:09:16 +02:00
examples Adopt server examples 2025-08-29 11:19:51 +02:00
src Adopt server examples 2025-08-29 11:19:51 +02:00
tests Adopt server examples 2025-08-29 11:19:51 +02:00
.gitattributes Kick off the SDK based on Symfony's MCP SDK 2025-08-29 11:09:16 +02:00
.gitignore Adopt server examples 2025-08-29 11:19:51 +02:00
.php-cs-fixer.dist.php Kick off the SDK based on Symfony's MCP SDK 2025-08-29 11:09:16 +02:00
CHANGELOG.md Kick off the SDK based on Symfony's MCP SDK 2025-08-29 11:09:16 +02:00
composer.json Adopt server examples 2025-08-29 11:19:51 +02:00
LICENSE Kick off the SDK based on Symfony's MCP SDK 2025-08-29 11:09:16 +02:00
Makefile Kick off the SDK based on Symfony's MCP SDK 2025-08-29 11:09:16 +02:00
phpstan-baseline.neon Adopt server examples 2025-08-29 11:19:51 +02:00
phpstan.dist.neon Adopt server examples 2025-08-29 11:19:51 +02:00
phpunit.xml.dist Kick off the SDK based on Symfony's MCP SDK 2025-08-29 11:09:16 +02:00
README.md Add README 2025-07-25 11:30:23 +02:00

MCP PHP SDK

Low-level SDK implementation of the Model Context Protocol (MCP) in PHP.

This project is a collaboration between the PHP Foundation and the Symfony project. It adopts development practices and standards from the Symfony project, including Coding Standards and the Backward Compatibility Promise.

Until the first major release, this SDK is considered experimental.

Installation

composer require mcp/sdk

Documentation

Contributing

We are passionate about supporting contributors of all levels of experience and would love to see you get involved in the project. See the contributing guide to get started before you report issues and send pull requests.

License

This project is licensed under the MIT License - see the LICENSE file for details.