Cover image
天气麦克风服务器
Public

天气麦克风服务器

Try Now
2025-03-20

3 years

Works with Finder

1

Github Watches

0

Github Forks

0

Github Stars

Weather MCP Server

This is a Weather MCP Server that provides weather data using the Model Context Protocol (MCP). It is built with TypeScript and runs on Node.js.

📌 Features

  • Fetches and processes weather data.
  • Uses Model Context Protocol (MCP) SDK.
  • Built with TypeScript for type safety.
  • Configurable via environment variables.

🛠 Installation

1️⃣ Clone the Repository

git clone https://github.com/your-username/weather-mcp-server.git
cd weather-mcp-server

2️⃣ Install Dependencies

npm install

3️⃣ Build the Project

npm run build

4️⃣ Run the Server

npm start

Alternatively, you can run the compiled JavaScript directly:

node build/index.js

🔧 Configuration

This project uses environment variables for configuration. You can create a .env file in the root directory:

API_KEY=your_weather_api_key
PORT=3000

📝 Scripts

Command Description
npm run build Compiles TypeScript into JavaScript
npm start Runs the compiled server
npm run lint Lints TypeScript files using ESLint

📁 Project Structure

weather-mcp-server/
│── src/
│   ├── index.ts       # Main entry point
│── build/             # Compiled JavaScript output
│── package.json       # Project dependencies and scripts
│── tsconfig.json      # TypeScript configuration
│── .eslintrc.js       # ESLint configuration

🐞 Troubleshooting

  • If npm run build doesn't produce output, check TypeScript logs:
    npx tsc --diagnostics
    
  • If Node.js cannot find index.js, ensure build/ contains compiled files:
    ls build/
    
  • If running on Windows, chmod will fail in package.json. Remove chmod 755 build/index.js from the build script.

📜 License

This project is licensed under the ISC License.


🔧 Developed by Moiz Ghuman

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Bora Yalcin
  • Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Callycode Limited
  • A geek-themed horoscope generator blending Bitcoin prices, tech jargon, and astrological whimsy.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Khalid kalib
  • Write professional emails

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • Beniyam Berhanu
  • Therapist adept at identifying core issues and offering practical advice with images.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • huahuayu
  • 统一的API网关,用于将多个Etherscan样区块链Explorer API与对AI助手的模型上下文协议(MCP)支持。

  • deemkeen
  • 用电源组合控制您的MBOT2:MQTT+MCP+LLM

  • jae-jae
  • MCP服务器使用剧作《无头浏览器》获取网页内容。

    Reviews

    3 (1)
    Avatar
    user_7Bz4M83W
    2025-04-15

    I've been using the Asterisk MCP Server by getAsterisk for months now, and it has significantly improved my workflow. The robust server capabilities, coupled with its seamless integration, make it an irreplaceable tool for managing multiple tasks. The user-friendly interface and the reliable performance are standout features. Highly recommend this for anyone seeking a powerful MCP solution!