Troubleshooting
This guide helps you resolve common issues with Weather MCP. If you don't find your issue here, please open an issue on GitHub.
Installation Issues
Weather MCP Not Found
Symptom: Claude says weather tools are unavailable or command not found
Solutions:
-
Verify Installation
# Check if weather-mcp is installed which weather-mcp # macOS/Linux where weather-mcp # Windows -
Reinstall if Missing
npm install -g @weather-mcp/server -
Check Configuration Path Ensure
claude_desktop_config.jsonhas the correct command:{ "mcpServers": { "weather": { "command": "weather-mcp" } } } -
Try Full Path Use absolute path if global installation doesn't work:
{ "command": "/usr/local/bin/weather-mcp" // macOS/Linux "command": "C:\\Users\\YourName\\AppData\\Roaming\\npm\\weather-mcp.cmd" // Windows }
After changing configuration, always restart Claude Desktop completely.
Permission Denied
Symptom: "EACCES" or "Permission denied" errors during installation
Solutions:
macOS/Linux:
# Don't use sudo! Instead, fix npm permissions:
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.bashrc
source ~/.bashrc
# Then reinstall
npm install -g @weather-mcp/server
Windows:
- Run Command Prompt or PowerShell as Administrator
- Or install without
-gflag in a local directory
Configuration File Not Found
Symptom: Can't find claude_desktop_config.json
Solutions:
Find the correct location for your OS:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
Windows:
%APPDATA%\Claude\claude_desktop_config.json
Linux:
~/.config/Claude/claude_desktop_config.json
If the file doesn't exist, create it:
{
"mcpServers": {
"weather": {
"command": "weather-mcp"
}
}
}
Weather Data Issues
Location Not Found
Symptom: "Could not find location: [query]"
Solutions:
-
Be More Specific
Bad: "Springfield" Good: "Springfield, Illinois" Better: "Springfield, IL, USA" -
Use Coordinates
"Weather at 42.3601,-71.0589" -
Check Spelling
Bad: "Parris" Good: "Paris" -
Try a Nearby City If a small town isn't found, use a nearby larger city
API Errors
Symptom: "API Error" or "Service Unavailable"
Solutions:
-
Check NOAA Token
- Verify token is correct in configuration
- Check token hasn't expired at NOAA Dashboard
- Try regenerating token
-
Verify Token Format
{ "env": { "NOAA_API_TOKEN": "your-token-here" // No quotes around the actual token } } -
Test Without Token Remove NOAA token temporarily - Weather MCP will use Open-Meteo:
{ "mcpServers": { "weather": { "command": "weather-mcp" // Removed env section } } } -
Wait and Retry Weather APIs may have temporary outages. Wait 5-10 minutes and try again.
Weather MCP automatically falls back to Open-Meteo if NOAA is unavailable.
Stale or Incorrect Data
Symptom: Weather data seems outdated or wrong
Solutions:
-
Check Cache Data is cached for 5-60 minutes depending on type. Wait for cache to expire, or restart Claude Desktop to clear cache.
-
Verify Location Make sure the correct location was found:
"What's the exact location you're using for Seattle?" -
Compare Sources Check if data matches the source:
- NOAA for US locations
- Open-Meteo for international
-
Check Observation Time Current conditions show when data was last observed (may be 10-30 minutes old)
Claude Desktop Issues
Changes Not Taking Effect
Symptom: Modified configuration but nothing changed
Solutions:
-
Completely Quit Claude Desktop
- Don't just close the window
- Quit from menu or system tray
- Wait 5 seconds
-
Restart Claude Desktop
- Launch the application fresh
-
Verify Configuration Check JSON syntax is valid:
# Test JSON validity cat ~/Library/Application\ Support/Claude/claude_desktop_config.json | python3 -m json.tool -
Check for Typos Common mistakes:
- Missing commas
- Extra commas after last item
- Mismatched quotes
- Incorrect property names
MCP Server Crash
Symptom: Weather tools stop working during a session
Solutions:
-
Check Logs
macOS/Linux:
tail -f ~/Library/Logs/Claude/mcp*.logWindows:
Get-Content "$env:LOCALAPPDATA\Claude\logs\mcp*.log" -Wait -
Look for Errors Common crash causes:
- Network connectivity issues
- Invalid API token
- Rate limiting
-
Restart Claude Desktop MCP servers restart when Claude Desktop restarts
Performance Issues
Slow Response Times
Symptom: Weather requests take a long time
Solutions:
-
Check Network Connection Weather MCP requires internet access
-
Monitor Response Times First request is always slower (not cached). Subsequent requests should be faster.
-
Adjust Cache Settings Increase cache TTL in configuration:
{ "env": { "CACHE_TTL": "3600" // 1 hour } } -
Check Provider Status
High Memory Usage
Symptom: Weather MCP using excessive memory
Solutions:
-
Clear Cache Restart Claude Desktop to clear in-memory cache
-
Reduce Cache Size Lower cache TTL:
{ "env": { "CACHE_TTL": "300" // 5 minutes } } -
Update to Latest Version
npm update -g @weather-mcp/server
Debugging
Enable Debug Logging
Get detailed logs for troubleshooting:
{
"env": {
"LOG_LEVEL": "debug"
}
}
Restart Claude Desktop and check logs.
Test Weather MCP Directly
Test outside of Claude Desktop:
# This requires manual MCP protocol interaction
# Usually not necessary for end users
Verify Network Connectivity
Test API endpoints:
# Test NOAA (requires token)
curl -H "User-Agent: WeatherMCP" "https://api.weather.gov/points/39.7456,-97.0892"
# Test Open-Meteo
curl "https://api.open-meteo.com/v1/forecast?latitude=39.7456&longitude=-97.0892¤t_weather=true"
Common Error Messages
"NOAA token required"
Cause: Trying to get US weather alerts without a NOAA token
Solution: Get a free NOAA token and add it to your configuration
"Rate limit exceeded"
Cause: Too many requests in a short time
Solution: Wait a few minutes. Weather MCP caching should prevent this in normal use.
"Invalid coordinates"
Cause: Latitude/longitude out of range
Solution: Ensure latitude is between -90 and 90, longitude between -180 and 180
"Weather alerts not available"
Cause: Either location is outside the US or no NOAA token configured
Solution: Weather alerts only work for US locations with a NOAA token
Getting Help
If you can't resolve your issue:
-
Check Logs Look for specific error messages in Claude Desktop logs
-
Search GitHub Issues Existing issues may have solutions
-
Open a New Issue Include:
- Weather MCP version (
weather-mcp --version) - Operating system
- Configuration (remove sensitive tokens)
- Error messages
- Steps to reproduce
- Weather MCP version (
-
Community Help Discuss in GitHub Discussions
Reporting Bugs
When reporting issues, please include your Weather MCP version and OS. Never share your API tokens publicly.
Prevention Tips
-
Keep Updated
npm update -g @weather-mcp/server -
Validate Configuration Use a JSON validator for configuration files
-
Monitor Logs Periodically check logs for warnings
-
Test After Updates After updating Claude Desktop or Weather MCP, test basic functionality
-
Backup Configuration Keep a copy of your working
claude_desktop_config.json
Still Need Help?
- Documentation: weather-mcp.dev/docs
- GitHub Issues: Report a bug
- Discussions: Ask the community