mcpField
W
Weather MCP Server

Weather MCP Server

Local
github.com/moizghumannMedia & Design0Updated 84w ago

About Weather MCP Server

Weather MCP Server is a TypeScript server that fetches and processes weather data. It is configured with environment variables and runs on Node.js.

Key features

  1. 01Fetch and process weather data
  2. 02Environment-variable configuration
  3. 03TypeScript implementation
  4. 04Node.js runtime

Use cases

  1. 01Provide weather data to an MCP client
  2. 02Configure the server with an API key and port

MCP support

It uses the MCP SDK to provide weather data to MCP clients.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

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

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.