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
-
Install dependencies
-
Run the server
Usage
The server provides two endpoints:
- GET / - Health check
- POST /context - Get context for a prompt