Weather MCP Server
Weather MCP Server
This project is a Model Context Protocol (MCP) server that provides weather information.
Features
Get current weather forecast for a specific latitude and longitude.
Get active weather alerts for a US state.
Setup
Install dependencies:
pnpm installBuild the server:
pnpm run build
Running the Server
This server is designed to be run by an MCP client, such as Claude for Desktop.
To configure Claude for Desktop (or a similar MCP client) to use this server, you'll need to point it to the built server. The typical configuration would involve specifying:
Command:
nodeArguments:
["/ABSOLUTE/PATH/TO/YOUR/PROJECT/mcptest/build/index.js"]
Replace /ABSOLUTE/PATH/TO/YOUR/PROJECT/ with the actual absolute path to the mcptest directory on your system.
For example, if your project is in /Users/bohe/Desktop/mcptest, the argument would be ["/Users/bohe/Desktop/mcptest/build/index.js"].
Refer to your MCP client's documentation for specific instructions on how to add and configure an MCP server.
Development
Source code is in the
srcdirectory.The main server logic is in
src/index.ts.Build output is in the
builddirectory.
MCP Configuration
The .vscode/mcp.json file is provided for VS Code to recognize and potentially debug this MCP server.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/bobby169/mcp-server-weather'
If you have feedback or need assistance with the MCP directory API, please join our Discord server