PHP's official MCP kit borrows Symfony's rigor
Brings Model Context Protocol to PHP so applications can expose tools and resources to AI agents—or call those agents back—without framework lock-in.

What it does
The SDK lets PHP applications expose tools, resources, and prompts to AI agents via MCP, or consume them from other MCP servers. It handles both sides of the wire—server and client—through STDIO or HTTP transports, with pluggable session stores ranging from in-memory to PSR-16 caches.
The interesting bit
Rather than forcing boilerplate, the SDK leans on PHP 8 attributes for auto-discovery—slapping #[McpTool] on a method registers it automatically—while still allowing manual registration when you need explicit control. The project is a collaboration between the PHP Foundation and Symfony, and it adopts Symfony’s coding standards and backward-compatibility promise despite still being experimental.
Key highlights
- Attribute-based, manual, or hybrid capability registration
- Server and client implementations with STDIO and HTTP transports
- Session backends: in-memory, file-based, or any PSR-16 cache
- Progress tracking, sampling, and logging notification hooks on the client
- Already adopted by Drupal, API Platform, CakePHP, Nette, and Symfony ecosystems
- Experimental status until the first major release; see
ROADMAP.md
Caveats
- The README explicitly labels the SDK experimental until v1.0, so breaking changes are expected.
- Dual-licensed (Apache 2.0 for new contributions, MIT for existing), which adds a small legal speed bump if you plan to fork or redistribute.
Verdict
PHP developers building agent-facing APIs or integrating external MCP tools should grab this now and accept the churn. If you need a frozen, battle-hardened contract, wait for the first major release.
Frequently asked
- What is modelcontextprotocol/php-sdk?
- Brings Model Context Protocol to PHP so applications can expose tools and resources to AI agents—or call those agents back—without framework lock-in.
- Is php-sdk open source?
- Yes — modelcontextprotocol/php-sdk is an open-source project tracked on heatdrop.
- What language is php-sdk written in?
- modelcontextprotocol/php-sdk is primarily written in PHP.
- How popular is php-sdk?
- modelcontextprotocol/php-sdk has 1.6k stars on GitHub.
- Where can I find php-sdk?
- modelcontextprotocol/php-sdk is on GitHub at https://github.com/modelcontextprotocol/php-sdk.