npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

test-mcp

v1.0.13

Published

一个天气MCP服务,提供天气预报和天气警报功能

Downloads

90

Readme

天气 MCP 服务

这是一个基于 Model Context Protocol (MCP)的天气服务,提供天气预报功能。

功能

  • 获取天气预报: 根据经纬度获取详细的天气预报信息

安装

方法 1: 从 npm 安装(发布后)

npm install -g test-mcp

方法 2: 从 GitHub 安装

git clone https://github.com/zkluck/test-mcp.git
cd test-mcp
npm install
npm run build
npm link

方法 3: 使用 npx(无需安装)

无需安装,直接通过 npx 使用:

npx test-mcp

在 Windsurf 中配置使用

要在 Windsurf 中使用此 MCP 服务,您需要在 Windsurf 的 MCP 配置文件中添加以下配置:

  1. 打开 Windsurf 的 MCP 配置文件(通常位于~/.codeium/windsurf/mcp_config.json
  2. 根据您选择的安装方式,添加相应配置:

如果您从源代码安装(方法 1)

{
  "mcpServers": {
    "weather": {
      "command": "node",
      "args": ["路径/到/test-mcp/build/index.js"]
    }
  }
}

如果您想使用 npx 而不安装(方法 2)

{
  "mcpServers": {
    "weather": {
      "command": "npx",
      "args": ["-y", "test-mcp"]
    }
  }
}

可用工具

此 MCP 服务提供以下工具:

1. 获取全世界天气预报

get-world-weather

参数:

  • latitude: 纬度 (-90 到 90)
  • longitude: 经度 (-180 到 180)

开发

# 安装依赖
npm install

# 构建项目
npm run build

# 运行服务
npm dev

许可证

ISC