modelcontextprotocol/php-sdk
Official PHP SDK for the Model Context Protocol, enabling PHP developers to build servers and clients for AI agent tool integration.

This SDK provides a framework-agnostic API for implementing MCP servers and clients in PHP. MCP is a protocol designed by Anthropic that allows AI assistants and agents to interact with external tools, data sources, and capabilities. The SDK supports both server-side implementation, enabling developers to expose tools and resources to AI systems, and client-side implementation, allowing PHP applications to connect to MCP servers. It was developed in collaboration with the PHP Foundation and the Symfony project.