mcp-example
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
mcp-example
Локальный MCP-сервер на Python (MCP SDK + FastMCP, транспорт stdio) с инструментами
погоды и времени на базе Open-Meteo. Предназначен для Агента SourceCraft Code Assistant.
Инструменты
Инструмент | Входные параметры | Результат |
|
|
|
|
|
|
|
|
|
Related MCP server: MCP Weather Server
Структура
src/mcp_example/ # код сервера
tests/ # тесты и JSON-фикстуры
scripts/ # smoke-тест stdio
docs/ # архитектура, контракты, пример конфигурацииУстановка
Через uv:
uv sync --extra devИли через venv и pip:
python3 -m venv .venv
.venv/bin/pip install -e ".[dev]"Запуск
uv run python -m mcp_exampleБез uv:
PYTHONPATH=src .venv/bin/python -m mcp_exampleПроверка
.venv/bin/python -m pytest -q
.venv/bin/python scripts/smoke_stdio.pyЛогирование
Каждый вызов MCP-инструмента пишется в stderr: имя инструмента, аргументы, успешное завершение или ошибка. stdout занят JSON-RPC, поэтому логи туда не попадают.
2026-12-02 07:23:00,123 INFO mcp_example.tools: tool get_current_weather called with city='Moscow'
2026-12-02 07:23:00,456 INFO mcp_example.tools: tool get_current_weather completed, response size 74 charsУровень задаётся переменной LOG_LEVEL (DEBUG, INFO, WARNING, ERROR).
По умолчанию INFO. При запуске сервера вручную логи видны прямо в терминале.
Подключение к SourceCraft
См. docs/mcp-settings.example.json.
Документация
REPORT.md— исходный план и обоснование структуры
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
The official Model Context Protocol server for Ambee. It gives any MCP-compatible AI assistant — Claude, ChatGPT, Cursor, VS Code, Ollama, and more direct access to live air quality, pollen, and weather data. To get started, including information on signing up and obtaining your Ambee key, check out the Ambee documentation on https://docs.ambeedata.com
Hosted MCP server for Xweather weather data: conditions, forecasts, alerts, and more.
MCP server exposing the Backtest360 engine API as tools for AI agents.
Open-Meteo MCP — weather forecast + historical reanalysis + sister APIs
Related MCP Servers
- AlicenseBqualityDmaintenanceA simple MCP server that provides a tool to fetch current weather information for cities using the Open-Meteo API, communicating through stdin/stdout.12ISC
- AlicenseBqualityDmaintenanceProvides tools to retrieve current weather conditions and daily forecasts for cities worldwide using the Open-Meteo API. This Python-based server enables MCP-compatible clients to access real-time meteorological data through a standardized interface.2MIT
- FlicenseAqualityDmaintenanceLightweight MCP server that exposes tools for system information and weather lookup, designed for agent integration via stdio.1-
- AlicenseAqualityDmaintenanceMCP server that provides current weather for any city using Open-Meteo APIs. It exposes a single tool 'get_weather' returning temperature, humidity, wind, and other weather data.19 npmMIT