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

qdleader-mcp

v2.0.1

Published

MCP Server for QDLeader Front-end Knowledge Base - Access comprehensive front-end documentation including Vue, React, TypeScript, interview questions, and more

Downloads

6

Readme

QDLeader MCP Server

npm version License: MIT

一个基于 Model Context Protocol (MCP) 的前端知识库服务器,让 AI 助手能够访问 QDLeader 的完整前端知识库。

🌟 功能特点

  • 🔍 智能搜索: 在整个知识库中快速搜索相关文档
  • 📚 分类浏览: 按技术栈和主题浏览文档
  • 📖 文档阅读: 完整读取任何文档内容
  • 🎯 精准定位: 快速找到 Vue、React、TypeScript、面试题等内容
  • 🚀 零配置: 开箱即用,自动索引所有文档

📦 安装

在 Cursor 中使用(推荐)

  1. 打开 Cursor,点击左下角的 "设置" 图标
  2. 在设置页面中找到 "MCP Servers" 选项
  3. 点击 "Add new global MCP server"
  4. 选择 "手动配置"
  5. 粘贴以下配置:
{
  "mcpServers": {
    "qdleader": {
      "command": "npx",
      "args": ["-y", "qdleader-mcp"]
    }
  }
}

在 Claude Desktop 中使用

编辑 Claude 的配置文件:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

添加以下配置:

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

本地开发配置

如果你克隆了仓库并想本地开发:

{
  "mcpServers": {
    "qdleader": {
      "command": "node",
      "args": ["/path/to/qdleader/mcp-server/dist/index.js"]
    }
  }
}

🎯 可用工具

1. search_knowledge

在知识库中搜索文档。

参数:

  • query (必需): 搜索关键词
  • category (可选): 按分类过滤

示例:

搜索 Vue 相关的文档
搜索 React hooks 的内容
在前端面试分类中搜索 Promise

2. read_document

读取特定文档的完整内容。

参数:

  • path (必需): 文档的相对路径(从 search_knowledge 返回)

示例:

读取 vue/vue生命周期.md
读取 react/hooks/useState.md

3. list_categories

列出所有可用的分类及其文档数量。

参数:

示例:

列出所有分类
显示所有技术栈分类

4. get_category_contents

获取特定分类下的所有文档列表。

参数:

  • category (必需): 分类名称

示例:

获取 vue 分类下的所有文档
列出前端面试分类的内容

💡 使用示例

与 AI 助手对话时,可以这样使用:

  1. 搜索知识点

    帮我搜索 Vue3 组合式 API 的相关文档
  2. 查看分类

    列出所有可用的技术分类
  3. 读取文档

    读取 TypeScript 泛型的文档内容
  4. 准备面试

    在前端面试分类中搜索 JavaScript 相关的题目
  5. 学习新技术

    获取 React 分类下的所有文档,我想系统学习

📚 包含的知识领域

  • 框架: Vue2/3, React, Next.js, Taro, Uniapp
  • 语言: JavaScript, TypeScript, ES6+
  • 样式: CSS, CSS3, Less, SCSS
  • 工程化: Webpack, Vite, Rollup, 代码规范
  • 移动端: H5, 微信小程序, 跨平台开发
  • 后端: Node.js, Docker, Linux, Nginx, 数据库
  • 面试: HTML/CSS/JS/Vue/React/TS 面试题库
  • 算法: LeetCode, 常见算法
  • 实战: 项目问题、优化方案、实用技巧
  • AI: AI 工具、Prompt、本地部署

🛠️ 本地开发

# 克隆仓库
git clone https://github.com/qdleader/qdleader.git
cd qdleader/mcp-server

# 安装依赖
npm install

# 构建
npm run build

# 开发模式(监听文件变化)
npm run dev

# 运行
npm start

📝 技术架构

  • 运行时: Node.js 18+
  • 语言: TypeScript
  • 协议: Model Context Protocol (MCP)
  • 依赖:
    • @modelcontextprotocol/sdk - MCP SDK
    • glob - 文件搜索

🔧 工作原理

  1. 索引构建: 启动时自动扫描仓库中的所有 Markdown 文档
  2. 智能搜索: 支持文件名、标题、路径的模糊搜索
  3. 分类管理: 基于目录结构自动组织文档分类
  4. 安全访问: 确保只能访问仓库内的文档

🤝 贡献

欢迎提交 Issue 和 Pull Request!

📄 许可证

MIT License - 详见 LICENSE 文件

🔗 相关链接

⭐ Star History

如果这个 MCP 服务器对你有帮助,欢迎给主仓库一个 Star!


Made with ❤️ by QDLeader

探索前端知识,让 AI 成为你的最佳学习伙伴 🚀