my-first-mcp

my-first-mcp

0

My First MCP - Weather Server is a basic Model Context Protocol (MCP) server designed to provide weather information for any city. It is a proof-of-concept meant to demonstrate fundamental MCP server functionalities.

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
  1. 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"
      ]
    }
  }
}