mcp-weather
mcp demo for https://modelcontextprotocol.io/quickstart/server
Documentation
MCP Server Starter
A production-ready starter template for building Model Context Protocol (MCP) servers with TypeScript.
๐ Quick Start
1. Clone the repository
2. Install dependencies:
bun installโจ Key Features
- Bun for fast testing and development
- Biome for linting and formatting
- Automated version management with standard-version
- Clean, maintainable project structure
๐ Project Structure
mcp-starter/
โโโ src/
โ โโโ tools/ # MCP tools implementation
โ โโโ utils/ # Shared utilities
โ โโโ main.ts # Server entry point
โ โโโ types.ts # Shared type definitions
โโโ tests/ # Test files
โโโ biome.json # Linting configuration
โโโ tsconfig.json # TypeScript configuration
โโโ package.json # Project dependenciesโ๏ธ Configuration
Creating New Tools
The project includes a script to help create new MCP tools:
bun run scripts/create-tool.tsThis will:
1. Create a new tool directory under `src/tools/`
2. Generate the basic tool structure including:
3. Update the tools index file to export the new tool
Example:
bun run scripts/create-tool.ts weather๐ ๏ธ Development
- Run tests: `bun test`
- Format code: `bun run format`
- Lint code: `bun run lint`
- Build project: `bun run build`
To add your development MCP server to Claude Desktop:
1. Build the project:
bun run build2. Add to your Claude Desktop config:
// You only need the argument if you need to pass arguments to your server
{
"mcpServers": {
"your-server-name": {
"command": "node",
"args": ["/path/to/your/project/dist/main.js", "some_argument"]
}
}
}๐ Version Management
This project uses standard-version for automated version management. Run `bun run release` to create a new version.
Commit Message Format
- `feat`: New feature (bumps minor version)
- `fix`: Bug fix (bumps patch version)
- `BREAKING CHANGE`: Breaking change (bumps major version)
๐ฆ Publishing to npm
1. Ensure you're logged in to npm:
npm login2. Build the project:
bun run build3. Publish the package:
npm publishRemember to update the version number using `bun run release` before publishing new versions.
Installing via Smithery
To install Weather MCP Server Starter for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @GreatAuk/mcp-weather --client claudeInstalling from npm (after publishing)
Add to your Claude Desktop config:
// You only need the argument if you need to pass arguments to your server
{
"mcpServers": {
"your-server-name": {
"command": "npx",
"args": ["-y", "your-package-name", "some_argument"]
}
}
}Frequently asked questions
What is mcp-weather?
mcp-weather is mcp demo for https://modelcontextprotocol.io/quickstart/server
How do I install mcp-weather?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is mcp-weather open source?
Yes โ it is hosted on GitHub at https://github.com/GreatAuk/mcp-weather and has 4 stars.
Related MCP tools
๐ Cherry Studio is a desktop client that supports for multiple LLM providers. Built for the Model Context Protocol to enhance AI capabilities.
Enhanced ChatGPT Clone: Features Agents, MCP, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini...
FastGPT is a knowledge-based platform built on the LLMs, offers a comprehensive suite of out-of-the-box capabilities such as data processing, RAG retrieval, ...
Composio equips your AI agents & LLMs with 100+ high-quality integrations via function calling for the Model Context Protocol. Enhance AI assistants with powerf
๐ฆ Repomix is a powerful tool that packs your entire repository into a single, AI-friendly file. Perfect for when you need to feed your codebase to Large Lan...
AI Agents & MCPs & AI Workflow Automation โข (~400 MCP servers for AI agents) โข AI Automation / AI Agent with MCPs โข AI Workflows & AI Agents โข MCPs for AI Ag...
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP