MCP cover image
See in Github
2025-04-14

🐉 La façon rapide et PHP de construire des serveurs MCP

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.

相关推荐

  • Contraband Interactive
  • Emulating Dr. Jordan B. Peterson's style in providing life advice and insights.

  • rustassistant.com
  • Your go-to expert in the Rust ecosystem, specializing in precise code interpretation, up-to-date crate version checking, and in-depth source code analysis. I offer accurate, context-aware insights for all your Rust programming questions.

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

  • 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!

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

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

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

  • WangRongsheng
  • 🧑‍🚀 全世界最好的 LLM 资料总结 (数据处理、模型训练、模型部署、 O1 模型、 MCP 、小语言模型、视觉语言模型) | Résumé des meilleures ressources LLM du monde.

  • langgenius
  • av
  • Exécutez sans effort LLM Backends, API, Frontends et Services avec une seule commande.

  • alibaba
  • 1Panel-dev
  • 🔥 1Panel fournit une interface Web intuitive et un serveur MCP pour gérer des sites Web, des fichiers, des conteneurs, des bases de données et des LLM sur un serveur Linux.

  • Byaidu
  • PDF Traduction de papier scientifique avec formats conservés - 基于 AI 完整保留排版的 PDF 文档全文双语翻译 , 支持 Google / Deepl / Olllama / Openai 等服务 , 提供 CLI / GUI / MCP / DOCKER / ZOTERO

  • caio-moliveira
  • Ce projet a été créé pour démontrer comment nous pouvons nous connecter avec différents protocoles de contexte de modèle (MCP).

  • microsoft
  • Python tool for converting files and office documents to Markdown.

  • rulego
  • ⛓️RULEGO est un cadre de moteur de règle d'orchestration des composants de nouvelle génération légère, intégrée, intégrée et de nouvelle génération pour GO.

  • mindsdb
  • AI's query engine - Platform for building AI that can answer questions over large scale federated data. - The only MCP Server you'll ever need

  • AstrBotDevs
  • ✨ 易上手的多平台 llm 聊天机器人及开发框架 ✨ 平台支持 QQ 、 QQ 频道、 Télégramme 、微信、企微、飞书 | MCP 服务器、 Openai 、 Deepseek 、 Gemini 、硅基流动、月之暗面、 Olllama 、 Oneapi 、 Dify 等。附带 webui。

  • nbonamy
  • Witsy: Assistant AI de bureau

    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!