Overview
MCP Weather Server is a lightweight Model Context Protocol (MCP) server designed for handling weather data, featuring a Command-Line Interface (CLI) client for user interaction.
To use the MCP Weather Server, clone the repository, start the server, and then run the CLI client to interact with the server.
- Modular MCP server for weather data handling - Command-line tool for client-server interaction - Asynchronous communication using asyncio - Extensible to support additional commands or data formats
- Retrieving real-time weather data
- Interacting with weather data through a command-line interface
- Extending the server to include more weather-related commands
Add to your AI client
Use these steps to connect MCP Weather Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"weather-hritik003": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-weather-hritik003"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"weather-hritik003": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-weather-hritik003"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"weather-hritik003": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-weather-hritik003"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"weather-hritik003": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-weather-hritik003"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"weather-hritik003": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-weather-hritik003"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"weather-hritik003": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-weather-hritik003"
]
}
}
}FAQ
What programming language is used for MCP Weather Server?
The server is built using Python 3.12 or higher.
How do I install MCP Weather Server?
Clone the repository and follow the installation instructions in the README.
Can I extend the server?
Yes! The server is designed to be easily extensible for additional commands or data formats.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":915,"uuid":"07253ac7-dcb7-46eb-adca-b5a65277c7e1","name":"weather","title":"MCP Weather Server","description":"A simple MCP server for weather","avatar_url":"https://avatars.githubusercontent.com/u/73677045?v=4","created_at":"2025-01-28T02:18:14.696Z","updated_at":"2025-02-23T07:18:51.983Z","status":"created","author_name":"Hritik003","author_avatar_url":"https://avatars.githubusercontent.com/u/73677045?v=4","tags":"python,mcp,weather","category":"research-and-data","is_featured":false,"sort":1,"url":"https://github.com/Hritik003/weather","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":null,"user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]