MCP PHP SDK

MCP PHP SDK Guides

  • MCP Elements — Core capabilities (Tools, Resources, Resource Templates, and Prompts) with registration methods.
  • Server Builder — Fluent builder class for creating and configuring MCP server instances.
  • Transports — STDIO and HTTP transport implementations with guidance on choosing between them.
  • Server-Client Communication — Methods for servers to communicate back to clients: sampling, logging, progress, and notifications.
  • Examples — Example projects demonstrating attribute-based discovery, dependency injection, HTTP transport, and more.

Search results