mcpapp1
mcpapp1 — MCP-сервер погоды
Небольшой Model Context Protocol сервер, который предоставляет текущие предупреждения о погоде в США MCP-клиентам, таким как Claude Desktop, Claude Code и Cursor.
Данные берутся из National Weather Service API, который бесплатен и не требует API-ключа.
Что он предоставляет
Тип | Имя | Описание |
Инструмент |
| Активные предупреждения о погоде для штата США по двухбуквенному коду (например, |
Ресурс |
| Возвращает сообщение обратно; полезно для проверки доступности сервера |
Related MCP server: Weather MCP Server
Требования
Python 3.13+
Установка
git clone https://github.com/eyosiasbisrat/mcpapp1.git
cd mcpapp1
uv syncЗапуск
Запустите сервер напрямую через stdio:
uv run server/weather.pyИли через MCP CLI:
uv run mcp run server/weather.pyПроверьте его в интерактивном режиме в MCP Inspector:
uv run mcp dev server/weather.pyMCP-сервер общается по JSON-RPC через stdin/stdout, поэтому при ручном запуске он просто молча ждёт ввода. Это нормально — обычно его запускает клиент.
Подключение клиента
Claude Code / Cursor
Оба конфига уже добавлены в репозиторий и используют относительные пути, поэтому после uv sync они работают без правок:
.mcp.json — Claude Code
.cursor/mcp.json — Cursor
Перезагрузите окно редактора и подтвердите запуск сервера по запросу.
Claude Desktop
uv run mcp install server/weather.pyЗатем полностью завершите Claude Desktop — включая значок в трее, так как закрытие окна оставляет его работающим, — и откройте снова.
Если при этом выводится Claude app not found, хотя Claude Desktop точно установлен, см. ниже.
Устранение неполадок
Claude app not found в Windows
mcp install ищет конфиг Claude Desktop в фиксированном месте:
%APPDATA%\ClaudeЕсли Claude Desktop установлен как пакет MSIX / Microsoft Store, его данные перенаправляются в контейнер пакета, и этого каталога никогда не существует:
%LOCALAPPDATA%\Packages\Claude_<id>\LocalCache\Roaming\Claude\claude_desktop_config.jsonДва способа решить проблему.
Отредактируйте настоящий конфиг напрямую — добавьте запись mcpServers в claude_desktop_config.json по указанному выше пути пакета, сохранив все существующие ключи.
Или один раз свяжите пути с помощью junction-ссылки на каталог, после чего mcp install будет нормально работать для любого сервера:
cmd /c mklink /J "%APPDATA%\Claude" "%LOCALAPPDATA%\Packages\Claude_<id>\LocalCache\Roaming\Claude"Подставьте фактическое имя папки пакета вместо Claude_<id>. Чтобы отменить это, cmd /c rmdir "%APPDATA%\Claude" удалит только ссылку, а не конфиг.
При ручной регистрации сервера в Windows используйте абсолютный путь к uv (например, C:\Users\<you>\.local\bin\uv.exe). Упакованные приложения не всегда надёжно наследуют PATH из вашей оболочки, поэтому голый uv может не запуститься.
Проверка, что сервер действительно загружен
Убедитесь, что клиент запустил его, проверив родительский процесс:
Get-CimInstance Win32_Process -Filter "Name='uv.exe'" | ForEach-Object {
$p = Get-CimInstance Win32_Process -Filter "ProcessId=$($_.ParentProcessId)"
"$($_.ProcessId) <- $($p.Name)"
}Если родительским процессом uv.exe является Claude.exe, значит сервер работает. Обратите внимание: некоторые сборки Claude Desktop не пишут отдельные логи серверов в logs\, поэтому пустая папка логов не является признаком сбоя.
Структура проекта
server/weather.py the MCP server: tool, resource, and NWS client
main.py placeholder entrypoint
.mcp.json Claude Code server config
.cursor/mcp.json Cursor server config
pyproject.toml dependencies (httpx, mcp[cli])Примечания
get_alertsохватывает только штаты США, поскольку NWS — агентство США.Запросы содержат заголовок
User-Agent, который требуется NWS API.Сетевые и HTTP-ошибки перехватываются и отображаются как дружелюбное сообщение «unable to fetch» вместо traceback.
Available Tools
1 toolget_alertsA
Get weather alerts for a US state.
Args: state: Two-letter US state code (e.g. CA, NY)
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full behavioral burden. 'Get' implies a read-only operation, but the description does not explicitly state side-effect-free behavior or any caveats about alert types or data source. It is not misleading, but it adds minimal behavioral context beyond what the name implies.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is extremely concise, with a front-loaded purpose statement followed by a compact Args block. Every sentence earns its place and there is no filler.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
With a single well-documented parameter, an output schema, and no siblings, the description plus schema fully covers what an agent needs to invoke the tool correctly. No missing context for this simple operation.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, yet the description fully compensates by specifying the parameter format ('Two-letter US state code') and providing concrete examples ('CA, NY'). This adds real meaning beyond the raw schema type string.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific verb ('Get'), a clear resource ('weather alerts'), and a clear scope ('US state'). It is unambiguous and leaves no doubt about what the tool does, even without siblings to differentiate from.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
There are no sibling tools, so explicit routing guidance is unnecessary. The description clearly implies usage: when you need weather alerts for a US state. It lacks explicit exclusions, but nothing is misleading or missing for a tool of this simplicity.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
1 tool update
v0.1.0- First observed
get_alerts
TDQS
Scored across 1 tool
With only one tool, there is no possibility of ambiguity or misselection. The tool's purpose is clearly defined in its name and description.
The single tool name follows the verb_noun pattern (get_alerts), which is clean and predictable. There are no other tools to create inconsistency.
One tool feels thin for a server, even one dedicated to weather alerts. While alerts retrieval is a focused task, a small set of supporting tools (e.g., list states or get alert details) would make the server feel more complete.
For the stated purpose of retrieving weather alerts, the get_alerts tool covers the core operation without obvious gaps. The domain is narrow, and no additional lifecycle operations are necessary for read-only alert access.
Maintenance
Related MCP Connectors
Hosted MCP server for Xweather weather data: conditions, forecasts, alerts, and more.
Get US weather forecasts, active alerts, and current observations.
NOAA and ECMWF weather forecast MCP for discovery, validation, and GribStream OAuth queries.
Smarter Weather MCP: forecasts, alerts, outlooks, observations, AQI, grids, and map imagery.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceThis is a Model Context Protocol (MCP) server that provides weather information using the National Weather Service (NWS) API. Features Get weather alerts for a US state Get weather forecast for a specific location (using latitude and longitude)-
- FlicenseNot gradedqualityDmaintenanceEnables users to get real-time weather alerts for US states and echo messages through both MCP server tools and a modern web interface. Provides weather information access with multiple deployment options for different use cases.1-
- AlicenseBqualityDmaintenanceProvides weather forecasts and alerts for US locations using the National Weather Service API. Enables users to retrieve active alerts by state and detailed forecasts by coordinates via MCP tools.122ISC
- FlicenseNot gradedqualityCmaintenanceEnables querying live U.S. National Weather Service alerts by state through MCP, with both Python and TypeScript implementations.-