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-09-03 16:03:42 +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 Fix manual registration of capabilities via ServerBuilder 2025-09-03 16:03:42 +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 Fix manual registration of capabilities via ServerBuilder 2025-09-03 16:03:42 +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 WIP note to readme 2025-08-29 11:34:00 +02:00

MCP PHP SDK

Important

Currently we are still in the process of merging Symfony's MCP SDK and PHP-MCP components. Not all code paths are fully tested, complete or this package may contain duplicate functionality or dead code. If you want to help us stabilize the SDK, please see the issue tracker.

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.