The official PHP SDK for Model Context Protocol servers and clients. Maintained in collaboration with The PHP Foundation.
1.6k
Stars
152
Forks
87
Open issues
30
Contributors
AI Analysis
The official PHP SDK for Model Context Protocol (MCP), enabling developers to build MCP servers and clients in PHP. It serves PHP developers and the AI agent ecosystem who need protocol-compliant integrations, with direct backing from the PHP Foundation and Symfony project. Not suited for developers requiring non-PHP implementations or those unfamiliar with the MCP specification.
Inferred from signals mentioned in the README (tests, CI, type safety) — not a review of the actual code.
AI's overall editorial judgment — not an average of the bars above, can weigh other factors too.
Official PHP SDK for Model Context Protocol, backed by PHP Foundation and Symfony
The PHP SDK for Model Context Protocol (MCP) is an official implementation providing server and client capabilities for PHP applications to integrate with AI agents. Maintained collaboratively with the PHP Foundation and Symfony project, it enables PHP developers to build MCP servers exposing tools, resources, and prompts, or build MCP clients connecting to MCP servers. The project is in experimental phase pre-1.0, with modest adoption primarily within PHP ecosystems exploring MCP integration.
Created July 2025 as part of Anthropic's Model Context Protocol ecosystem expansion across multiple languages. Follows official SDK launches in Python (23k stars), TypeScript (12k stars), Go, C#, and Java. Represents PHP Foundation's collaboration to ensure PHP has first-class MCP support, positioning PHP as a viable platform for AI-agent-integrated applications.
The repository grew from 0 to 1,547 stars in approximately one year, with consistent maintenance through June 2026. Growth appears driven by PHP Foundation endorsement and Symfony project standards adoption rather than explosive adoption. Recent rate (5 stars in 7 days as of analysis date) suggests stabilization at a niche but engaged user base. Growth trajectory significantly below Python and TypeScript SDKs but comparable to or ahead of newer Java and C# implementations.
Section 'PHP Libraries Using the MCP SDK' referenced in README table of contents but not populated in provided excerpt, suggesting documentation is under development. Adoption not verified through concrete public case studies or deployment counts. Repository metadata shows 150 forks (non-trivial but modest), suggesting some ecosystem experimentation. Packagist presence (mcp/sdk) indicates availability through standard PHP dependency channels. Real-world production adoption remains unverified.
Based on README, the SDK provides framework-agnostic architecture supporting both server and client patterns. Appears to use PHP attributes for capability discovery (tools, resources, prompts), manual registration as fallback, and hybrid approaches. Multiple transport options documented (STDIO, HTTP). Session management abstractions support in-memory, file-based, and PSR-16 cache backends. Follows Symfony coding standards and backward-compatibility practices. Likely modular design but actual code inspection is not possible from metadata alone.
Not documented in README. Presence of conformance badges (server and client conformance) suggests automated testing exists, but granular test coverage metrics are not provided in available documentation.
Last push 2026-06-23 (11 days before analysis date), indicating active recent work. CI/CD pipeline referenced in badges. Conformance tests run weekly per README. No evidence of abandoned state; appears to be regular maintenance cadence consistent with experimental phase project. However, commit frequency and issue-resolution speed not quantifiable from metadata alone.
ADOPT IF: you are building MCP servers or clients in PHP and want standards-backed, Symfony-aligned implementation with ongoing Foundation support, or you operate a PHP-centric infrastructure and need to integrate AI agents. AVOID IF: you require production-proven stability (pre-1.0 experimental status), need extensive case-study references, or are language-agnostic and prioritize the largest ecosystem (Python or TypeScript better choices). MONITOR IF: you work in PHP environments evaluating MCP adoption—this is the canonical choice for PHP, but ecosystem adoption timing and real-world case studies should be tracked before mission-critical deployment.
Independent dimensions
Mainstream potential
3/10
Technical importance
6/10
Adoption evidence
2/10
- Pre-1.0 experimental status means API surface may change, risking refactoring burden for early adopters pre-stable release.
- Adoption not verified through public production deployments or case studies; unclear if real-world usage exists beyond proof-of-concept integrations.
- PHP market share for AI-agent integrations likely smaller than Python or JavaScript; may face upstream protocol changes with less voice/influence than larger SDKs.
- Session management complexity (in-memory, file, PSR-16 backends) introduces operational decisions; HTTP transport readiness and scalability not clearly documented.
- Maintenance dependent on PHP Foundation and Symfony project continuity; if funding or organizational support shifts, adoption risk increases.
Likely to reach 1.0 stable release within 12–18 months, following Symfony release practices. Will become the de-facto standard for PHP MCP implementations but will remain niche relative to Python/TypeScript SDKs due to PHP's market positioning. Mainstream adoption within PHP ecosystem probable; broader tech dominance unlikely. Long-term viability tied to MCP protocol adoption trajectory and PHP Foundation commitment.
Newsletter
Get analyses like this every Monday
Free weekly digest of the most interesting open-source discoveries.
Languages
Information
- Language
- PHP
- License
- NOASSERTION
- Last updated
- 2d ago
- Created
- 12mo ago
- Analyzed with
- anthropic/claude-haiku-4-5
Stars over time
Contributors over time
Top 100 contributors only — repos with more will plateau at 100.
Open issues
Top contributors
Recent releases
Similar repos
modelcontextprotocol/csharp-sdk
The official C# SDK for the Model Context Protocol (MCP), enabling .NET...
modelcontextprotocol/python-sdk
The official Python SDK for building Model Context Protocol (MCP) servers and...
modelcontextprotocol/java-sdk
The MCP Java SDK is the official Java integration for the Model Context...
modelcontextprotocol/swift-sdk
The MCP Swift SDK is the official Swift implementation of the Model Context...
| Repository | Stars | Week Δ | Language | Score | Updated |
|---|---|---|---|---|---|
|
|
1.6k | +8 | PHP | 7/10 | 2d ago |
|
|
4.4k | — | C# | 8/10 | 1w ago |
|
|
23.6k | — | Python | 8/10 | 21h ago |
|
|
3.6k | — | Java | 8/10 | 2d ago |
|
|
1.4k | — | Swift | 7/10 | 2mo ago |
|
|
4.8k | — | Go | 8/10 | 1d ago |
15x larger star count (23.5k vs 1.5k); Python has broader AI/ML ecosystem adoption; however, PHP SDK serves different language runtime and PHP web developer audience. Not direct replacement, different constituencies.
8x larger star count (12.7k vs 1.5k); TypeScript/Node.js dominant in web and tooling; PHP SDK addresses server-side PHP applications, complementary rather than competitive positioning.
3x larger (4.7k vs 1.5k); Go often chosen for systems/agent infrastructure; PHP SDK targets web application layer and business logic integration, different use cases.
2.3x larger (3.5k vs 1.5k); Java ecosystem separate; PHP and Java rarely in direct competition for MCP server roles given different deployment contexts.
Before this official SDK, PHP ecosystem had no standard MCP support; this fills a real gap for PHP-first shops, even if PHP market share smaller than Python or TypeScript.