sansfiction-mcp
SansFiction MCP 与 Agent 技能
将 AI 智能体连接到 SansFiction —— 一个面向图书、合集、阅读日志和发现的数字图书馆。
相同的能力通过两种方式暴露,均使用相同的 bearer token 进行身份验证:
MCP 服务器(可流式 HTTP):
https://sansfiction.com/api/mcpREST API(v1):
https://sansfiction.com/api/v1
快速开始(MCP)
claude mcp add --transport http sansfiction https://sansfiction.com/api/mcp或者将任何 MCP 客户端指向上述可流式 HTTP 端点。公共目录工具无需身份验证;个人图书馆工具需要 bearer token(在 sansfiction.com/docs/agents 生成)。
Related MCP server: Calibre RAG MCP Server
快速开始(REST)
# Public catalog — no auth
curl "https://sansfiction.com/api/v1/catalog/search?q=dune&limit=5"
# Personal library — bearer token
curl -H "Authorization: Bearer $SF_TOKEN" \
"https://sansfiction.com/api/v1/library/books?status=reading"能力
公共目录(无需身份验证)
GET /api/v1/catalog/search?q=…&searchType=all|author|series|mood|isbnGET /api/v1/catalog/books/{bookId}GET /api/v1/catalog/series/{seriesId}GET /api/v1/catalog/collections
个人图书馆(bearer token)
GET/POST /api/v1/library/books·PATCH/DELETE /api/v1/library/books/{bookId}GET /api/v1/library/searchGET /api/v1/library/collections·GET /api/v1/library/collections/{id}·POST …/itemsGET /api/v1/library/stats
发现
Agent 技能:
SKILL.md—— 也可在https://sansfiction.com/.well-known/agent-skills/sansfiction-catalog/SKILL.md获取MCP 注册表清单:
server.jsonOpenAPI:
https://sansfiction.com/openapi.jsonMCP 服务器卡片:
https://sansfiction.com/.well-known/mcp/server-card.json
身份验证
在 sansfiction.com/docs/agents 登录后生成个人访问令牌(sf_mcp_…)。同一令牌可同时用于 MCP 服务器和 REST API 的身份验证。速率限制:匿名用户 60 次/分钟,已认证用户 180 次/分钟。
许可证
SansFiction 服务是专有的。本仓库记录其公共智能体接口,用于发现和集成。
本地作为 MCP 服务器运行(stdio)
本仓库还附带一个小的 stdio MCP 服务器,代理到托管的 REST API,因此您可以在任何 MCP 客户端期望本地命令的地方运行它:
npx sansfiction-mcp
# or
npm install && node index.js环境变量:
SANSFICTION_TOKEN—— 个人图书馆工具的 bearer token(sf_mcp_…)(在 https://sansfiction.com/docs/agents 生成)。公共目录工具无需此变量。SANSFICTION_BASE_URL—— 覆盖 API 基础地址(默认为https://sansfiction.com)。
工具:search_books、get_book、get_series、list_public_collections、list_my_books、add_book_to_library、update_library_book、remove_book_from_library、search_my_library、list_my_collections、get_reading_stats。
Glama 构建配置
构建步骤:
["npm install"]CMD 参数:
["mcp-proxy","--","node","index.js"]
tools/list 不需要网络或凭据,因此内省检查无需令牌即可通过。
Maintenance
Related MCP Servers
- Alicense-qualityCmaintenanceEnables read-only access to local Calibre libraries for searching metadata, inspecting book formats, and extracting content samples. Supports full-text search, batch operations, and detailed book analysis through natural language queries.3MIT
- FlicenseBqualityDmaintenanceEnables semantic search and contextual conversations with your Calibre ebook library using vector-based RAG technology. Supports project-based organization, multi-format book processing, and OCR capabilities for enhanced content extraction and retrieval.72
- Flicense-qualityDmaintenanceEnables semantic search and conversational querying across a personal research library of PDFs, DOCX, and other documents using a vector database. It provides tools for document summarization, finding related papers, and high-accuracy retrieval for AI clients like Claude Desktop.
- Alicense-qualityDmaintenanceEnables searching, reading, and managing a Calibre ebook library through natural language, with features like metadata search, full-text search, content extraction, and library management.241Apache 2.0
Related MCP Connectors
Federated search of books and papers, BibTeX/RIS citations, open-access retrieval and reading.
Search arXiv/Semantic Scholar/OpenAlex + medical evidence (PubMed/Europe PMC) + LaTeX/PDF tools.
Search and download academic papers from arXiv, PubMed, bioRxiv, medRxiv, Google Scholar, Semantic…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/fgbytes/sansfiction-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server