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

@dhcckb/douban-citation-mcp

v0.4.0

Published

豆瓣图书 MCP Server:支持豆瓣图书检索与 GB/T 7714 / APA / MLA 参考文献自动生成

Readme

@dhcckb/douban-citation-mcp

豆瓣图书 MCP Server:支持豆瓣图书检索与 GB/T 7714 / APA / MLA 参考文献自动生成。

功能特性

  • 🔍 豆瓣图书检索:支持关键词搜索、ISBN 精确查询、豆瓣 ID 查询
  • 📝 参考文献自动生成:支持 GB/T 7714-2015、APA 7th、MLA 9th 三种学术引用格式
  • 🔄 ISBN 智能回查:搜索结果信息不全时,自动利用 ISBN 回查豆瓣补全缺失字段
  • 🏙️ 出版地推断:内置 150+ 出版社-城市映射表,自动补充 GB/T 7714 所需的出版地
  • 🔌 MCP 协议兼容:通过 stdio 传输协议,兼容 Claude Desktop、Claude Code 等 MCP 客户端

安装

LobeHub MCP Marketplace

在 LobeHub 中搜索 @dhcckb/douban-citation-mcp 一键安装。

手动安装

npx -y @dhcckb/douban-citation-mcp

Claude Desktop 配置

在 claude_desktop_config.json 中添加:

{
  "mcpServers": {
    "douban-citation": {
      "command": "npx",
      "args": ["-y", "@dhcckb/douban-citation-mcp"]
    }
  }
}

工具列表

| 工具名 | 描述 | |--------|------| | search_books | 搜索豆瓣图书(关键词或 ISBN) | | get_book_by_isbn | 通过 ISBN 获取图书详情 | | get_book_by_id | 通过豆瓣 ID 获取图书详情 | | generate_citation | 根据书籍信息生成参考文献字符串 | | search_and_cite | 一站式:搜索 → 补全 → 生成引用 |

引用风格

GB/T 7714-2015

余华. 活着[M]. 北京: 作家出版社, 2012.

APA 7th

余华. (2012). 活着. 作家出版社.

MLA 9th

余华. 活着. 作家出版社, 2012.

ISBN 回查机制

search_and_cite 工具会自动检测搜索结果的字段完整性:

  1. 定义必填字段:书名、作者、出版社、出版日期
  2. 若任一必填字段缺失但图书有 ISBN → 自动调用 ISBN 接口回查
  3. 将回查结果与原始结果合并,优先使用回查的完整数据
  4. 返回结果中标记 field_sources 标明各字段的数据来源

本地开发

git clone <repo-url>
cd douban-citation-mcp
npm install
npm run build
npm start

许可证

MIT