#STEP 1: install uv
About
Model Context Protocol The Model Context Protocol is an open standard that enables developers to build secure, two-way connections between their data sources and AI-powered tools. The architecture is straightforward: developers can either expose their data through MCP servers or
Details
- Author
- SageChisanga
- Downloads
- 313
- Categories
- Other
Jump to
- Built with FastMCP and httpx
- Uses the National Weather Service API
- Includes a user agent header for API requests
- Designed for easy local setup with uv
Install uv, create a new project, set up a virtual environment, and install dependencies (mcp[cli] and httpx). Then create a weather.py file that initializes a FastMCP server named "weather". Configure the server in your Claude desktop config file at ~/Library/Application Support/Claude/claude_desktop_config.json.
#STEP 1: install uv
#curl -LsSf https://astral.sh/uv/install.sh | sh
# Create a new directory for our project
uv init weather
cd weather
# Create virtual environment and activate it
uv venv
source .venv/bin/activate
# Install dependencies
uv add "mcp[cli]" httpx
# Create our server file
touch weather.py
from typing import Any
import httpx
from mcp.server.fastmcp import FastMCP
# Initialize FastMCP server
mcp = FastMCP("weather")
# Constants
NWS_API_BASE = "https://api.weather.gov"
USER_AGENT = "weather-app/1.0"
#Add this file
mkdir -p "~/Library/Application Support/Claude"
touch "~/Library/Application Support/Claude/claude_desktop_config.json"
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



