Weather Service Application

by DaliGabriel

264 downloads
Not rated
GitHub

About

A real example of a custom cliente Tona mcp custom server

Details

Author
DaliGabriel
Downloads
264
Categories
Media, API

- Retrieves weather via the National Weather Service API
- Client-server architecture using the MCP protocol
- Setup with Python 3.10+ and uv package manager
- Simple command-line interface for queries
- Lightweight and no external API keys required

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Weather Service Application
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Set up a Python 3.10+ environment with the uv package manager, then run the server script (server.py) in one terminal and the client script (client.py .\server.py) in another. Once both are running, submit latitude and longitude coordinates to receive current weather conditions.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "weather service application": {
            "Custom-cliente-mcp": {
                "command": "uv",
                "args": [
                    "venv"
                ]
            }
        }
    }
}

McpServers

{
    "Custom-cliente-mcp": {
        "command": "uv",
        "args": [
            "venv"
        ]
    }
}

Weather 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

1. Clone the repository:

   git clone https://github.com/DaliGabriel/Custom-cliente-mcp.git
cd mcp-client

2. 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

1. Navigate to the project directory and activate the virtual environment:

   cd .\mcp-client\
.\.venv\Scripts\activate

2. Start the server:

   uv run .\server.py

Keep this terminal window open and running.

Terminal 2: Run the Client

1. Open a new terminal window
2. Navigate to the project directory and activate the virtual environment:

   cd .\mcp-client\
.\.venv\Scripts\activate

3. 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.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.