douban-mcp
面向 agent 的豆瓣 MCP server + CLI:电影/图书查询、个人收藏管理;同时支持 Claude Desktop (stdio/SSE) 与 Claude Code/OpenClaw 等命令行 agent。
Install / Use
claude mcp add jackjin1997 -- npx -y github:jackjin1997/douban-mcpIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
Development & EngineeringSupported Platforms
Tags
Our assessment of douban-mcp
douban-mcp scores 77/100 on our quality scale, 2406th of 3,551 Development & Engineering skills we index.
Its MCP Server is 3.8 KB long, well organised into 17 sections with 6 code examples: a solid amount of guidance for an agent.
It has 10 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated about 2 months ago, so douban-mcp is actively maintained.
- Our last check on 2026-09-25 found the source still online.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 97/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.
AI review by kimi-k2.7-code on 2026-09-24. Automated pattern scan on 2026-09-24. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
douban-mcp compared with similar skills
All 4 of these similar skills score higher than douban-mcp; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| douban-mcp (this skill)by jackjin1997 | 77 | 10 | 2mo ago | MCP Server |
| Agent-Reachby Panniantong | 100 | 86.2k | 14d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 74.1k | today | CLAUDE.md |
| rufloby ruvnet | 100 | 73.5k | today | CLAUDE.md |
| CowAgentby zhayujie | 100 | 47.2k | today | CLAUDE.md |
Frequently asked questions
- How do I install douban-mcp?
- Run
claude mcp add jackjin1997 -- npx -y github:jackjin1997/douban-mcp. The install tabs above show the steps for each supported agent. - Which AI agents does douban-mcp work with?
- It is written for Claude Code and Claude Desktop, as a MCP Server file. Other agents that read the same format can often use it too.
- Is douban-mcp safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It is MIT-licensed and scores 97/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is douban-mcp still maintained?
- The repository was last updated about 2 months ago, so douban-mcp is actively maintained.
Skill content
View source on GitHubdouban-mcp 🎬 📕
面向 agent 的豆瓣 MCP 服务 + CLI。同一个包既能做 Claude Desktop 的 MCP server(stdio/SSE),又能给 Claude Code/OpenClaw 等 agent 直接当 CLI 用。
npm 包名为
douban-mcp-cli(裸名douban-mcp在 npm 已被他人占用);GitHub 仓库 / 产品名仍为douban-mcp。
✨ 特性
- ✅ 12 个只读工具(电影 / 图书 / 用户态 全覆盖)
- ✅ 4 个写工具(标记想看/在看/看过 + 打分 + 评论 + 标签),双模式 opt-in
- ✅ 双数据源(HTML 默认 / Frodo API 可选),随时切换
- ✅ MCP server (stdio + SSE) + agent native CLI(
--json模式) - ✅ Claude Code Skill 包随仓库交付
- ✅ 内置缓存 + 限速 + 风控退避
- ⏳ v1.1:覆盖率 90%+;user search、doulist items
- ⏳ v1.2:短评写操作
🚀 快速开始
Claude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"douban": {
"command": "npx",
"args": ["-y", "douban-mcp-cli", "serve"],
"env": { "DOUBAN_COOKIE": "你的cookie(可选)" }
}
}
}
CLI(任何 agent / 命令行)
npx -y douban-mcp-cli search-movie --q "盗梦空间" --count 3
npx -y douban-mcp-cli get-movie --id 3541415
npx -y douban-mcp-cli --json movie-chart --kind top250 --count 5 | jq
启用写操作:
export DOUBAN_COOKIE="bid=...; dbcl2=\"...\"; ck=...; ll=\"108288\""
export DOUBAN_ENABLE_WRITE=true
npx -y douban-mcp-cli mark-movie --id 3541415 --status collect --rating 5
⚠️ 写操作有触发风控/封号风险。建议先用小号验证;本项目对账号安全不承担责任。
⚠️ 关于详情页必须配 cookie
v1.0 实测:search- 和 movie-chart top250 等聚合页匿名可用*;但 get-movie / get-book / get-*-reviews 等详情页会被豆瓣风控重定向到 sec.douban.com,必须配置 DOUBAN_COOKIE 才能稳定访问。
匿名模式下详情页会得到一条清晰错误:
⚠️ 豆瓣对该页面触发了风控(详情页常见)。请配置 DOUBAN_COOKIE 后重试。
注:原先设计的
DOUBAN_DATA_SOURCE=frodo备用通道(豆瓣 App API)目前已被服务端加签名要求拦截(invalid_request_997 签名缺失),v1.0 不可用。详见docs/jack_todo.md。v1.x 计划做 cookie warm-up + 探索签名逆向。
🛠️ 工具清单
只读(默认全部可用)
| 工具 | 鉴权 | 说明 |
|---|---|---|
| search_movie | 无 | 关键词搜索电影 |
| get_movie | 无 | 电影详情 |
| get_movie_reviews | 无 | 短评列表 |
| get_movie_chart | 无 | 榜单 (top250 / weekly / new) |
| search_book | 无 | 关键词搜索图书 |
| get_book | 无 | 图书详情 |
| get_book_reviews | 无 | 短评列表 |
| get_book_chart | 无 | 榜单 (fiction / non_fiction / new) |
| get_user_collections | uid 缺省时需 cookie | 想看/在看/看过列表 |
| get_user_doulist | uid 缺省时需 cookie | 豆列 |
| get_user_profile | uid 缺省时需 cookie | 用户信息 |
鉴权 / 写
| 工具 | 鉴权 | 说明 |
|---|---|---|
| check_cookie | cookie | cookie 是否有效 |
| mark_movie / unmark_movie | cookie + DOUBAN_ENABLE_WRITE | 标记/取消标记电影 |
| mark_book / unmark_book | cookie + DOUBAN_ENABLE_WRITE | 标记/取消标记图书 |
📚 文档
⚙️ 环境变量
| 变量 | 默认 | 说明 |
|---|---|---|
| DOUBAN_COOKIE | — | 登录态 cookie |
| DOUBAN_ENABLE_WRITE | false | 启用写操作 |
| DOUBAN_DATA_SOURCE | html | html / frodo |
| DOUBAN_FRODO_APIKEY | 内置默认 | 覆盖 frodo apikey |
| DOUBAN_LOG_LEVEL | info | debug/info/warn/error |
| DOUBAN_DISABLE_CACHE | false | 关闭缓存(测试用) |
| DOUBAN_USER_AGENT | 内置 Chrome UA | 覆盖默认 UA |
🔧 SSE 模式
npx -y douban-mcp-cli serve --transport sse --port 3000
# 然后在 MCP 客户端连接 http://localhost:3000/sse
🧰 调试
# 用 mcp-inspector 一键调试
npx @modelcontextprotocol/inspector npx -y douban-mcp-cli serve
# 直接命令行调用任何工具(agent 也用这种方式)
npx -y douban-mcp-cli list-tools
npx -y douban-mcp-cli describe search-movie
npx -y douban-mcp-cli doctor
🛡️ 免责声明
本项目仅供学习和个人使用,禁止用于商业目的或大规模数据爬取。使用本项目造成的任何账号风险(限流、封禁等)由使用者自行承担。本项目无任何官方背景。
Related Skills
Agent-Reach
86.2kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
headroom
74.1kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
ruflo
73.5k🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
CowAgent
47.2kOpen-source personal AI assistant & Agent Harness. Plans tasks, runs tools and skills, self-evolves with memory and knowledge. Multi-agent, multi-model, multi-channel. Lightweight, extensible, one-line install.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
