silky-x0/MCP-Server
If you are the rightful owner of MCP-Server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
A Node.js server implementation using the Model Context Protocol (MCP) SDK, providing weather-related tools via MCP.
get-alerts
Get weather alerts for a US state (e.g., CA, NY).
get-forecast
Get weather forecast for a location by latitude and longitude.
MCP-Server
A Node.js server implementation using the Model Context Protocol (MCP) SDK. This project provides weather-related tools via MCP, including weather alerts and forecasts for US locations using the National Weather Service (NWS) API.
Features
- Weather Alerts: Get real-time weather alerts for any US state.
- Weather Forecast: Retrieve detailed weather forecasts for any US location (latitude/longitude).
- Built with @modelcontextprotocol/sdk and zod.
Installation
- Clone the repository:
git clone https://github.com/silky-x0/MCP-Server.git cd MCP-Server
- Install dependencies:
npm install
- Build the project:
npm run build
Usage
Run the server (after building):
node build/index.js
The server will start and listen for MCP requests via stdio.
Using with Claude Desktop
You can use MCP-Server as a custom tool in Claude Desktop (Anthropic's desktop app) by following these steps:
- Build the project (if you haven't already):
npm run build
- Open Claude Desktop and go to the "Tools" section.
- Add a new custom tool:
- Set the tool type to MCP (Model Context Protocol).
- For the command, enter the path to your built server, for example:
- On Windows:
node C:\path\to\your\project\build\index.js
- On macOS/Linux:
node /path/to/your/project/build/index.js
- On Windows:
- Give your tool a name, e.g.,
Weather MCP Server
.
- Save and enable the tool. Now you can use the weather tools (
get-alerts
,get-forecast
) directly from Claude Desktop!
Available Tools
get-alerts
: Get weather alerts for a US state (e.g.,CA
,NY
).get-forecast
: Get weather forecast for a location by latitude and longitude.
Screenshots
Contributing
Pull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.