About Weather MCP
Weather MCP is an MCP server published by Jaysarna in the Developer Tools category: connect with MCP client and Shows weather by city name.
The repository has 3 stars and 0 forks, with the last commit 8 months ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.
Install
git clone https://github.com/Jaysarna/weather_mcpThis server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.
Tools (1)
get_weatherGet the current weather for a city
Parameters not published.
Ask AI
Ask AI about Weather MCP
Powered by Claude · Grounded in docs
Security checks
Static checks derived from the repository 7 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository ships documentation.
- !License declaredNo license file. Legally you have no right to use it in a product.
- !Tests presentNo tests found. Behaviour changes may go unnoticed between versions.
- !Dependencies pinnedNo lockfile. Installs can pull different code over time.
- ✓No dynamic code executionSource scan found no eval, dynamic Function, or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
README
Weather MCP Server
A Model Context Protocol (MCP) server that provides weather information for various cities.
Overview
This is a TypeScript-based MCP server that implements weather-related tools and resources. It enables AI agents and tools compatible with the MCP protocol to access weather data in a standardized way.
Features
- get_weather tool: Retrieve current weather conditions for supported cities
- weather://cities resource: List of supported cities with available weather data
Supported Cities
- London (22° C, Sunny)
- Paris (25° C, Cloudy)
Prerequisites
- Node.js 18+
- npm or yarn
Installation
# Install dependencies
npm install
Development
Build
# Compile TypeScript to JavaScript
npx tsc
Run
# Execute the server
node server.js
Or use tsx for direct execution:
npx tsx server.ts
Project Structure
.
├── server.ts # Main server implementation with tools and resources
├── package.json # Project dependencies and metadata
├── package-lock.json # Locked dependency versions
├── .gitignore # Git ignore rules
└── .github/
└── copilot-instructions.md # AI agent development guidelines
Architecture
This project follows the MCP server architecture:
- Server Setup: Uses
McpServerfrom the official MCP SDK - Tool Registration: Weather tools defined with Zod input validation
- Resource Management: Static resources listing available weather data
- Type Safety: Full TypeScript with strict mode
API Reference
Tools
get_weather
Retrieves current weather for a specified city.
Input Schema:
{
city: string // City name (e.g., "London", "Paris")
}
Response:
{
"temp": "22° C",
"conditions": "Sunny"
}
Resources
weather://cities
Returns a list of supported cities for weather queries.
Configuration
All configuration is in package.json. The server uses:
@modelcontextprotocol/sdk- MCP protocol implementationzod- Runtime schema validationtypescript- Type safety and compilation
Development Guidelines
See .github/copilot-instructions.md for detailed instructions for AI agents and developers working on this project.
Contributing
When adding new tools:
- Define the input schema with Zod
- Register the handler with proper MCP ContentBlock structure
- Update this README with new features
License
ISC
README fetched from the repository 7 days ago. The original is authoritative.