MCP cover image
See in Github
2025-04-14

一个简单的MCP服务器,用于个人实验

1

Github Watches

1

Github Forks

0

Github Stars

simple-mcp - MCP Project

A complete MCP project with both client and server components, using stdio transport.

Features

  • Robust Communication: Reliable stdio transport with proper error handling and timeout management
  • Multiple Connection Methods: Connect to an already running server or start a new server process
  • Interactive Mode: Choose tools and provide parameters interactively
  • One-shot Mode: Run queries directly from the command line
  • Comprehensive Logging: Detailed logging for debugging and monitoring

Project Structure

  • client/: The MCP client implementation
  • server/: The MCP server implementation with tools
  • test.sh: A test script to run both client and server

Building

# Build the server
cd server
cargo build

# Build the client
cd ../client
cargo build

Running

Start the Server

cd server
cargo run

Run the Client

cd client
cargo run -- --name "Your Name"

Interactive Mode

cd client
cargo run -- --interactive

Testing

./test.sh

Available Tools

  • hello: A simple tool that greets a person by name

相关推荐

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

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

  • Bora Yalcin
  • Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.

  • 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

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

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

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

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • modelcontextprotocol
  • 模型上下文协议服务器

  • Mintplex-Labs
  • 带有内置抹布,AI代理,无代理构建器,MCP兼容性等的多合一桌面和Docker AI应用程序。

  • huahuayu
  • 统一的API网关,用于将多个Etherscan样区块链Explorer API与对AI助手的模型上下文协议(MCP)支持。

    Reviews

    2 (1)
    Avatar
    user_dmD3XVdU
    2025-04-15

    I recently started using the Pyro2 MCP Server by magic-fo, and I am thoroughly impressed with its performance and reliability. It's an absolute game-changer for anyone needing efficient and dependable server solutions. The user-friendly interface and robust functionality make it a standout in its category. Highly recommend! Check it out here: https://mcp.so/server/pyro2-mcp/magic-fo.