Official PHP SDK for building MCP servers and clients, maintained with The PHP Foundation.
php-sdk is worth checking the docs before setup with strong trust signals. Check agent compatibility and use-case fit before adding it to your workflow.
gh repo view modelcontextprotocol/php-sdk --webOpen the official README and confirm the supported install method.
Add the server entry to your MCP client config.
Restart your agent and verify that the server tools appear.
Repository setup guidance
Strong trust signals; still review the README and permissions before production use.
Last commit was about 24 days ago.
1584 GitHub stars indicate community interest.
85 open issues signal maintenance load.
NOASSERTION license detected.
3 security/trust notes recorded.
Setup difficulty is 3/5.
Official MCP reference servers from Anthropic. Includes servers for filesystem, GitHub, Postgres, Slack, and more.
A secure MCP server for AI applications to interact with MySQL databases.
Up-to-date code documentation for LLMs and AI code editors, eliminating outdated or hallucinated API references.
Zero-dependency, token-efficient MCP server for querying multiple databases via a single interface.
This is a toolkit for PHP developers to create servers and clients that talk to AI models using the Model Context Protocol. It lets you expose your app's features as tools and resources that AI can use, or connect to other MCP servers. It's like a bridge between your PHP code and AI assistants.
The MCP PHP SDK is the official PHP implementation of the Model Context Protocol (MCP), developed in collaboration with The PHP Foundation and Symfony. It provides a framework-agnostic API for building both MCP servers and clients. With this SDK, you can expose your PHP application's functionality (tools, resources, prompts) to AI agents like Claude, Codex, and others, or connect to MCP servers from your PHP applications. The SDK supports attribute-based discovery for defining capabilities, multiple transport options (e.g., stdio), and follows Symfony coding standards and backward compatibility promises. It is currently experimental until the first major release, with a roadmap for future features. The SDK is designed to be flexible, allowing you to choose between attribute-based, programmatic, or other registration methods for your MCP capabilities. It also includes server-initiated communication features like elicitations, sampling, logging, and progress notifications. The project is actively maintained and has conformance testing to ensure compatibility with the MCP specification.
1,584
Stars
164
Forks
85
Issues
NOASSERTION
License
Official PHP SDK for building MCP servers and clients, maintained with The PHP Foundation.
PHP developers building AI-powered applications, Developers creating MCP servers or clients in PHP, Symfony or Laravel developers looking to integrate AI
The setup section provides repository-level starting guidance, not a guarantee of an independently verified installation. Check the official README and release notes.
The SDK is experimental until the first major release, so APIs may change. As with any SDK, ensure you follow security best practices when exposing tools and resources to AI agents.
Similar or complementary options to evaluate include MCP Server Collection, mysql_mcp_server, context7.
Aug 20, 2026