Model Context Protocol
БесплатноНе проверенMCP server enabling real-time weather queries via Tavily API and internet usage data by country via MongoDB.
Описание
MCP server enabling real-time weather queries via Tavily API and internet usage data by country via MongoDB.
README
A service built using the Model Context Protocol (MCP) with FastMCP. This project enables users to query real-time weather information for any city using the Tavily search API, as well as access internet usage data by country.
Setup
Configure Poetry to create virtual environment
poetry config virtualenvs.in-project true
Install dependencies
poetry install
Update dependencies
poetry update --lock
Features
Get current weather information for any city Query internet usage data by country Async API for efficient processing MCP-based protocol for standardized communication MongoDB integration for internet usage data
Project Structure
Weather Service
➡️weather/weather_mcp_server.py: Defines the FastMCP server with a weather tool
➡️weather/weather_tool.py: Contains utility functions for fetching weather data
➡️weather/__init__.py: Entry point that runs the MCP server
Internet Usage Service
➡️internet_usage/internet_mcp_server.py: Defines the FastMCP server for internet usage data
➡️internet_usage/internet_usage_resource.py: Contains resource definitions and MongoDB connection
➡️internet_usage/__init__.py: Entry point for the internet usage service
📃Resources
The internet usage service provides the following resources:
1️⃣list://resources: Lists all available resources
2️⃣internet-usage://{country}: Retrieves internet usage data for a specific country
Create .env file
# Weather service
TAVILY_API_KEY=your_tavily_api_key_here
# Internet usage service
MONGODB_URI=your_mongodb_connection_string
MONGO_DB_NAME=your_database_name
MONGO_DB_COLLECTION=your_collection_name
Usage
Weather Service
1. Create the MCP server configuration
2. From a MCP Client (Claude Desktop), search for Current weather in <city_name>
Internet Usage Service
1. Create the MCP server configuration
mcp dev .<entry-point internet-usage>
Установка Model Context Protocol
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/arkapatra31/model-context-protocolFAQ
Model Context Protocol MCP бесплатный?
Да, Model Context Protocol MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Model Context Protocol?
Нет, Model Context Protocol работает без API-ключей и переменных окружения.
Model Context Protocol — hosted или self-hosted?
Доступен hosted-вариант: Unyly запускает сервер в облаке, локальная установка не обязательна.
Как установить Model Context Protocol в Claude Desktop, Claude Code или Cursor?
Открой Model Context Protocol на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
GitHub
PRs, issues, code search, CI status
автор: GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
автор: mcpdotdirectCompare Model Context Protocol with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development
