MCP.so
Sign In

MCP Server

@Abhinavexists

Basic information

Category

Other

License

MIT

Transports

stdio

Author

Abhinavexists

About MCP Server

A Simple Implementation of the Model Context Protocol

MCP Server config

No standard config provided

This server doesn't expose a parseable MCP config block in its README. See the repository for install instructions.

Repository

MCP Server tools

2

Fetches weather alerts for a specified US state (using two-letter state code)

Retrieves weather forecasts for a specific location (using latitude and longitude)

Overview

What is MCP?

MCP is a command-line tool that provides access to US weather data through a client-server architecture using the Model Context Protocol (MCP) and Google's Gemini AI. It connects a Python client with a weather data server that retrieves alerts and forecasts from the National Weather Service API.

How to use MCP?

Install dependencies using uv, create a .env file with your Gemini API key, then run python client.py server.py and type natural language queries about US weather, such as "What are the current weather alerts in CA?" or "What's the forecast for latitude 37.7749, longitude -122.4194?" Type quit to exit.

Key features of MCP

  • Query weather alerts for US states using state codes
  • Get detailed weather forecasts via latitude and longitude
  • Natural language interface powered by Google's Gemini AI
  • Client-server architecture using Model Context Protocol (MCP)

Use cases of MCP

  • Check weather alerts for a state (e.g., California)
  • Get forecast for a specific location using coordinates
  • Practice understanding MCP client-server communication
  • Integrate weather queries into AI-powered workflows

Frequently asked questions

1

What does MCP stand for?

Model Context Protocol.

2

What are the prerequisites?

Python 3.8+, Node.js (if using the JavaScript server), and a Google Gemini API key.

3

How do I install dependencies?

Install `uv` with `pip install uv`, create a virtual environment with `uv venv`, activate it, then run `uv pip sync`.

4

What tools are available?

Two tools: `get_alerts` (takes a two-letter US state code) and `get_forecast` (takes latitude and longitude).

5

Where does the weather data come from?

The National Weather Service API (NWS).

Comments

More Other MCP servers