Skip to content
Back to search

mcp

🐉 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
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/pronskiy--mcp/badge.svg)](/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)

  1. # 🐉 The fast, PHP way to build MCP servers
  2. 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.
  3. Create tools, expose resources, define prompts, and connect components with clean PHP code.
  4. ## Installation
  5. With composer:
  6. ```bash
  7. composer require pronskiy/mcp
  8. ```
  9. ## Usage
  10. ```php
  11. require 'vendor/autoload.php';
  12. $server = new \Pronskiy\Mcp\Server('simple-mcp-server');
  13. $server
  14. ->tool(
  15. 'add-numbers',
  16. 'Adds two numbers together',
  17. fn(float $num1, float $num2) => "The sum of {$num1} and {$num2} is " . ($num1 + $num2)
  18. )
  19. ->tool(
  20. 'multiply-numbers',
  21. 'Multiplies two numbers',
  22. fn(float $num1, float $num2) => "The product of {$num1} and {$num2} is " . ($num1 * $num2)
  23. )
  24. ;
  25. $server->run();
  26. ```
  27. ## Credits
  28. - https://github.com/logiscape/mcp-sdk-php
  29. ## License
  30. The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.