MCP Server Basic Example
This is a basic example of a Model Context Protocol (MCP) server implementation that demonstrates core functionality including tools and resources.
Setup Steps
- Initialize the project (Go to any local folder and launch powershell or cmd):
uv init mcp-server-basic
cd mcp-server-basic
Create virtual environment and activate it
uv venv
.venvScriptsactivate
- Install dependencies:
uv add "mcp[cli]"
or
uv add -r requirements.txt
Features
The server implements the following features:
Tools
add(a: int, b: int): Adds two numberssubtract(a: int, b: int): Subtracts second number from first
Resources
greeting://{name}: Returns a personalized greeting
Running the Server
To run the server with the MCP Inspector for development:
uv run mcp dev main.py
To run the server normally:
uv run mcp run
To install the server in Claude desktop app:
uv run mcp install main.py
MCP connect in VS code
- Open folder/mcp-server-basic in vs code
- open terminal and run below command :
uv run main.py
- Click Cntrl+Shift+I to launch chat in vs code
- Do login with Github and setup
- Folow the below steps (two way to add mcp configuration for vs code user settings):
#hello from mcp
Basic MCP Server Example
Project Details
- ugundhar/mcp-server
- Other
- Last Updated: 4/30/2025
Recomended MCP Servers
This MCP server was developed to improve Cline's agentic workflows by being up-to-date with the public repositories and...
MCP server that provides hourly weather forecasts using the AccuWeather API
IP Geolocation Server for MCP
MCP Salesforce connector
"Liquidium MCP with Posthog Support"
A Model Context Protocol (MCP) server that provides file system context to Large Language Models (LLMs). This server...
This is an MCP (Model Context Protocol) server for interacting with Google's Chronicle Security Operations API.
An MCP service for getting user geolocation information
OmniMCP uses Microsoft OmniParser and Model Context Protocol (MCP) to provide AI models with rich UI context and...
JLCPCB PCBA向けの、部品探しを補助するためのMCPサーバー





