goodreads - mcp 是一款用于集成 Goodreads MCP 的命令行工具,它能帮助你便捷地从 Goodreads 获取书籍信息,还可与 Claude Desktop 集成使用。
若你尚未安装 uv,请先进行安装:
# 在 macOS 和 Linux 系统上
curl -LsSf https://astral.sh/uv/install.sh | sh
# 或者使用 pip 安装
pip install uv
git clone https://github.com/getgather - hub/mcp - getgather - goodreads.git
cd mcp - getgather - goodreads
# 从 Goodreads 获取书籍
uv run goodreads - mcp get - books --email your - email@example.com --password your - password
# 使用自定义主机(默认:127.0.0.1:8000)
uv run goodreads - mcp get - books --email your - email@example.com --password your - password --host myserver.com
若要在 Claude Desktop 中将 goodreads - mcp 作为 MCP 服务器使用,请按以下步骤操作:
git clone https://github.com/getgather - hub/mcp - getgather - goodreads.git
cd mcp - getgather - goodreads
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%/Claude/claude_desktop_config.json{
"mcpServers": {
"goodreads": {
"command": "uv",
"args": [
"--directory",
"/path/to/mcp - getgather - goodreads",
"run",
"goodreads - mcp"
],
"env": {
"GOODREADS_EMAIL": "your - email@example.com",
"GOODREADS_PASSWORD": "your - password",
"GETGATHER_URL": "127.0.0.1:8000"
}
}
}
}
注意:请将 /path/to/mcp - getgather - goodreads 替换为你实际克隆仓库的路径。
4. 重启 Claude Desktop
配置完成后,Claude 中将提供以下工具:
MCP 服务器需要以下环境变量:
| 属性 | 详情 |
|---|---|
GOODREADS_EMAIL |
你的 Goodreads 账户邮箱 |
GOODREADS_PASSWORD |
你的 Goodreads 账户密码 |
GETGATHER_URL |
(可选)服务的主机 URL(默认:127.0.0.1:8000) |