Simple Weather MCP Server example from Quickstart
Simple Weather MCP Server Example
Overview
Weather MCP Server is a simple example of a Model Context Protocol (MCP) server designed to provide weather data through a quickstart guide.
To use Weather MCP Server, you need to clone the repository, install the necessary dependencies using npm, build the project, and configure it according to the provided instructions.
- Simple implementation of a weather data MCP server - Quickstart and easy setup guide - Customizable configuration options for different environments
- Providing weather data in applications using MCP framework
- Quick prototyping of weather services
- Learning and testing MCP protocols in development environments
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": {
"weather-mcp-server-hideya": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-weather-mcp-server-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": {
"weather-mcp-server-hideya": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-weather-mcp-server-hideya"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"weather-mcp-server-hideya": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-weather-mcp-server-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": {
"weather-mcp-server-hideya": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-weather-mcp-server-hideya"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"weather-mcp-server-hideya": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-weather-mcp-server-hideya"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"weather-mcp-server-hideya": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-weather-mcp-server-hideya"
]
}
}
}FAQ
What is a Model Context Protocol (MCP)?
MCP is a protocol designed for context-aware applications that require real-time data exchange.
Is there a detailed guide for setting up the Weather MCP Server?
Yes! The repository includes a quickstart guide to help you set up the server easily.
Can I modify the server for other data types?
Absolutely! The server can be adapted to serve different types of data by altering the command and args in the configuration.