About Weather Service Application
Weather Service Application is a Python weather service that retrieves current conditions from the National Weather Service API using latitude and longitude coordinates. It includes a client and server that run separately.
Key features
- 01Current weather lookup
- 02National Weather Service API data
- 03Latitude and longitude input
Use cases
- 01Check current conditions for a set of coordinates
- 02Run the sample client and server locally
MCP support
The project includes an MCP server and a client that connects to it to request weather information.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEWeather Service Application
A simple weather service that retrieves current weather information using the National Weather Service API.
Prerequisites
- Python 3.10+
- uv package manager
- Virtual environment (automatically created in setup)
Setup and Installation
-
Clone the repository:
git clone https://github.com/DaliGabriel/Custom-cliente-mcp.git cd mcp-client -
Set up the virtual environment and install dependencies:
uv venv
Running the Application
The application consists of two main components that need to run in separate terminals.
Terminal 1: Start the Server
-
Navigate to the project directory and activate the virtual environment:
cd .\mcp-client\ .\.venv\Scripts\activate -
Start the server:
uv run .\server.pyKeep this terminal window open and running.
Terminal 2: Run the Client
-
Open a new terminal window
-
Navigate to the project directory and activate the virtual environment:
cd .\mcp-client\ .\.venv\Scripts\activate -
Run the client with the server file:
uv run .\client.py .\server.py
Example Usage
Once both server and client are running, you can ask for weather information by providing latitude and longitude coordinates. For example:
What's the weather at this location? (latitude: 40.7128, longitude: -74.0060)
This will return the current weather conditions for New York City.
API Reference
This application uses the National Weather Service API for weather data.
Comments
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.