A client for the Model Context Protocol: connect to MCP servers over STDIO or HTTP,
call tools, read resources and get prompts. It speaks both the initialize handshake and the stateless
2026-07-28 revision, and authorizes with OAuth.
composer require mcp/clientSome features need an extra package:
firebase/php-jwtfor theprivate_key_jwtclient authentication- a PSR-18 HTTP client and PSR-17 factories for the HTTP transport, for example
symfony/http-clientandnyholm/psr7
To build a server as well, install mcp/sdk instead.
This repository is a read-only split of mcp/sdk.