Cover image
Try Now
2024-12-02

A simple example of a Model Context Protocol Server implementation

3 years

Works with Finder

1

Github Watches

1

Github Forks

2

Github Stars

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:

    pip install -r requirements.txt
    
  2. Run the server:

    uvicorn src.main:app --reload
    

Usage

The server provides two endpoints:

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

Example request:

curl -X POST http://localhost:8000/context \
  -H "Content-Type: application/json" \
  -d '{"prompt_id": "greeting", "parameters": {"time": "12:00 PM"}}'

相关推荐

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

  • https://duotify.com
  • Professional code reviewer for a unique language, friendly and helpful.

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

  • Andris Teikmanis
  • Latvian GPT assistant for developing GPT applications

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

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

  • Navid RezaeiSarchoghaei
  • Professional Flask/SQLAlchemy code guide. Follow: https://x.com/navid_re

  • Callycode Limited
  • A geek-themed horoscope generator blending Bitcoin prices, tech jargon, and astrological whimsy.

  • https://cantaspinar.com
  • Summarizes videos and answers related questions.

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

  • apappascs
  • Discover the most comprehensive and up-to-date collection of MCP servers in the market. This repository serves as a centralized hub, offering an extensive catalog of open-source and proprietary MCP servers, complete with features, documentation links, and contributors.

  • ShrimpingIt
  • Micropython I2C-based manipulation of the MCP series GPIO expander, derived from Adafruit_MCP230xx

  • OffchainLabs
  • Go implementation of Ethereum proof of stake

  • huahuayu
  • A unified API gateway for integrating multiple etherscan-like blockchain explorer APIs with Model Context Protocol (MCP) support for AI assistants.

  • oatpp
  • Anthropic’s Model Context Protocol implementation for Oat++

    Reviews

    5 (1)
    Avatar
    user_LHZlZfhS
    2025-04-15

    I'm a huge fan of Bitrise MCP Server by bitrise-io! This powerful tool significantly streamlines our CI/CD processes with its seamless integration and robust performance. The user interface is intuitive, making it easy to set up workflows and monitor builds. Highly recommend it to teams looking to enhance their development pipeline. Check it out at https://mcp.so/server/bitrise-mcp/bitrise-io.