MCP PHP SDK
Model Context Protocol projectThe official PHP SDK for the Model Context Protocol, maintained with The PHP Foundation. Framework-agnostic client and server covering tools, resources and prompts over stdio and HTTP, measured weekly against the MCP conformance suite.
Openness
5 high confidence- license
- Apache-2.0(OSI
- source
- public(the SDK, its transports and its framework integrations)
- self-host
- yes(a library you build against)
- core features withheld
- no — nothing withheld from the published tree
Open source under the Model Context Protocol project's dual transition licence, with the body cited because the classifier reports NOASSERTION over it.
- https://api.github.com/repos/modelcontextprotocol/php-sdk recorded 2026-09-17
Repository metadata: 1,612 stars, not archived, not a fork, last pushed 2026-09-15, description "The official PHP SDK for Model Context Protocol servers and clients. Maintained in collaboration with The PHP Foundation."
- https://raw.githubusercontent.com/modelcontextprotocol/php-sdk/main/LICENSE recorded 2026-09-17
The LICENSE body, read rather than the classifier's label: it opens with the MCP project's licensing transition from MIT to Apache-2.0 and carries both texts, which is the shape GitHub's classifier cannot match and the reason the API reports NOASSERTION.
Adoption
3 high confidenceAdoption is measured by monthly downloads of `mcp/sdk` on Packagist, the install channel for a PHP library, so the figure measures the product directly.
- https://packagist.org/packages/mcp/sdk.json recorded 2026-09-17
The Packagist API record for mcp/sdk, served from packagist.org (repo.packagist.org returns 404 for it): downloads total 3,605,864, monthly 953,763, daily 49,497; 1,609 GitHub stars; not abandoned.
Capability
4 medium confidenceMCP PHP SDK implements both roles, the full primitive set and two transports, and its documentation names the current specification revision - unlike the C# and Kotlin SDKs. What is missing is the optional features: sampling, roots and elicitation are not named anywhere in the documentation read.
- https://raw.githubusercontent.com/modelcontextprotocol/php-sdk/main/README.md recorded 2026-09-17
The README: "a framework-agnostic API for implementing MCP servers and clients in PHP" covering "tools, resources, prompts, STDIO and HTTP transports, sessions, authorization, and both protocol eras (the initialize handshake and the stateless 2026-07-28 revision)", with a conformance table carrying rows for 2026-07-28 and 2025-11-25 "Measured weekly against the MCP Conformance Test Framework". It also states "Until the first major release, this SDK is considered experimental".
Verified 2026-09-17