Weather App
Example MCP server implementation for weather data with testing and pre-commit setup
Overview
The Weather App is a command-line and MCP-based application that provides current weather conditions, forecasts, and alerts for locations worldwide.
To use the Weather App, clone the repository, set up your environment with the OpenWeatherMap API key, and run the application using the provided scripts.
- Get current weather conditions for any location - Get daily and hourly weather forecasts - Receive weather alerts - Automatic location detection - Test API connection and check API key status
- Checking the weather before going out
- Planning outdoor activities based on weather forecasts
- Monitoring severe weather alerts in real-time
Add to your AI client
Use these steps to connect Weather App 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": {
"mcp-server-example-mindsightventures": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-example-mindsightventures"
]
}
}
}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": {
"mcp-server-example-mindsightventures": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-example-mindsightventures"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"mcp-server-example-mindsightventures": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-example-mindsightventures"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"mcp-server-example-mindsightventures": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-example-mindsightventures"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp-server-example-mindsightventures": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-example-mindsightventures"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mcp-server-example-mindsightventures": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-example-mindsightventures"
]
}
}
}FAQ
Can I use the Weather App for any location?
Yes! The app provides weather data for locations worldwide.
Do I need an API key to use the app?
Yes, you need to sign up for an API key from OpenWeatherMap.
Is the Weather App free to use?
Yes! The app is free to use, but you may need to check the API usage limits.