Weather MCP Server

Weather MCP Server

By moizghumann GitHub

-

weather mcp
Overview

What is Weather MCP Server?

Weather MCP Server is a server application that provides weather data using the Model Context Protocol (MCP). It is built with TypeScript and runs on Node.js.

How to use Weather MCP Server?

To use the Weather MCP Server, clone the repository, install the dependencies, build the project, and run the server. You can also configure it using environment variables.

Key features of Weather MCP Server?

  • Fetches and processes weather data.
  • Utilizes the Model Context Protocol (MCP) SDK.
  • Built with TypeScript for enhanced type safety.
  • Configurable via environment variables.

Use cases of Weather MCP Server?

  1. Providing real-time weather updates for applications.
  2. Integrating weather data into other services using MCP.
  3. Building weather-related applications that require reliable data.

FAQ from Weather MCP Server?

  • What programming language is used for Weather MCP Server?

The server is built using TypeScript.

  • How can I configure the server?

You can configure the server using environment variables in a .env file.

  • Is there a license for this project?

Yes, the project is licensed under the ISC License.

Content

Weather MCP Server

This is a Weather MCP Server that provides weather data using the Model Context Protocol (MCP). It is built with TypeScript and runs on Node.js.

📌 Features

  • Fetches and processes weather data.
  • Uses Model Context Protocol (MCP) SDK.
  • Built with TypeScript for type safety.
  • Configurable via environment variables.

🛠 Installation

1️⃣ Clone the Repository

git clone https://github.com/your-username/weather-mcp-server.git
cd weather-mcp-server

2️⃣ Install Dependencies

npm install

3️⃣ Build the Project

npm run build

4️⃣ Run the Server

npm start

Alternatively, you can run the compiled JavaScript directly:

node build/index.js

🔧 Configuration

This project uses environment variables for configuration. You can create a .env file in the root directory:

API_KEY=your_weather_api_key
PORT=3000

📝 Scripts

CommandDescription
npm run buildCompiles TypeScript into JavaScript
npm startRuns the compiled server
npm run lintLints TypeScript files using ESLint

📁 Project Structure

weather-mcp-server/
│── src/
│   ├── index.ts       # Main entry point
│── build/             # Compiled JavaScript output
│── package.json       # Project dependencies and scripts
│── tsconfig.json      # TypeScript configuration
│── .eslintrc.js       # ESLint configuration

🐞 Troubleshooting

  • If npm run build doesn't produce output, check TypeScript logs:
    npx tsc --diagnostics
    
  • If Node.js cannot find index.js, ensure build/ contains compiled files:
    ls build/
    
  • If running on Windows, chmod will fail in package.json. Remove chmod 755 build/index.js from the build script.

📜 License

This project is licensed under the ISC License.


🔧 Developed by Moiz Ghuman

No tools information available.
School MCP
School MCP by 54yyyu

A Model Context Protocol (MCP) server for academic tools, integrating with Canvas and Gradescope platforms.

canvas mcp
View Details
repo-template
repo-template by loonghao

A Model Context Protocol (MCP) server for Python package intelligence, providing structured queries for PyPI packages and GitHub repositories. Features include dependency analysis, version tracking, and package metadata retrieval for LLM interactions.

-

google-calendar mcp
View Details
strava-mcp
strava-mcp by jeremysilva1098

MCP server for strava

strava mcp
View Details

Model Context Protocol (MCP) server implementation for Rhinoceros/Grasshopper integration, enabling AI models to interact with parametric design tools

grasshopper mcp
View Details

MCP configuration to connect AI agent to a Linux machine.

security mcp
View Details

AI assistant built with Streamlit, NVIDIA NIM (LLaMa 3.3:70B) / Ollama, and Model Control Protocol (MCP).

python mcp
View Details