# Build MCP servers and clients for PHP applications with the official PHP SDK

> Use the official Model Context Protocol PHP SDK to expose PHP application capabilities as MCP tools, resources, and prompts for agent workflows.

- Skill: `agentskillexchange/build-mcp-servers-and-clients-for-php-applications-with-the-` (Agent Skill)
- Install (CLI): `npx skillmds@latest add agentskillexchange/build-mcp-servers-and-clients-for-php-applications-with-the-`
- Raw SKILL.md: https://api.skillmd.com/api/skills/agentskillexchange/build-mcp-servers-and-clients-for-php-applications-with-the-/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: agentskillexchange (https://skillmd.com/u/agentskillexchange)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/agentskillexchange/build-mcp-servers-and-clients-for-php-applications-with-the-

---


# Build MCP servers and clients for PHP applications with the official PHP SDK

Use the official Model Context Protocol PHP SDK to expose PHP application capabilities as MCP tools, resources, and prompts for agent workflows.

## Prerequisites

PHP, Composer, MCP-compatible host/client

## Installation

Use the upstream install or setup path that matches your environment:
- composer require mcp/sdk

Basic usage or getting-started notes:
- bash
- ## Overview
- The MCP PHP SDK provides both **server** and **client** implementations for the Model Context Protocol, enabling you to:

- Source: https://github.com/modelcontextprotocol/php-sdk
- Extracted from upstream docs: https://raw.githubusercontent.com/modelcontextprotocol/php-sdk/HEAD/README.md

## Documentation

- https://github.com/modelcontextprotocol/php-sdk

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/build-mcp-servers-and-clients-for-php-applications-with-the-official-php-sdk/)

