mcp / client
Model Context Protocol client for PHP applications
dev-main
2026-11-27 14:01 UTC
Requires
- php: ^8.2
- mcp/schema: ^0.11
- php-http/discovery: ^1.20
- psr/clock: ^1.0
- psr/http-client: ^1.0
- psr/http-factory: ^1.1
- psr/http-message: ^1.1 || ^2.0
- psr/log: ^1.0 || ^2.0 || ^3.0
- symfony/deprecation-contracts: ^2.5 || ^3.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-27 22:48:09 UTC
README
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/client
Some 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.
Resources
This repository is a read-only split of mcp/sdk.