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

game520-search-mcp

v1.0.2

Published

Game search MCP server with Selenium automation

Readme

Game Search MCP

基于 Model Context Protocol 的游戏搜索工具,使用 Selenium WebDriver 自动化浏览器操作来抓取游戏信息。

功能特性

  • 搜索游戏 - 通过关键词搜索游戏列表
  • 获取详情 - 获取游戏介绍、图片和下载/购买链接

工具

| 工具 | 功能 | 参数 | |------|------|------| | search_games | 根据关键词搜索游戏,返回游戏列表 | query: string | | get_game_detail | 获取游戏详细信息,包括游戏介绍、图片和下载链接 | gameId: string, secretCode?: string |

安装

npm install

配置

| 变量 | 默认值 | 说明 | |------|--------|------| | GAME_BASE_URL | https://www.gamer520.com | 游戏主站地址 |

启动

npm start

首次运行自动下载 ChromeDriver 到 ~/.chromedriver

项目结构

src/
├── index.js      # MCP 服务器入口
├── config.js     # 配置(环境变量)
├── driver.js     # Selenium WebDriver 管理(自动检测 Chrome 版本)
└── tools/
    ├── search.js     # search_games 工具
    └── detail.js     # get_game_detail 工具(含下载链接)

架构

  • MCP 服务器入口: 使用 @modelcontextprotocol/sdk 构建,监听 STDIO 连接
  • Selenium 驱动管理: 自动检测 Chrome 版本并下载匹配的 ChromeDriver
  • 工具模块:
    • search_games - 通过 /?s=关键词 搜索游戏
    • get_game_detail - 获取游戏详情和图片

自定义

修改 src/tools/ 下的文件时,需要更新对应的 CSS 选择器和 URL 模式以适配目标网站的页面结构。现有选择器(如 .game-item.game-title 等)为占位符,需要替换为实际选择器。