Servers
π The fast, PHP way to build MCP servers
@pronskiy
π The fast, PHP way to build MCP servers
Overview
What is π The fast, PHP way to build MCP servers?
It is a PHP library (pronskiy/mcp) for building Model Context Protocol (MCP) servers, enabling developers to create tools, expose resources, define prompts, and connect components using clean, intuitive PHP code.
How to use π The fast, PHP way to build MCP servers?
Install via Composer with composer require pronskiy/mcp. Then instantiate a \Pronskiy\Mcp\Server, add tools using the tool() method (e.g., add-numbers, multiply-numbers), and call run().
Key features of π The fast, PHP way to build MCP servers?
- Simple PHP library for building MCP servers
- Provides an intuitive API for defining tools
- Supports exposing resources and defining prompts
- Uses Composer for dependency management
- Inspired by the `logiscape/mcp-sdk