MCP cover image
See in Github
2025-04-14

🐉 The fast, PHP way to build MCP servers

6

Github Watches

0

Github Forks

6

Github Stars

🐉 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:

composer require pronskiy/mcp

Usage

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

License

The MIT License (MIT). Please see License File for more information.

相关推荐

  • Aurity Ltd
  • Create and Publish Business Websites in seconds. AI will gather all the details about your website and generate link to your website.

  • John Rafferty
  • Text your favorite pet, after answering 10 questions about their everyday lives!

  • Convincible Ltd
  • You're in a stone cell – can you get out? A classic choose-your-adventure interactive fiction game, based on a meticulously-crafted playbook. With a medieval fantasy setting, infinite choices and outcomes, and dice!

  • Ian O'Connell
  • Provide players' names or enter Quickstart to start the game!

  • analogchat.com
  • Efficient Spotify assistant for personalized music data.

  • Matthieu Savioux
  • Evaluates language quality of texts, responds with a numerical score between 50-150.

  • Carl Oscar Aaro
  • Structured recipes for food and desserts – ingredient lists and step-by-step recipe instructions from any input. Become surprised, try something new or breathe life into grandma's old recipe notebook.

  • WangRongsheng
  • 🧑‍🚀 全世界最好的LLM资料总结(Agent框架、辅助编程、数据处理、模型训练、模型推理、o1 模型、MCP、小语言模型、视觉语言模型) | Summary of the world's best LLM resources.

  • av
  • Effortlessly run LLM backends, APIs, frontends, and services with one command.

  • langgenius
  • Dify is an open-source LLM app development platform. Dify's intuitive interface combines AI workflow, RAG pipeline, agent capabilities, model management, observability features and more, letting you quickly go from prototype to production.

  • 1Panel-dev
  • 🔥 1Panel provides an intuitive web interface and MCP Server to manage websites, files, containers, databases, and LLMs on a Linux server.

  • alibaba
  • an easy-to-use dynamic service discovery, configuration and service management platform for building AI cloud native applications.

  • caio-moliveira
  • This project was created to demonstrate how we can connect with different Model Context Protocols (MCPs).

  • rulego
  • ⛓️RuleGo is a lightweight, high-performance, embedded, next-generation component orchestration rule engine framework for Go.

  • Byaidu
  • PDF scientific paper translation with preserved formats - 基于 AI 完整保留排版的 PDF 文档全文双语翻译,支持 Google/DeepL/Ollama/OpenAI 等服务,提供 CLI/GUI/MCP/Docker/Zotero

  • hkr04
  • Lightweight C++ MCP (Model Context Protocol) SDK

    Reviews

    3.5 (13)
    Avatar
    user_W9TXWYTw
    2025-04-23

    I have been using MCP for a while now, and it has exceeded all my expectations. Created by Pronskiy, this product is incredibly user-friendly and efficient. The interface is smooth, and the functionality is exactly what I needed. I highly recommend MCP to anyone looking for a reliable tool.

    Avatar
    user_Sgz6MNO4
    2025-04-23

    I've been using mcp by Pronskiy, and it has transformed the way I handle tasks. The interface is intuitive and the performance is stellar. It's a must-have tool that boosts productivity and simplifies workflows. Highly recommended for anyone looking to streamline their processes.

    Avatar
    user_lqfi8ekW
    2025-04-23

    I've been using mcp by Pronskiy and it's been a fantastic experience. The seamless integration and user-friendly interface have made it an essential tool in my daily workflow. Highly recommend it for anyone looking for a reliable and efficient application.

    Avatar
    user_xEUOdL39
    2025-04-23

    As a dedicated user of the mcp application, I am thoroughly impressed by its efficiency and user-friendly interface. Developed by Pronskiy, mcp simplifies complex functions while ensuring a seamless experience. Its intuitive design and language support make it accessible and highly functional. Highly recommend it for anyone seeking a robust and effective solution!

    Avatar
    user_XdSH0Ht6
    2025-04-23

    As a dedicated user of mcp, I must say that this application has significantly streamlined my daily tasks. Pronskiy has developed an intuitive platform that is both user-friendly and efficient. The seamless navigation and welcoming interface make it a pleasure to use. Highly recommended!

    Avatar
    user_xaBFOWu8
    2025-04-23

    As a dedicated user of MCP, I have found it to be an outstanding application developed by Pronskiy. The interface is intuitive and efficient, making it easy to navigate and use. It stands out for its reliability and comprehensive features, which have significantly improved my productivity. Highly recommended for anyone looking to streamline their workflow!

    Avatar
    user_e1i7b2lK
    2025-04-23

    MCP is an outstanding application created by Pronskiy that offers a seamless and user-friendly experience. As a loyal user, I appreciate its intuitive design and robust functionality. Whether for personal or professional use, this app consistently delivers top-notch performance. For anyone looking for a reliable solution, I highly recommend MCP.

    Avatar
    user_Dmmdde3R
    2025-04-23

    I've been using the MCP application by Pronskiy, and it's truly impressive. The user interface is intuitive, making it easy for anyone to get started without a steep learning curve. The features are well-thought-out, catering perfectly to my needs. I highly recommend it to anyone looking for a reliable and efficient app.

    Avatar
    user_gGVmDRxh
    2025-04-23

    As a dedicated user of MCP, I can confidently say it has significantly streamlined my workflows. Created by Pronskiy, this tool excels in efficiency and usability, making complex tasks more manageable. Whether you are a novice or an expert, MCP caters to all levels of expertise with its intuitive interface and robust features. Highly recommended!

    Avatar
    user_fG3weI0E
    2025-04-23

    As an avid user of the mcp app, I must say that it has exceeded my expectations in every way. The user interface is intuitive, making it easy to navigate and utilize all its fantastic features. The commitment of its creator, Pronskiy, shines through in the app's performance and reliability. If you're looking for a top-notch solution, I highly recommend giving mcp a try!

    Avatar
    user_TIhPpZOB
    2025-04-23

    MCP is an incredible application that has significantly improved my productivity. Created by Pronskiy, this tool is easy to navigate and supports multiple languages, making it accessible to a wide range of users. The user interface is intuitive, and the start-up guide is very welcoming. Highly recommend MCP to anyone looking to optimize their workflow!

    Avatar
    user_gsKE79kC
    2025-04-23

    I've been using mcp developed by pronskiy for a while now, and it's absolutely fantastic. The application is user-friendly and highly efficient for my needs. The design and functionality are seamless, making it a joy to use every day. Highly recommended!

    Avatar
    user_YE3wKweL
    2025-04-23

    As an avid user of MCP, I can confidently say it's a game-changer. Developed by Pronskiy, this tool has streamlined my workflows and boosted efficiency significantly. Its seamless integration and user-friendly interface make it a must-have for anyone looking to optimize their tasks. I highly recommend giving MCP a try!