Skip to content

About

Server component of the official PHP SDK for Model Context Protocol. Maintained in collaboration with The PHP Foundation.

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

MCP Server

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/finder for the file-based discovery of tools, resources and prompts
  • firebase/php-jwt for validating OAuth access tokens with the JwtTokenValidator
  • a PSR-6 or PSR-16 cache for the cached discovery and the session stores that use them
  • symfony/lock for 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.

About

Server component of the official PHP SDK for Model Context Protocol. Maintained in collaboration with The PHP Foundation.

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages