Official

Php SDK MCP Server

PHP applications gain native Model Context Protocol support for clients and servers.

Data last scanned today · Reviewed today

711,572PHPNOASSERTION

Overview

The Php SDK MCP Server provides a framework-agnostic API for developers to build both client and server implementations of the Model Context Protocol. It allows PHP applications to expose tools, resources, and prompts to AI agents, or conversely, to interact with existing MCP servers from within a PHP codebase. Developed in collaboration with the PHP Foundation and the Symfony project, this SDK adheres to standard Symfony development practices. It utilizes PHP attributes to define capabilities, providing a clear structural approach for integrating MCP functionality into existing projects.

Our verdict

This library holds a high risk level with a security score of 53/100. The primary concerns involve its experimental status, the lack of an official vendor backing, and unreviewed security aspects such as OAuth and authentication methods. While it benefits from zero direct dependencies and active maintenance by 42 contributors, developers should exercise caution until it reaches a stable, non-experimental release.

  • Adopts established Symfony coding standards and compatibility promises
  • Zero direct dependencies reduce the supply-chain attack surface
  • Active development with 42 contributing developers
  • Includes both server and client SDK implementations
  • Currently classified as an experimental project
  • Security score of 53/100 indicating high risk level
  • Authentication and OAuth mechanisms remain unreviewed
  • License is currently set to NOASSERTION

Compatibility

ClientLocalDockerRemoteRead-only
Claude Desktop
Cursor
VS Code
Windsurf
ChatGPT

Frequently asked questions

Is the PHP SDK ready for production use?

No, until the first major release, the SDK is considered experimental.

What methods can I use to register MCP capabilities in my server?

You can register capabilities using attribute-based discovery, manual programmatic registration, or a hybrid approach combining both.

What transport options are available for an MCP server?

The SDK supports STDIO transport for local command-line integration and HTTP transport for web-based or distributed systems.

How can I maintain session state in my MCP server?

You can configure session storage using the default in-memory store, file-based storage, or any PSR-16 compatible cache like Redis.

Does this SDK only support server implementation?

No, the SDK provides a framework-agnostic API to build both MCP servers to expose functionality and MCP clients to interact with other servers.

Alternatives

Changelog

Badge

Php SDK MCP Server security score, rated on RepoAI

Maintain this server? Add the live badge to your README.