PHP MCP Server SDK logo

PHP MCP Server SDK

by yamayuski

This SDK allows you to build MCP servers in PHP. It supports standard transports and handles MCP protocol messages and lifecycle events.

View on GitHub

Last updated: N/A

PHP MCP Server sdk

Requirements

  • PHP 8.2+

Overview

  • Build MCP servers that expose resources, prompts and tools on PHP
  • Use standard transports like stdio and Streamable HTTP(SSE)
  • Handle all MCP protocol messages and lifecycle events

Installation

$ composer require yamayuski/php-mcp-server-sdk

Development

You need Development containers with vscode or PhpStorm

$ composer install

# Unit test
$ composer test

# Inspector test
$ ./start-inspector.sh

LICENSE

Under Apache-2.0.