Servers
Simple MCP Server Example
@dabouelhassan
A simple example of a Model Context Protocol Server implementation
Overview
What is Simple MCP Server Example?
Simple MCP Server Example is a basic implementation of a Model Context Protocol (MCP) server built with FastAPI. It provides a simple context service that processes prompt templates and supports parameterized prompts.
How to use Simple MCP Server Example?
Install dependencies with pip install -r requirements.txt, then run the server using uvicorn src.main:app --reload. The server exposes two endpoints: a GET / for health checks and a POST /context to retrieve context for a given prompt with optional parameters.
Key features of Simple MCP Server Example
- Basic health check endpoint
- Context endpoint that processes prompt templates
- Support for parameterized prompts
Use cases of Simple MCP Server Example
—
FAQ from Simple MCP Server Example
—