mcp-weather-server
An example Model Context Protocol server that provides weather data to LLMs.
Overview
The mcp-weather-server is an example Model Context Protocol server designed to provide weather data to Large Language Models (LLMs).
To use the mcp-weather-server, you can integrate it with your LLM application by sending requests to the server to retrieve weather data based on specified parameters.
- Provides real-time weather data to LLMs - Supports various weather data queries - Easy integration with existing LLM applications
- Enhancing conversational AI with real-time weather updates.
- Enabling weather-related queries in chatbots.
- Supporting data-driven decision-making in applications requiring weather information.
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": {
"mcp-weather-server-miesnerjacob": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-weather-server-miesnerjacob"
]
}
}
}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-weather-server-miesnerjacob": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-weather-server-miesnerjacob"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"mcp-weather-server-miesnerjacob": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-weather-server-miesnerjacob"
]
}
}
}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-weather-server-miesnerjacob": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-weather-server-miesnerjacob"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp-weather-server-miesnerjacob": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-weather-server-miesnerjacob"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mcp-weather-server-miesnerjacob": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-weather-server-miesnerjacob"
]
}
}
}FAQ
What kind of weather data can I get?
You can retrieve various types of weather data including temperature, humidity, wind speed, and forecasts.
Is there a limit to the number of requests?
The server is designed to handle multiple requests, but performance may vary based on server load.
Can I customize the data I receive?
Yes, you can specify parameters in your requests to customize the weather data you receive.