Mcp-Server-Study

Mcp-Server-Study

0

This project serves as an educational tool for learning to implement MCP Servers using FastAPI and other modern technologies. It features a microservices architecture and provides arithmetic operations as a practical example.

Project Overview

  • This project is a learning resource based on the MCP protocol, designed to demonstrate how to implement an MCP Server.
  • The api_server directory contains a set of API services implemented with the FastAPI library to simulate a Java backend service, focusing on basic arithmetic operations.
  • The mcp_server directory includes two ways to implement the server: 'stdio' for local running and 'sse' for use with the uvicon server for remote connections.
  • Key Features:
    • Arithmetic operations: addition, subtraction, multiplication, division
    • Real-time message transmission using SSE
    • Asynchronous HTTP client support
    • Strong type input validation

System Architecture

  • Utilizes microservices architecture.
  • Client interfaces with the MCP Server via SSE Streaming.
  • MCP Server communicates with the API Server over HTTP RPC.