AI Potluck
Back to Gap Map Product / UX / Agent protocols & SDKs

MCP PHP SDK

Model Context Protocol project
open source / Overall score: 3.4

The 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
5.0
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.

Adoption

3 high confidence
3.0

Adoption 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 confidence
4.0

MCP 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