My First MCP - Weather Server

by kWAYTV

303 downloads
Not rated
GitHub

About

A proof-of-concept Model Context Protocol (MCP) server that provides weather information for any city. It is intended as a learning resource to demonstrate basic MCP server functionality.

Details

Author
kWAYTV
Downloads
303
Categories
Media

- Provides weather information for any city
- Simple demonstration of MCP server functionality
- Runs with pnpm and the MCP inspector
- Supports any MCP-compatible client

Clone the repository, install dependencies with pnpm install, then start the server with pnpm ins. It can be used with any MCP-compatible client and is configured locally via a JSON block specifying the command npx -y tsx pointing to the index.ts file.

My First MCP - Weather Server

A simple Model Context Protocol (MCP) server that provides weather information for any city.

Disclaimer

This is a proof-of-concept implementation meant to demonstrate basic MCP server functionality. It does not include data validation, error handling, rate limiting, or other production-ready features. Use it as a learning resource to understand how to build MCP servers.

Installation

1. Clone the repository
2. Install dependencies:

pnpm install

Running the Server

1. Start the server with the inspector:

pnpm ins

2. The server will be available through the MCP protocol. You can use it with any MCP-compatible client.

Configuration

The server is configured locally to run with:

{
  "mcpServers": {
    "weather": {
      "command": "npx",
      "args": [
        "-y",
        "tsx",
        "(path-to-the-file)\\index.ts"
      ]
    }
  }
}
No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.