#97 · Primary category: LLM Application Frameworks

php-sdk

mcp mcp-client mcp-server php

The official PHP SDK for Model Context Protocol servers and clients. Maintained in collaboration with The PHP Foundation.

Project last updated:08/29/26

GitHub Stars

1.6K

Forks

167

Contributors

50

License

Other

Why we included this project

PHP teams building applications that need to talk to AI agents get a framework-agnostic path here: one SDK covering both sides of the Model Context Protocol. Use it to build a server that hands parts of your application to agents, such as tools, resources, or prompt templates, or a client that connects to external MCP servers and calls into them. The attribute-based API is refreshingly direct: mark a plain PHP method with a tool attribute and the SDK handles discovery and protocol negotiation for you. It ships with STDIO and HTTP transports and pluggable session backends, so the same code runs as a local CLI process or as a scaled web service. As the official implementation, developed with the PHP Foundation and Symfony, it tracks the protocol closely and follows Symfony's backward-compatibility promise, but it stays experimental until the first major release; for most PHP teams that trade-off still makes it the sensible default.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category