Skip to content

AtharvaDomale/Basic_Mcp_Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 

Repository files navigation

🌀️ MCP Weather Server

A basic Model Communication Protocol (MCP) server that exposes weather data and alerts using the US National Weather Service (NWS) API. This server is compatible with clients like Claude for Desktop, allowing natural language interaction with real-time weather tools.

This project follows the official Anthropic MCP Quickstart Guide.


πŸš€ Features

  • πŸ”” get_alerts(state: str) – Fetches weather alerts for a U.S. state.
  • πŸ“ get_forecast(latitude: float, longitude: float) – Returns detailed weather forecast for a given location.
  • βš™οΈ Powered by FastMCP from the mcp SDK.
  • 🧩 Easily integrates with Claude for Desktop or other MCP-compatible clients.

πŸ“¦ Requirements

  • Python 3.10 or higher
  • MCP SDK version 1.2.0 or higher
  • uv (for dependency management)

πŸ› οΈ Setup Instructions

# 1. Install uv (Mac/Linux)
curl -LsSf https://astral.sh/uv/install.sh | sh

# 2. Create a new project directory
uv init weather
cd weather

# 3. Create virtual environment and activate it
uv venv
source .venv/bin/activate

# 4. Install dependencies
uv add "mcp[cli]" httpx

# 5. Create server script
touch weather.py

About

A basic MCP server built using the official MCP documentation as a guide.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages