Simple Weather MCP Server example from Quickstart
Simple Weather MCP Server Example
Overview
The mcp-server-weather-js is a Node.js server that implements the Model Context Protocol (MCP) to access weather information in the US. It serves as a simple example for developers looking to integrate weather data into their applications.
To use the mcp-server-weather-js, you can install it via npm and configure it in your application. You can also test it using the Claude Desktop by merging a specific JSON configuration into your claude_desktop_config.json file.
- Access to real-time weather information in the US. - Ability to get weather alerts for specific states. - Forecasting capabilities for specific locations using latitude and longitude.
- Integrating weather data into web applications.
- Providing users with real-time weather alerts based on their location.
- Developing applications that require weather forecasting functionalities.
Add to your AI client
Use these steps to connect Simple Weather MCP Server example from Quickstart 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-weather-js-hideya": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-weather-js-hideya"
]
}
}
}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-weather-js-hideya": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-weather-js-hideya"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"mcp-server-weather-js-hideya": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-weather-js-hideya"
]
}
}
}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-weather-js-hideya": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-weather-js-hideya"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp-server-weather-js-hideya": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-weather-js-hideya"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mcp-server-weather-js-hideya": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-weather-js-hideya"
]
}
}
}FAQ
What is the Model Context Protocol (MCP)?
MCP is a protocol designed to facilitate the exchange of contextual information between applications.
How can I install mcp-server-weather-js?
You can install it using npm with the command `npx @h1deya/mcp-server-weather`.
Is there any documentation available?
Yes, detailed documentation is available in the MCP Quickstart guide.