mcp-server-example-v2

mcp-server-example-v2

2

This project is a basic implementation of an MCP server using FastAPI. It demonstrates core MCP concepts and provides a simple context service with endpoints for health checks and processing prompt templates.

Simple MCP Server Example

This is a basic implementation of a Model Context Protocol (MCP) server using FastAPI. The server demonstrates the core concepts of MCP by providing a simple context service.

Features

  • Basic health check endpoint
  • Context endpoint that processes prompt templates
  • Support for parameterized prompts

Setup

  1. Install dependencies

  2. Run the server

Usage

The server provides two endpoints:

  1. GET / - Health check
  2. POST /context - Get context for a prompt