MCP cover image
See in Github
2025-03-07

1

Github Watches

0

Github Forks

0

Github Stars

MCP Text Tools Demo

这是一个简单的 MCP (Model Context Protocol) 服务器示例,提供了文本反转功能。

安装

  1. 创建并激活 conda 环境:
conda create -n mcp-server-demo python=3.10
conda activate mcp-server-demo
  1. 安装依赖:
pip install -r requirements.txt

运行服务器

使用 stdio 模式(默认)

python server.py

使用 SSE 模式

python server.py --transport sse --port 8000

在 Cursor 中配置

  1. 打开 Cursor 设置
  2. 导航到 Features > MCP
  3. 点击 + Add New MCP Server
  4. 配置服务器:
    • 对于 stdio 模式:

      • Type: stdio
      • Name: Text Tools
      • Command: conda run -n mcp-server-demo python /path/to/server.py
    • 对于 SSE 模式:

可用工具

  • reverse_text: 接收一个文本输入并返回其反转版本
    • 参数:
      • text: 要反转的文本字符串

注意事项

  • 确保在运行服务器之前已经激活了 conda 环境:conda activate mcp-server-demo
  • 在 Cursor 中配置命令时需要使用 conda run -n mcp-server-demo 前缀
  • 请将命令中的 /path/to/server.py 替换为实际的服务器脚本路径

相关推荐

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

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

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • apappascs
  • Découvrez la collection la plus complète et la plus à jour de serveurs MCP sur le marché. Ce référentiel sert de centre centralisé, offrant un vaste catalogue de serveurs MCP open-source et propriétaires, avec des fonctionnalités, des liens de documentation et des contributeurs.

  • Mintplex-Labs
  • L'application tout-en-un desktop et Docker AI avec chiffon intégré, agents AI, constructeur d'agent sans code, compatibilité MCP, etc.

  • modelcontextprotocol
  • Serveurs de protocole de contexte modèle

  • n8n-io
  • Plateforme d'automatisation de workflow à code équitable avec des capacités d'IA natives. Combinez le bâtiment visuel avec du code personnalisé, de l'auto-hôte ou du cloud, 400+ intégrations.

  • ShrimpingIt
  • Manipulation basée sur Micropython I2C de l'exposition GPIO de la série MCP, dérivée d'Adafruit_MCP230XX

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

  • OffchainLabs
  • Aller la mise en œuvre de la preuve de la participation Ethereum

  • metorial
  • Versions conteneurisées de centaines de serveurs MCP 📡 🧠 🧠

    Reviews

    5 (1)
    Avatar
    user_UuwXoa5J
    2025-04-16

    I've been using mcp-server-demo from capybara-sfw for a while now, and I'm thoroughly impressed! It's incredibly intuitive and user-friendly, making server setup a breeze. The documentation is clear, and the welcome message guides you seamlessly through initial steps. Highly recommend for anyone looking to streamline their server processes. Check it out on GitHub!