Weather
Provides real-time weather information for any location.
mcp-weather
A Model Context Protocol (MCP) server built with mcp-framework.
Quick Start
# Install dependencies
npm install
# Build the project
npm run build
Project Structure
mcp-weather/
├── src/
│ ├── tools/ # MCP Tools
│ │ └── ExampleTool.ts
│ └── index.ts # Server entry point
├── package.json
└── tsconfig.json
Adding Components
The project comes with an example tool in src/tools/ExampleTool.ts. You can add more tools using the CLI:
# Add a new tool
mcp add tool my-tool
# Example tools you might create:
mcp add tool data-processor
mcp add tool api-client
mcp add tool file-handler
Tool Development
Example tool structure:
import { MCPTool } from "mcp-framework";
import { z } from "zod";
interface MyToolInput {
message: string;
}
class MyTool extends MCPTool<MyToolInput> {
name = "my_tool";
description = "Describes what your tool does";
schema = {
message: {
type: z.string(),
description: "Description of this input parameter",
},
};
async execute(input: MyToolInput) {
// Your tool logic here
return `Processed: ${input.message}`;
}
}
export default MyTool;
Publishing to npm
-
Update your package.json:
- Ensure
nameis unique and follows npm naming conventions - Set appropriate
version - Add
description,author,license, etc. - Check
binpoints to the correct entry file
- Ensure
-
Build and test locally:
npm run build npm link mcp-weather # Test your CLI locally -
Login to npm (create account if necessary):
npm login -
Publish your package:
npm publish
After publishing, users can add it to their claude desktop client (read below) or run it with npx
## Using with Claude Desktop
### Local Development
Add this configuration to your Claude Desktop config file:
**MacOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
**Windows**: `%APPDATA%/Claude/claude_desktop_config.json`
```json
{
"mcpServers": {
"mcp-weather": {
"command": "node",
"args":["/absolute/path/to/mcp-weather/dist/index.js"]
}
}
}
After Publishing
Add this configuration to your Claude Desktop config file:
MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"mcp-weather": {
"command": "npx",
"args": ["mcp-weather"]
}
}
}
Building and Testing
- Make changes to your tools
- Run
npm run buildto compile - The server will automatically load your tools on startup
Learn More
Serveurs connexes
Market Intelligence MCP
Recession probability scoring, capital rotation analysis, investment calculators, and real-time economic data. 19 tools for financial market intelligence
Utilify
AI agents compare and sign up for Texas utility plans — electricity, internet, gas, water, trash — ▎ at any ZIP code via MCP. Works with Claude, ChatGPT, Cursor, Ollama, LM Studio, LangChain. OpenAPI ▎ spec included. No auth.
CTFd MCP Server
Connect to CTFd instance, download tasks and submit flags
Brokerage-MCP
An MCP server for brokerage functionalities, built with the MCP framework.
OpenHue MCP Server
Control Philips Hue lights using LLM interfaces via the OpenHue CLI.
sbb-mcp
Swiss Federal Railways (SBB/CFF/FFS) MCP server — real-time train schedules, ticket prices with Half-Fare/GA support, and direct purchase links via official SBB SMAPI
SiteHealth MCP
Full website health audit in one MCP tool call — SSL, DNS, DMARC/SPF/DKIM, performance, uptime, broken links.
Fun Translations
Give your AI agent access to 150+ translators covering fictional languages, pop culture dialects, historical languages, technical encodings, and internet slang.
WoWok
A server for the WoWok platform, designed for co-creation, transactions, and empowering potential.
Text-to-Speech (TTS)
A Text-to-Speech server supporting multiple backends like macOS say, ElevenLabs, Google Gemini, and OpenAI TTS.