MCP Weather Server
About
A lightweight Model Context Protocol (MCP) server designed for handling weather data, with a Command-Line Interface (CLI) client for interaction. This project demonstrates how to create and interact with an MCP server, focusing on weather-related information.
Details
- Author
- Hritik003
- Downloads
- 358
- Categories
- Media
Jump to
- Modular MCP server for weather data handling
- CLI client for server interaction
- Asynchronous communication using asyncio
- Easy extensibility for additional commands or data formats
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:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
MCP Weather ServerCommand (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
Clone the repository, then start the server with uv --directory <path/to/weather> run weather in the Server directory, and start the client with uv run client.py <path/to/server.py> in the mcp-Client directory. Requires Python 3.12 or higher and asyncio; additional packages are listed in requirements.txt.
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"mcp weather server": {
"weather": {
"command": "uv",
"args": [
"--directory",
"<path/to/weather>",
"run",
"weather"
]
}
}
}
}
McpServers
{
"weather": {
"command": "uv",
"args": [
"--directory",
"<path/to/weather>",
"run",
"weather"
]
}
}
MCP Weather Server
A lightweight Model Context Protocol (MCP) server designed for handling weather data, with a Command-Line Interface (CLI) client for interaction. This project demonstrates how to create and interact with an MCP server, focusing on weather-related information.
Features
- MCP Server: A modular server to handle weather data and client requests.
- CLI Client: A command-line tool to connect and interact with the server.
- Asynchronous Communication: Leverages asyncio for efficient client-server interaction.
- Extensibility: Easily extend the server to support additional commands or data formats.
Requirements
- Python 3.12 or higher
- asyncio
- Any additional Python packages can be found in requirements.txt.
Installation
1. Clone the repository:
git clone https://github.com/Hritik003/mcp-weather-server.git
2. Start the server
cd Server
uv --directory <path/to/weather> run weather
3. Start the Client
cd mcp-Client
uv run client.py <path/to/server.py>
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.
