AgentIndex icon
AgentIndex
ToolsMCP ServersHOTCategoriesTrendingNewBest ListsCompareGuides
Submit Tool
ToolsMCP ServersHOTCategoriesTrendingNewBest ListsCompareGuides
Home/
Dev Tooling/
php-sdk
php-sdk logo

php-sdk

Active·★ 1.6k·NOASSERTION·Updated 2026-10-27
★ Essential★ Trending

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.

This write-up is based on the project's README and public repository data. We have not hand-tested the tool. Data as of 2026-10-25.

License
Not detected by GitHub
Latest release
v0.9.0 · 2026-10-18
Last commit
2026-10-20
Contributors
62
Forks
188
Open issues and PRs
60
First published
2025-07-15

Source: GitHub, npm and PyPI public APIs.

#PHP#SDK#AI Agents#Protocol#Server-Client#API Integration#Framework-agnostic#Large Language Models
$ Install
$ composer require mcp/sdk
↗ Visit site★ GitHub
01

Features

01Implement MCP Servers to expose PHP capabilities (tools, resources, prompts) to AI agents.
02Build MCP Clients to connect to and interact with any MCP server from PHP applications.
03Support for attribute-based and manual registration of server capabilities.
04Multiple transport options including STDIO and HTTP for flexible deployment.
05Advanced client features like progress tracking, sampling, elicitation, and logging support.
02

Why choose it

+Official SDK backed by the PHP Foundation and the Symfony project
+Attribute-based capability definitions feel natural in modern PHP
+Both server and client SDKs, with several transports and session management
+Follows Symfony's coding standards and backward-compatibility promise
03

Trade-offs

!Experimental until the first major release, per the README
!License is not detected by GitHub; confirm the terms before use
!Requires comfort with PHP attributes and Symfony-style conventions
!The README is long and covers many options, so there is a lot to read before the basics
04

Maintenance check

ActiveChecked: 2026-10-23
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
Commits per week, last 12 weeks
Commits per week, last 12 weeks: 0, 16, 40, 10, 7, 4, 2, 0, 1, 37, 38, 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.

05

Compatibility

PHP
Runtime
Verified via docs
Symfony
Framework
Verified via docs
Drupal
CMS
Verified via docs
CakePHP
Framework
Verified via docs
06

Quick start

1
$ composer require mcp/sdk
07

Use cases

↳Exposing existing PHP application functionalities (e.g., database access, custom logic) as callable tools or readable resources for AI agents.
↳Integrating PHP applications with external AI systems or other MCP-compliant services by acting as an MCP client.
↳Developing AI-powered assistants or copilots within Symfony, Drupal, or CakePHP ecosystems by building custom MCP servers.
↳Creating custom PHP-based 'tools' that large language models (LLMs) can discover and execute via the Model Context Protocol.
08

Alternatives

⚡Top VS:
VSkotlin-sdk★1.5k→VSCopilotKit★38.3k→VSagents-towards-production★21.8k→VSrust-sdk★4.1k→
kotlin-sdk logo
kotlin-sdk★ 1.5k
The official Kotlin SDK for Model Context Protocol servers and clients. Maintained in collaboration with JetBrains
VSCompare→
CopilotKit logo
CopilotKit★ 38.3k
React UI + elegant infrastructure for AI Copilots, AI chatbots, and in-app AI agents. The Agentic Frontend.
VSCompare→
agents-towards-production logo
agents-towards-production★ 21.8k
This repository delivers end-to-end, code-first tutorials covering every layer of production-grade GenAI agents, guiding you from spark to scale with proven patterns and reusable blueprints for real-world launches.
VSCompare→
rust-sdk logo
rust-sdk★ 4.1k
The official Rust SDK for the Model Context Protocol
VSCompare→
agent-protocol logo
agent-protocol★ 1.5k
Common interface for interacting with AI agents. The protocol is tech stack agnostic - you can use it with any framework for building agents.
VSCompare→
code-mode logo
code-mode★ 1.6k
🔌 Plug-and-play library to enable agents to call MCP and UTCP tools via code execution.
VSCompare→
sceneview logo
sceneview★ 1.3k
3D & AR SDK for Android (Jetpack Compose + Filament), iOS (SwiftUI + RealityKit), and Web. AI-first: llms.txt, MCP server, Copilot/Cursor rules. The only Compose-native 3D library.
VSCompare→
jupyter-mcp-server logo
jupyter-mcp-server★ 1.3k
🪐 🔧 Model Context Protocol (MCP) Server for Jupyter.
VSCompare→
See all alternatives →

Comments

Log in to leave a comment

No comments yet. Be the first!

On this page
01Features02Why choose it03Trade-offs04Maintenance check05Compatibility06Quick start07Use cases08Alternatives
modelcontextprotocol /
php-sdk
↗

Official PHP SDK for building MCP servers and clients

1.6k188
Last commit1d ago
StatusActive
CategoryDev Tooling
Contributors62
Latest releasev0.9.0
Links
Documentation↗Discussion↗Issues↗Releases↗
Cloud Infrastructure
Ad

Deploy on DigitalOcean

Host your MCP servers, Docker containers, and AI agents with $200 free credit over 60 days.

Claim $200 Free Credit
© 2026 AgentIndex.app|Built by a 10-year iOS Developer.
Best by use caseAboutContactAdvertisePrivacy PolicyTerms of UseQYSGitHubBuy me a coffee ☕

Browse by Category

MCP ServersCode AssistantWorkflow AutomationRAG / Knowledge BaseMulti-AgentBrowser AutomationLLM InfraDev ToolingObservability

Not affiliated with Anthropic, OpenAI or Microsoft.