PHPackages                             vluzrmos/mcp - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. vluzrmos/mcp

ActiveLibrary

vluzrmos/mcp
============

MCP Server implementation for PHP 5.6+

01PHP

Since Mar 14Pushed 1mo agoCompare

[ Source](https://github.com/vluzrmos/mcp-php)[ Packagist](https://packagist.org/packages/vluzrmos/mcp)[ RSS](/packages/vluzrmos-mcp/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

MCP PHP
=======

[](#mcp-php)

[![PHP 5.6+](https://camo.githubusercontent.com/f158ce25773c5cfb6d45aa8d5887425f0102ecebbfc0696aa32d213b00e7245a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d352e362532422d626c75652e737667)](https://www.php.net/)[![License: MIT](https://camo.githubusercontent.com/784362b26e4b3546254f1893e778ba64616e362bd6ac791991d2c9e880a3a64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e2e737667)](LICENSE)

A **Model Context Protocol (MCP)** server implementation for PHP 5.6+, built on top of a JSON-RPC 2.0 foundation (`vluzrmos/jsonrpc`). It enables AI models to interact with PHP-based tools through the standardized MCP protocol.

Table of Contents
-----------------

[](#table-of-contents)

- [Requirements](#requirements)
- [Installation](#installation)
- [Quick Start](#quick-start)
- [Architecture](#architecture)
- [Creating Tools](#creating-tools)
- [Creating Resources](#creating-resources)
- [Creating Prompts](#creating-prompts)
- [Content Types](#content-types)
- [Sessions &amp; Login](#sessions--login)
- [HTTP &amp; Server-Sent Events](#http--server-sent-events)
- [Capabilities](#capabilities)
- [Pagination](#pagination)
- [API Reference](#api-reference)
- [Testing](#testing)
- [Docker](#docker)
- [License](#license)

Requirements
------------

[](#requirements)

- PHP &gt;= 5.6
- `json` extension
- `curl` extension

Installation
------------

[](#installation)

```
composer require vluzrmos/mcp
```

Quick Start
-----------

[](#quick-start)

### Minimal MCP Server

[](#minimal-mcp-server)

```
