MCP Hub
Back to servers

mcp-demo

A demonstration MCP server built with Python and the FastMCP SDK that provides a basic greeting tool.

Forks
1
Tools
1
Updated
Nov 9, 2025

My UV MCP Server

This is a simple Model Context Protocol (MCP) server built using Python and the uv package manager.
It demonstrates creating a basic MCP server with tools and connecting it to Claude Desktop.


Quick Start

Follow these steps to set up and run the MCP server:

StepCommandDescription
1uv init my-mcp-serverCreate new Python MCP project
2uv add mcp[cli]Add MCP SDK with CLI
3source venv/bin/activateActivate virtual environment
4server.pyWrite your server code
5mcp dev server.pyTest and debug MCP server
6mcp install server.pyAdd it to Claude Desktop

1. Create the MCP Server

Create a file server.py with the following code:

from mcp.server.fastmcp import FastMCP

mcp = FastMCP("My UV MCP Server")

@mcp.tool()
def greet(name: str) -> str:
    """Return a greeting message."""
    return f"Hello, {name}! 👋"

if __name__ == "__main__":
    mcp.run()

Reviews

No reviews yet

Sign in to write a review