About My First MCP - Weather Server
My First MCP - Weather Server is a proof-of-concept server for learning how to build MCP servers. It provides weather information for cities and is explicitly not intended for production use.
Key features
- 01Provide weather information for cities
- 02Demonstrate basic MCP server functionality
- 03Run locally with pnpm
Use cases
- 01Learn the basics of MCP server development
- 02Try a city weather server with an MCP client
MCP support
Exposes city weather information over MCP for use with MCP-compatible clients.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEMy 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
- Clone the repository
- Install dependencies:
pnpm install
Running the Server
- Start the server with the inspector:
pnpm ins
- 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"
]
}
}
}
Comments
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.