MCP.so
登录

MCP Server

@Abhinavexists

基本信息

分类

其他

许可证

MIT

传输方式

stdio

作者

Abhinavexists

关于 MCP Server

A Simple Implementation of the Model Context Protocol

MCP Server 配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

MCP Server 工具

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)

概览

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

常见问题

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).

评论

其他 分类下的更多 MCP 服务器