php-sdk
This is the official PHP SDK for the Model Context Protocol, a framework-agnostic API for implementing MCP servers and clients in PHP. The README says it is a collaboration between the PHP Foundation and the Symfony project and follows Symfony's coding standards and backward-compatibility promise. Until the first major release it is considered experimental, with a roadmap for what comes next. Weekly conformance workflows are linked from the badges.
Install with `composer require mcp/sdk`. On the server side you define capabilities with PHP attributes (`#[McpTool]`, `#[McpResource]`), build a server with `Server::builder()`, let it auto-discover attributes in your code and run it over a transport such as stdio; other registration methods exist for different architectures. Server capabilities include tools, resources, resource templates, prompts and server-initiated communication such as elicitation, sampling, logging and progress. The README also documents transports, session management and a client SDK for connecting to MCP servers from PHP. GitHub's license detection shows none, so check the repository for the terms.
Features
Why choose it
Trade-offs
Maintenance check
- Last commit
- 2026-10-20
- Commits, last 90 days
- 100+
- Releases, last 90 days
- 4
- Latest release
- v0.9.0 (2026-10-18)
- Open issues
- 57
- Recent issues with at least one comment
- 3/6
Oldest week on the left; the latest four weeks are orange. Source: GitHub commit activity.
Status rule: archived on GitHub = Archived; last commit within 90 days = Active; 91 to 365 days = Slowing; older = Stale. All figures come from the GitHub API on the date shown.
Most discussed open issues
- #586 SchemaValidator rejects nested empty JSON objects as arrays4 comments · 2026-10-10
- #367 [Conformance] SEP-2484: Wire SEP traceability files into conformance test runner; surface per-SEP pass rates4 comments · 2026-05-26
- #44 Proposal: Extract Discovery module from core SDK for better modularity4 comments · 2025-09-07
- #9 [Server] (Re-)Implement missing Notification & Request Handlers4 comments · 2025-08-29
- #489 Slicing the SDK into Multiple Packages3 comments · 2026-08-29
Issue titles are quoted from GitHub. Open the link to check whether a problem still applies to the version you use.
Compatibility
Quick start
Use cases
Alternatives
Comments
No comments yet. Be the first!