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

my-van-mcp-server

v1.0.3

Published

MCP服务器 - 提供天气查询、数值计算和用户信息查询功能

Readme

My Van MCP Server

一个自定义的 MCP (Model Context Protocol) 服务器,提供天气查询、数值计算和用户信息查询功能。

功能特性

工具列表

  1. getWeather - 查询城市天气

    • 参数:city (城市名称), date (可选,日期)
  2. addNumber - 计算两个数字的和

    • 参数:a (数字1), b (数字2)
  3. queryUserInfo - 查询用户信息

    • 参数:keyword (用户名或手机号), page (可选), pageSize (可选), orgId (可选), departmentId (可选), status (可选)
    • 注意:需要在 MCP 配置中设置 SECURITY_TOKEN 环境变量

安装与配置

1. 安装依赖

npm install

2. 配置 MCP 服务器

在你的 MCP 客户端配置文件中添加以下配置:

{
  "mcpServers": {
    "my-van-mcp-server": {
      "command": "node",
      "args": ["d:/souche/work-buddy/my-van-mcp-server/server.js"],
      "env": {
        "SECURITY_TOKEN": "your_security_token_here"
      }
    }
  }
}

重要说明:

  • SECURITY_TOKEN 是必需的环境变量,用于查询用户信息接口的认证
  • 请将 your_security_token_here 替换为实际的安全令牌
  • 路径需要根据你的实际项目位置进行调整

3. 运行服务器

npm start

或者直接运行:

node server.js

使用示例

查询用户信息

配置完成后,你可以使用 queryUserInfo 工具查询用户信息:

// AI 会调用:
queryUserInfo({
  keyword: "13806507240",  // 手机号或用户名
  page: 1,
  pageSize: 10
})

环境变量

| 变量名 | 必需 | 说明 | |--------|------|------| | SECURITY_TOKEN | 是 | 用于用户信息查询接口的安全令牌 |

技术栈

  • Node.js
  • @modelcontextprotocol/sdk
  • axios
  • zod

许可证

ISC

作者

van