Basic information
About PHP MCP Client
Model Context Protocol client implementation for PHP
PHP MCP Client is a MCP client in the Agent Framework category listed in the AddMCP.net directory, published by swisnl. Runtime: PHP. License: MIT. The repository has 8 GitHub stars. Source code is hosted on github.com.
PHP MCP Client config
No standard config provided
This server doesn't expose a parseable MCP config block in its README. See the repository for install instructions.
PHP MCP Client tools
Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is PHP MCP Client?
A PHP client library for interacting with Model Context Protocol (MCP) servers. It runs on any PHP 8.2+ environment and is built on ReactPHP for asynchronous operations.
How to use PHP MCP Client?
Install via Composer (composer require swisnl/mcp-client), then create a client with a transport (SSE, Stdio, Process, or StreamableHttp), connect to the server, and call tools. For example, Client::withSse($endpoint) initiates an SSE connection, and $client->callTool('name', ['param' => 'value']) executes a tool.
Key features of PHP MCP Client
- Multiple transport mechanisms: SSE, Stdio, Process, and StreamableHttp
- Promise-based API with ReactPHP for async operations
- PSR-3 Logger interface support
- Tool annotation support (read‑only hint, title)
- Custom transporter support via
TransporterInterface - Integration with the SWIS Agents SDK
Use cases of PHP MCP Client
- Connect PHP applications to any MCP‑compatible server (e.g., math tools, data retrievers)
- Build AI agents by combining the client with the SWIS Agents SDK
- Call remote or local MCP tools with structured input and output
Frequently asked questions
1 What is the PHP MCP Client?
It’s a PHP library that implements the client side of the Model Context Protocol, allowing PHP applications to interact with MCP servers over multiple transports using async I/O.
2 What PHP version is required?
PHP 8.2 or higher, along with ReactPHP packages.
3 Which transports are supported?
Four transports: Server‑Sent Events (SSE), standard I/O (Stdio), external process communication (Process), and HTTP with session management (StreamableHttp).
4 Is the PHP MCP Client free?
Yes, it’s open‑source under the MIT license. The project is Treeware – if used in production, you are asked to buy a tree.
5 Can I use a custom transport?
Yes. Implement the TransporterInterface and pass your transporter to the Client constructor.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In