Back to search
mcp
MCP serverGitHub
🐉 The fast, PHP way to build MCP servers
Safety scan
A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.
Checked today
Badge for your README
Markdown
[](/listings/pronskiy--mcp)HTML
<a href="/listings/pronskiy--mcp"><img src="/api/listings/pronskiy--mcp/badge.svg" alt="findsafeskills safety rating" /></a>Install
i
Install instructions from the README
As written by the repo's author. findsafeskills has not verified these steps.
With composer:
composer require pronskiy/mcp
What was scanned
The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.
README.md · README · 44 lines
View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)
- # 🐉 The fast, PHP way to build MCP servers
- The Model Context Protocol (MCP) is a new, standardized way to provide context and tools to your LLMs, and `pronskiy/mcp` makes building MCP servers simple and intuitive.
- Create tools, expose resources, define prompts, and connect components with clean PHP code.
- ## Installation
- With composer:
- ```bash
- composer require pronskiy/mcp
- ```
- ## Usage
- ```php
- require 'vendor/autoload.php';
- $server = new \Pronskiy\Mcp\Server('simple-mcp-server');
- $server
- ->tool(
- 'add-numbers',
- 'Adds two numbers together',
- fn(float $num1, float $num2) => "The sum of {$num1} and {$num2} is " . ($num1 + $num2)
- )
- ->tool(
- 'multiply-numbers',
- 'Multiplies two numbers',
- fn(float $num1, float $num2) => "The product of {$num1} and {$num2} is " . ($num1 * $num2)
- )
- ;
- $server->run();
- ```
- ## Credits
- - https://github.com/logiscape/mcp-sdk-php
- ## License
- The MIT License (MIT). Please see [License File](LICENSE.md) for more information.
Ratings and comments
Sign in to rate this skill.
Sign inFree to use. If it’s helped, pass it on.