AgentIndex icon
AgentIndex
ToolsCategoriesTrendingNewCompareGuides
Submit Tool
ToolsCategoriesTrendingNewCompareGuides
Home/
Dev Tooling/
php-sdk
php-sdk logo

php-sdk

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

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.

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

Browse by Category

Code AssistantWorkflow AutomationRAG / Knowledge BaseMulti-AgentBrowser AutomationLLM InfraDev ToolingObservability

Not affiliated with Anthropic, OpenAI or Microsoft.

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-11.

License
Not detected by GitHub
Latest release
v0.8.1 · 2026-08-29
Last commit
2026-10-10
Contributors
58
Forks
181
Open issues and PRs
94
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

Compatibility

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

Quick start

1
$ composer require mcp/sdk
06

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.
07

Alternatives

CopilotKit logo
CopilotKit★ 38.0k
React UI + elegant infrastructure for AI Copilots, AI chatbots, and in-app AI agents. The Agentic Frontend.
1Panel logo
1Panel★ 37.2k
🔥 1Panel provides an intuitive web interface and MCP Server to manage websites, files, containers, databases, and LLMs on a Linux server.
headroom logo
headroom★ 75.4k
Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. Around 20% fewer tokens for coding agents and 60-95% fewer for JSON, with the same answers. Library, proxy, and MCP server.

Comments

Log in to leave a comment

No comments yet. Be the first!

On this page
01Features02Why choose it03Trade-offs04Compatibility05Quick start06Use cases
MindsHub (formerly MindsDB) logo
MindsHub (formerly MindsDB)★ 39.8k
MindsHub (formerly MindsDB) is an agent workspace for knowledge work and software development, with connected data sources, a model router across frontier and open models, open-source agent harnesses, and publishable artifacts.
GitHub MCP Server logo
GitHub MCP Server★ 33.6k
GitHub's official MCP Server. Allows AI agents to interact directly with your GitHub repositories (read files, search code, issues).
Brave Search MCP logo
Brave Search MCP★ 1.5k
Allow your AI Agent to search the real-time internet using Brave Search API. Essential for getting up-to-date information.
MetaGPT logo
MetaGPT★ 70.9k
🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
awesome-mcp-servers logo
awesome-mcp-servers★ 96.3k
A collection of MCP servers.
See all alternatives →
07
Alternatives
Stats
GitHub Stars★ 1.6k
Last commit1d ago
StatusActive
LicenseNOASSERTION
CategoryDev Tooling
Trend (30d)
+0k↑ 3.8%
Links
Documentation↗Discussion↗Issues↗Releases↗

Deploy on DigitalOcean — Get $200 Free Credit

Ad