php-sdk

php-sdk

Official PHP SDK for Model Context Protocol, supporting the development of MCP servers and clients.

MCPDevOpen source
Type
MCP
Open source
Yes
GitHub Stars
★ 1.5k
Source
mcp-github

Overview

The MCP PHP SDK is the official development toolkit for Model Context Protocol, providing a framework-agnostic API to implement MCP servers and clients. With this SDK, you can expose PHP application functionalities (such as tools, resources, and prompts) to AI agents, or connect to and interact with MCP servers from within your PHP application. Suitable for developers who need to integrate MCP functionality into PHP environments.

Capabilities

  • Build MCP servers
  • Build MCP clients
  • Define tool capabilities
  • Define resource capabilities
  • Support multiple transport protocols

Use cases

Expose PHP application functions to AI agentsConnect to and interact with MCP servers from a PHP applicationImplement custom MCP servers and clients

Setup

Requires: PHP 环境Composer
composer require mcp/sdk

This information was compiled by AI from public sources and may contain inaccuracies — please refer to the source.

FAQ

How to install the MCP PHP SDK?

Install using Composer by running the command `composer require mcp/sdk`.

What transport protocols does the MCP PHP SDK support?

Supports STDIO and HTTP transport protocols.

Related skills