mcpField
M
MODEL CONTEXT PROTOCOL

MODEL CONTEXT PROTOCOL

Local
github.com/arkapatra31Maps & Travel0Updated 31w ago

About MODEL CONTEXT PROTOCOL

A FastMCP-based MCP server for querying current weather by city and internet usage by country. It is intended for MCP clients that need access to these two data sources.

Key features

  1. 01Query current weather by city
  2. 02Query internet usage by country
  3. 03Asynchronous API processing
  4. 04MongoDB storage for internet usage data

Use cases

  1. 01Check current weather in a city
  2. 02Look up internet usage data for a country

MCP support

The project implements an MCP server that exposes a weather tool and internet-usage resources to clients.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

MODEL CONTEXT PROTOCOL

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>

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.