PHP MCP Server sdk

by yamayuski

159 downloads
Not rated
GitHub

About

PHP MCP Server sdk is a library for building MCP (Model Context Protocol) servers in PHP 8.2+. It exposes resources, prompts, and tools over standard transports (stdio and Streamable HTTP/SSE) and handles all MCP protocol messages and lifecycle events. It is intended for PHP…

Details

Author
yamayuski
Downloads
159
Categories
Developer Tools

- Build MCP servers that expose resources, prompts, and tools
- Use stdio or Streamable HTTP (SSE) transports
- Handle all MCP protocol messages and lifecycle events
- Requires PHP 8.2+
- Licensed under Apache-2.0

Install the SDK via Composer: composer require yamayuski/php-mcp-server-sdk. Then write your server implementation to expose resources, prompts, and tools. The SDK manages all MCP protocol message handling and lifecycle events. For development, use Dev Containers with VS Code or PhpStorm; run composer install, then composer test for unit tests or ./start-inspector.sh for inspector testing.

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

```s
$ composer install

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.