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

@tengence/search-mcp

v0.1.5

Published

Tengence Search MCP server: initialize search apps, push data and search via official APIs (thin wrapper, lazy auto-registration). 通智搜索 MCP 服务器:初始化 + 推送 + 搜索(薄封装,启动自动注册)

Readme

@tengence/search-mcp

Tengence Search(通智搜索)MCP server:初始化搜索应用 → 推送数据 → 搜索。薄封装,进程启动零副作用(懒加载:首次调用工具时自动注册客户端身份,幂等、用户无感)。

安装(任意 MCP 客户端)

{
  "mcpServers": {
    "tengence-search": {
      "command": "npx",
      "args": ["-y", "@tengence/search-mcp"]
    }
  }
}

支持 npx 的客户端均可直接使用(Claude Desktop / Cursor / VS Code / 各类 AI 工作台)。远程 HTTP 模式(可选,Streamable HTTP):

TENGENCE_MCP_TRANSPORT=http TENGENCE_MCP_PORT=8787 TENGENCE_MCP_TOKEN=sk-xxx npx -y @tengence/search-mcp

工具

| 工具 | 作用 | |---|---| | search_init | 初始化(幂等):自动注册客户端 → 服务端创建「数据集 + 搜索应用」并绑定(免费套餐)→ 双 API Key 落盘本地(0600)。首次注册成功时返回激活链接与登录信息;未激活账号需先完成「设置密码 + 绑定手机」 | | data_push | 推送数据(单条/批量):每条必须含唯一 id(不存在→新增;存在→更新;仅含 id→删除)。首次推送后自动启动搜索应用 | | search | 搜索:分页 / 排序 / 过滤 / 高亮 / 聚合 / 字段限制(与官方 API 1:1) | | ping | 诊断:注册/初始化状态 + 配置概览(密钥掩码);probe=true 探测三下游 |

环境变量(可选)

| 变量 | 默认 | |---|---| | TENGENCE_SOLUTION_BASE_URL | https://console.tengence.com | | TENGENCE_SEARCH_API_KEY | 搜索 Key(不配也行,search_init 自动获取落盘) | | TENGENCE_DATASET_API_KEY | 数据集 Key(同上) | | TENGENCE_SITE_URL | 注册幂等匹配键,默认 https://tengence-mcp.local/<deviceId> | | TENGENCE_SEARCH_HOME | 本地状态目录,默认 ~/.tengence/search-mcp |

本地身份与凭据保存在 ~/.tengence/search-mcp/state.json(0600),跨会话复用,删除即视为新设备。

文档

License

MIT