{"repo":"php-mcp/client","free":true,"listed":false,"github":"https://github.com/php-mcp/client","clone":"git clone https://github.com/php-mcp/client.git","description":"Core PHP implementation for the Model Context Protocol (MCP) Client","language":"PHP","stars":57,"topics":[],"license":"MIT","category":"mcp-servers","readme_excerpt":"PHP MCP Client PHP MCP Client is a PHP library for interacting with servers that implement the Model Context Protocol (MCP). It provides a developer-friendly interface to connect to individual MCP servers using different transports ( stdio , http+sse ), manage the connection lifecycle, discover server capabilities (Tools, Resources, Prompts), and execute requests like calling tools or reading resources. While utilizing asynchronous I/O internally via ReactPHP for robustness and handling features like server-sent events, the library offers both a straightforward synchronous (blocking) API for common use cases and an asynchronous (Promise-based) API for advanced control and concurrency. This library aligns with the MCP specification's model where one client instance manages a stateful connection to one server. Introduction to MCP The Model Context Protocol (MCP) is an open standard designed to standardize how AI assistants and applications connect to external data sources, APIs, and tools (like codebases, databases, web browsers). It acts as a communication layer, enabling AI models (like Claude, or models integrated via frameworks like OpenAI's) to securely access and interact with context provided by different servers. This client library allows your PHP application (acting as the \"Host\" in MCP terminology) to consume capabilities offered by one or more MCP servers. Features Client-per-Server Model: Each Client instance manages a stateful connection to a single configured MCP","default_branch":null,"files":null,"tree":[],"storefront":"/r/php-mcp","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/php-mcp/client/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}