MCP-Server-Demo

MCP-Server-Demo

2.5

This project demonstrates building a simple MCP server, with instructions for installation using UV, and screenshots of the test results to showcase functionality.

MCP Server Demo

Overview

Building a simple MCP server using KD nuggets: Building a Simple MCP Server

Installation

Using UV

# Install UV globally (On Windows)
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

# Clone the repository
git clone https://github.com/your-username/mcp-server-demo.git

# Navigate to the project directory
cd mcp-server-demo

# Inspect server
uv run mcp dev stock_price_server.py

# Install server in claude desktop
uv run mcp install stock_price_server.py --name "Stock Price Server" --with yfinance

Test Results

Below are screenshots showcasing the results of running tests on the MCP server.

Screenshot 1: Prompt 1

Server Running

Screenshot 2: Prompt 2

Successful Connection

References