mcp / server
Model Context Protocol server for PHP applications
dev-main
2026-11-27 14:01 UTC
Requires
- php: ^8.2
- mcp/schema: ^0.11
- opis/json-schema: ^2.4
- php-http/discovery: ^1.20
- phpdocumentor/reflection-docblock: ^6.0
- psr/clock: ^1.0
- psr/container: ^1.1 || ^2.0
- psr/event-dispatcher: ^1.0
- psr/http-client: ^1.0
- psr/http-factory: ^1.1
- psr/http-message: ^1.1 || ^2.0
- psr/http-server-handler: ^1.0
- psr/http-server-middleware: ^1.0
- psr/log: ^1.0 || ^2.0 || ^3.0
- symfony/deprecation-contracts: ^2.5 || ^3.0
- symfony/uid: ^5.4 || ^6.4 || ^7.3 || ^8.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-27 22:48:11 UTC
README
A framework-agnostic server for the Model Context Protocol: expose tools,
resources and prompts over STDIO or HTTP, declared with attributes or registered on the builder. It serves both the
initialize handshake and the stateless 2026-07-28 revision.
composer require mcp/server
Some features need an extra package:
symfony/finderfor the file-based discovery of tools, resources and promptsfirebase/php-jwtfor validating OAuth access tokens with theJwtTokenValidator- a PSR-6 or PSR-16 cache for the cached discovery and the session stores that use them
symfony/lockfor session locks- PSR-7 and PSR-17 implementations for the HTTP transport, for example
nyholm/psr7
To build a client as well, install mcp/sdk instead.
Resources
This repository is a read-only split of mcp/sdk.