mcp

mschickler/mcp

3.2

If you are the rightful owner of mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

This directory contains an example of a comprehensive model context protocol server implemented using FastMCP 2.0.

Tools
2
Resources
0
Prompts
0

FastMCP Server Implementation

This directory contains an example of a comprehensive model context protocol server implemented using FastMCP 2.0, demonstrating a clean approach to building MCP servers with minimal boilerplate code.

Files

  • mcp_demo.py - FastMCP 2.0 server demo implementation
  • requirements.txt - Python dependencies
  • buildenv.sh - Run this script to build the required Python virtual environment
  • gemini_settings.json - An example .gemini/settings.json for making the MCP available to Gemini CLI

Demo Features

The FastMCP implementation (mcp_demo.py) showcases the following features:

Tools

  • System Info: Comprehensive system information with memory and disk usage
  • Weather: Mock weather data generation

Resources

  • Server Status: Current server status and capabilities
  • System Logs: Recent server log entries

Prompts

  • Code Review: Customizable code review template
  • Bug Report: Structured bug report template

Installation

Build the Python virtual environment and install in favorite editor/CLI.

Usage

Test Mode

Test all server capabilities:

python mcp_demo.py --test

STDIO Mode (Default)

Run as MCP server with stdio transport (for local MCP clients):

python mcp_demo.py