MCP-Quickstart

jameskanyiri/MCP-Quickstart

3.2

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

This document provides a structured overview of a Model Context Protocol (MCP) server demo using FastMCP with streamable HTTP transport.

Tools
3
Resources
0
Prompts
0

MCP Quickstart

A simple Model Context Protocol (MCP) server demo using FastMCP with streamable HTTP transport.

Features

  • Tools: get_user_info, long_running_task, get_weather
  • Resources: Dynamic greeting resource (greeting://{name})
  • Prompts: Customizable greeting prompt with style options

Requirements

  • Python 3.13+
  • uv package manager

Setup

Create and activate a virtual environment:

# Create virtual environment
uv venv

# Activate virtual environment
# On macOS/Linux:
source .venv/bin/activate
# On Windows:
# .venv\Scripts\activate

# Install dependencies
uv sync

Running the Server

uv run main.py

The server starts at http://localhost:8000/mcp.

Testing with MCP Inspector

  1. Start the server (see above)
  2. In a separate terminal, run:
npx -y @modelcontextprotocol/inspector
  1. In the Inspector UI, connect to http://localhost:8000/mcp