Spines

io.github.SuperAgentic由 GitHub 账号 SuperAgentic 发布v1.1.0更新于 Oct 24, 2026

Access book collections, reading lists, and bookshelf recognition from AI assistants.

已验证STDIO仅桌面知识与记忆媒体与设计

概览

AI 生成的概览

把 AI 助手连接到 SPINES 书籍收藏,可搜索图书、浏览书架、管理阅读清单,并从书架照片识别书籍。

可以做什么
  • 按书名、作者或 ISBN 搜索图书并查看图书详情
  • 浏览收藏、分类与人物档案,查找常被摆在一起的书籍
  • 向阅读清单添加图书或从中移除图书
  • 从一张或多张书架照片识别书籍并保存为一个收藏
  • 查询每日识别额度余额
  • 以资源形式提供收藏、图书、人物档案与阅读清单,并提供书架分析、推荐与收藏对比提示词
适用场景
适合已在使用 SPINES 书库、希望助手帮忙查书、整理阅读清单,或把实体书架照片转成数字收藏并做分析与推荐的场景。
运行要求
通过 npm 包 @spines/mcp-server 在本地运行,需要 Node.js 18 或更高版本,并在 Claude Desktop、VS Code 或 Cursor 等 MCP 客户端中配置。需要 SPINES API 密钥,放在 SPINES_API_KEY 环境变量中。可选设置:SPINES_API_URL、SPINES_DEBUG,以及 SPINES_LLM_PROVIDER 与 SPINES_LLM_API_KEY。需要能访问 SPINES API 的网络。
安装前请注意
API 密钥是有效凭据,会保存在客户端配置中,请妥善保管。recognize_bookshelf 每张照片消耗一个额度,超时后重试可能再次消耗额度,重试前先查看收藏列表。它还会写入数据:创建收藏并修改阅读清单。通过链接或 base64 提交的照片会发送给 SPINES,重复照片会导致整个请求失败。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Spines,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

SPINES MCP Server

Access SPINES book collections, reading lists, and bookshelf data from AI assistants via the Model Context Protocol.

Features

  • Recognize books from photos of a bookshelf; several photos of one shelf become one collection
  • Search books by title, author, or ISBN
  • Browse and filter book collections
  • Manage reading lists (add and remove books)
  • Explore personas, categories, and books commonly shelved together
  • AI prompts for shelf analysis and book recommendations

Quick Start

Prerequisites

Installation

bash
npm install -g @spines/mcp-server

Configuration

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

json
{  "mcpServers": {    "spines": {      "command": "npx",      "args": ["-y", "@spines/mcp-server"],      "env": {        "SPINES_API_KEY": "gtspn_live_your_key_here"      }    }  }}
VS Code / Cursor

Add to your MCP settings:

json
{  "spines": {    "command": "npx",    "args": ["-y", "@spines/mcp-server"],    "env": {      "SPINES_API_KEY": "gtspn_live_your_key_here"    }  }}

Environment Variables

VariableRequiredDefaultDescription
SPINES_API_KEYYes-Your API key
SPINES_API_URLNohttps://getspines.com/api/v1API base URL
SPINES_DEBUGNofalseVerbose logging to stderr
SPINES_LLM_PROVIDERNo-Bring your own LLM key for recognize_bookshelf; only gemini is accepted. Set together with SPINES_LLM_API_KEY
SPINES_LLM_API_KEYNo-Your provider API key. With both set, recognition uses your key and no SPINES credits

Tools

Read Tools

ToolDescription
search_booksSearch for books by title, author, or ISBN
get_book_detailsGet full details for a specific book
get_collectionGet a book collection with all its books
list_collectionsList your collections with optional filters
list_categoriesList all approved book categories
get_personaGet details about a persona
get_book_pairingsFind books commonly shelved together with a book (Shelfology)
check_creditsCheck your daily recognition credit balance

Write Tools

ToolDescription
add_to_reading_listAdd a book to a reading list
remove_from_reading_listRemove a book from a reading list
recognize_bookshelfRecognize books from one or more bookshelf photos and save them as a collection (uses credits)

Tool Details

search_books
query: string    - Search query (title, author, or ISBN)limit?: number   - Max results (1-50, default 10)
get_book_details
book_id: string  - The book's unique ID
get_collection
collection_id: string  - The collection's unique ID
list_collections
limit?: number        - Max results (1-50, default 20)cursor?: string       - Pagination cursorpersona_id?: string   - Filter by personacategory_id?: string  - Filter by category
list_categories
(no arguments)
get_persona
persona_id: string  - The persona's unique ID
get_book_pairings
book_id: string  - The book to find pairings forlimit?: number   - Max results (1-50, default 10)
check_credits
(no arguments)
add_to_reading_list
book_id: string      - The book to addlist_name?: string   - List name (default: "want_to_read")
remove_from_reading_list
entry_id: string     - The reading list entry ID to remove
recognize_bookshelf
image_url?: string     - URL of a single photoimage_base64?: string  - Base64-encoded single photoimages?: array         - Several photos of one bookshelf, saved as ONE collection;                         each entry is { image_url } or { image_base64 }cover_index?: number   - Zero-based index into images of the cover photo (default 0)title?: string         - Title for the new collection

Send either image_url / image_base64 or images, not both. Example:

json
{  "images": [    { "image_url": "https://example.com/shelf-left.jpg" },    { "image_url": "https://example.com/shelf-right.jpg" }  ],  "cover_index": 1,  "title": "Living room"}
  • Photo limit: 4 per request with a regular key. A book that appears on two photos is kept once.
  • Credits: each photo uses one credit; the request needs at least one to start. With SPINES_LLM_PROVIDER / SPINES_LLM_API_KEY set, no credits are used.
  • Prefer URLs. Base64 photos over 4 MB in total do not fit in one request.
  • Duplicates: a photo already in SPINES fails the whole request (RECOGNIZE_IMAGE_DUPLICATE, with the index of that photo).
  • Timing: the tool waits while the server reads every photo, then polls until book matching finishes (up to 2 minutes). It returns the finished collection, or the job's current status (with its job_id) if matching is still running or its status could not be read. If the first step times out (5 minutes), the collection may still be created: check list_collections before trying again, since a retry uses credits again.

Resources

URIDescription
spines://collection/{id}A book collection with metadata
spines://book/{id}Full book details
spines://persona/{id}Persona profile and collections
spines://reading-listsUser's reading lists

Prompts

PromptDescription
analyze_shelfAnalyze a collection for themes and reading patterns
recommend_booksGet recommendations based on your library
compare_collectionsCompare two collections for similarities

Troubleshooting

ProblemSolution
"SPINES_API_KEY is required"Set the env var in your MCP client config
401 errorsCheck your API key is valid and not expired
403 errorsYour key may lack required scopes
429 errorsRate limited — wait and retry
TIMEOUT from recognize_bookshelfThe server may still be working; check list_collections before resending
Tools not appearingRestart your MCP client

Development

bash
git clone https://github.com/GetSpines/mcp-servercd mcp-servernpm installnpm run buildnpm test

License

MIT

来源:README.md,提交 64fb770

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

3
  1. v1.1.0最新Oct 14, 2026
  2. v1.0.3Oct 14, 2026
  3. v1.0.2Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分