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

douban-mcp

v0.1.0

Published

[English](README.md) | [中文](README.zh-CN.md)

Downloads

18

Readme

豆瓣 MCP 服务器

English | 中文

这个 MCP 服务器提供了与豆瓣内容交互的功能,包括图书、电影和小组讨论等。

功能特性

  • 通过标题关键词或 ISBN 搜索图书
  • 查看图书评论
  • 通过标题搜索电影
  • 查看电影评论
  • 在默认浏览器中浏览图书详情
  • 列出小组话题,支持筛选选项
  • 查看小组话题详情

组件

工具

  • search-book

    • 从豆瓣搜索图书信息
    • 输入参数:
      • isbn (字符串, 可选): 图书的 ISBN 编号
      • q (字符串, 可选): 图书标题的搜索关键词
  • list-book-reviews

    • 获取豆瓣图书评论
    • 输入参数:
      • id (字符串): 豆瓣图书 ID
  • search-movie

    • 从豆瓣搜索电影信息
    • 输入参数:
      • q (字符串): 电影标题的搜索关键词
  • list-movie-reviews

    • 获取豆瓣电影评论
    • 输入参数:
      • id (字符串): 豆瓣电影 ID
  • browse

    • 在默认浏览器中打开图书详情页
    • 输入参数:
      • id (字符串): 豆瓣图书 ID
  • list-group-topics

    • 列出豆瓣小组话题
    • 输入参数:
      • id (字符串, 可选): 豆瓣小组 ID (默认为 '732764')
      • tags (字符串数组, 可选): 按标签筛选话题
      • from_date (字符串, 可选): 按日期筛选话题 (格式: "YYYY-MM-DD")
  • get-group-topic-detail

    • 获取特定话题的详情
    • 输入参数:
      • id (字符串): 豆瓣话题 ID

开始使用

  1. 克隆仓库
  2. 安装依赖: npm install
  3. 构建服务器: npm run build
  4. 启动服务器: npm start

与桌面应用集成

要将此服务器与桌面应用集成,请将以下内容添加到应用的服务器配置中:

{
  "mcpServers": {
    "douban-mcp": {
      "command": "node",
      "args": [
        "{文件的绝对路径}/dist/index.js"
      ],
      "env": {
        "COOKIE": "bid=;ck=;dbcl2=;frodotk_db=;" // 从网站获取 cookie 值
      }
    }
  }
}

开发

  • 构建: npm run build
  • 监视模式: npm run dev
  • 启动: npm start
  • 测试: npm test

依赖项

资源

许可证

本项目采用 MIT 许可证。