Skip to main content
Glama

SansFiction MCP & Agent Skill

sansfiction-mcp MCP server

AI 에이전트를 SansFiction에 연결하세요 — 책, 컬렉션, 독서 일지, 발견을 위한 디지털 라이브러리입니다.

동일한 기능이 두 가지 방식으로 제공되며, 두 방식 모두 동일한 베어러 토큰으로 인증됩니다.

  • MCP 서버 (Streamable HTTP): https://sansfiction.com/api/mcp

  • REST API (v1): https://sansfiction.com/api/v1

빠른 시작 (MCP)

claude mcp add --transport http sansfiction https://sansfiction.com/api/mcp

또는 위의 streamable-HTTP 엔드포인트를 MCP 클라이언트에 지정하세요. 공개 카탈로그 도구는 인증이 필요 없지만, 개인 라이브러리 도구는 베어러 토큰이 필요합니다 (sansfiction.com/docs/agents에서 생성).

Related MCP server: library-mcp

빠른 시작 (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|isbn

  • GET /api/v1/catalog/books/{bookId}

  • GET /api/v1/catalog/series/{seriesId}

  • GET /api/v1/catalog/collections

개인 라이브러리 (베어러 토큰)

  • GET/POST /api/v1/library/books · PATCH/DELETE /api/v1/library/books/{bookId}

  • GET /api/v1/library/search

  • GET /api/v1/library/collections · GET /api/v1/library/collections/{id} · POST …/items

  • GET /api/v1/library/stats

검색

  • Agent Skill: SKILL.md — 또한 https://sansfiction.com/.well-known/agent-skills/sansfiction-catalog/SKILL.md에서 제공됩니다.

  • MCP Registry manifest: server.json

  • OpenAPI: https://sansfiction.com/openapi.json

  • MCP server card: https://sansfiction.com/.well-known/mcp/server-card.json

인증

로그인한 상태에서 sansfiction.com/docs/agents에서 개인 액세스 토큰(sf_mcp_…)을 생성하세요. 동일한 토큰이 MCP 서버와 REST API 모두를 인증합니다. 속도 제한: 익명 60회/분, 인증 180회/분.

라이선스

SansFiction 서비스는 독점 소프트웨어입니다. 이 저장소는 검색 및 통합을 위한 공개 에이전트 인터페이스를 문서화합니다.

로컬에서 MCP 서버로 실행 (stdio)

이 저장소에는 호스팅된 REST API에 프록시 역할을 하는 작은 stdio MCP 서버도 포함되어 있어, MCP 클라이언트가 로컬 명령을 기대하는 모든 곳에서 실행할 수 있습니다.

npx sansfiction-mcp
# or
npm install && node index.js

환경 변수:

  • SANSFICTION_TOKEN — 개인 라이브러리 도구용 베어러 토큰 (sf_mcp_…) (https://sansfiction.com/docs/agents에서 생성). 공개 카탈로그 도구는 필요 없음.

  • SANSFICTION_BASE_URL — API 기본 URL 재정의 (기본값 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는 네트워크나 자격 증명이 필요하지 않으므로 토큰 없이도 인트로스펙션 검사를 통과합니다.

Available Tools

11 tools
add_book_to_libraryA
Idempotent

Add a catalog book to the user's library. Idempotent upsert — calling again with a different status moves the book to that shelf rather than erroring. When to use: put a catalog book (book_id from search_books) onto a shelf for the first time. To edit an existing entry's status/rating/review/progress use update_library_book; to take a book off entirely use remove_book_from_library. Requires SANSFICTION_TOKEN (a bearer token from https://sansfiction.com/docs/agents).

Inputs: book_id (required), status, edition_id.

get_bookA
Read-only

Get full public metadata for a single book by catalog UUID or slug. Returns { book } (title, authors, description, editions, series, identifiers). Returns a 404 error if not found. When to use: you already have a book_id or slug and need details/editions. If you only have a title or author, call search_books first to obtain the id.

Inputs: book_id (required), edition_id.

get_reading_statsA
Read-only

Reading statistics for a time range, matching the app's Stats page. Choose the range in ONE of two ways: (a) scope + date — e.g. scope='monthly', date='2026-03-15' covers that whole month; or (b) an explicit from+to pair, which OVERRIDES scope/date when both are given. Returns { range:{start,end}, booksFinishedCount, totalPagesRead, dailyAverage, logsCount, logs? }. dailyAverage is computed only for monthly/yearly scopes (null for weekly and for explicit from/to ranges). When to use: aggregate metrics (pages read, books finished, averages) over a period. To list the underlying books use list_my_books; to record progress that feeds these numbers use update_library_book with current_page. Requires SANSFICTION_TOKEN (a bearer token from https://sansfiction.com/docs/agents).

Inputs: to, date, from, scope, +1 more.

get_seriesA
Read-only

Get a book series and its ordered volumes by series UUID. Returns { series } including the volume list with positions. Returns a 404 error if the series is unknown. When to use: to enumerate every volume in a series and their reading order. Obtain series_id from a book's series metadata via get_book or search_books — this tool does not accept a name.

Inputs: series_id (required).

list_my_booksA
Read-only

List books on the authenticated user's shelves, most-recently-updated first. Returns { count, books[] } where each entry has status, current_page, percent, rating, and book metadata. When to use: browse or enumerate the user's library, optionally filtered by shelf. To find a specific title within the library use search_my_library; for the public catalog use search_books. Requires SANSFICTION_TOKEN (a bearer token from https://sansfiction.com/docs/agents).

Inputs: limit, status.

list_my_collectionsA
Read-only

List the user's own collections. Returns { count, collections[] } (id, name, description, visibility). When to use: the signed-in user's OWN collections. For editorially curated public collections available to everyone, use list_public_collections instead. Requires SANSFICTION_TOKEN (a bearer token from https://sansfiction.com/docs/agents).

Inputs: limit, query.

list_public_collectionsA
Read-only

List public, curated collections (no auth). Returns { count, collections[] } with id, name, and description. Page through results with limit + offset. When to use: browse editorially curated public collections available to everyone. For the signed-in user's OWN collections, use list_my_collections instead.

Inputs: limit, offset.

remove_book_from_libraryA
DestructiveIdempotent

Remove a book from the user's library entirely (all shelves). Idempotent — removing a book that is not present is a no-op. When to use: permanently take a book out of the library. If you only want to change its shelf (e.g. mark 'dnf' or 'read'), use update_library_book instead — do not remove and re-add. Requires SANSFICTION_TOKEN (a bearer token from https://sansfiction.com/docs/agents).

Inputs: book_id (required).

search_booksA
Read-only

Search the public SansFiction catalog (no auth). Returns JSON { query, searchType, count, books[] }; each book includes id (the catalog UUID used as book_id by every other tool), slug, title, and authors. When to use: your entry point for discovery — resolve a title/author/ISBN into a book_id. Use search_my_library instead to search only the signed-in user's own shelves; use get_book once you already have an id/slug and want full details.

Inputs: query (required), limit, searchType.

search_my_libraryA
Read-only

Full-text search restricted to the user's own library (matches book title and subtitle). Returns { count, books[] } with status and rating. When to use: find a specific book the user already owns. For catalog-wide discovery use search_books; to list everything on the shelves (optionally by status) use list_my_books. Requires SANSFICTION_TOKEN (a bearer token from https://sansfiction.com/docs/agents).

Inputs: query (required), limit, status.

update_library_bookA

Update one or more fields of a book already in the library. Supply any subset — only the fields you pass change. Special behavior: current_page records a reading-progress log entry (this is what feeds get_reading_stats), and setting rating or review publishes that entry publicly. Returns the updated row; errors with 404 if the book is not in the library (add it first). When to use: change fields or log progress for a book ALREADY on a shelf. Add it first with add_book_to_library; remove it with remove_book_from_library. Requires SANSFICTION_TOKEN (a bearer token from https://sansfiction.com/docs/agents).

Inputs: book_id (required), rating, review, status, +3 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.4/5.0

    Scored across 11 tools

    Disambiguation5/5

    Every tool has a clear, distinct purpose. Public vs. user-specific tools are explicitly differentiated (e.g., search_books vs. search_my_library, list_public_collections vs. list_my_collections). Tool descriptions include 'When to use' guidance that clarifies boundaries, leaving no ambiguity.

    Naming Consistency4/5

    All tool names follow a consistent verb_noun pattern (e.g., search_books, get_book, add_book_to_library, update_library_book). Minor inconsistency: list_public_collections vs. list_my_collections use 'public' and 'my' as differentiators, while other 'my' tools don't prefix with 'list' (e.g., search_my_library uses 'search'). Overall, the pattern is predictable and readable.

    Tool Count5/5

    With 11 tools, the set is well-scoped for a book/library management MCP server. It covers discovery (search_books, get_book, get_series, list_public_collections) and user library management (list_my_books, search_my_library, add/update/remove book, list_my_collections, get_reading_stats). Each tool serves a necessary function without redundancy.

    Completeness4/5

    The tool set covers the full lifecycle: discover books, get details, add to library, update status/progress, remove, and view stats. Minor gaps exist: there is no tool to create or manage collections beyond listing (e.g., add_book_to_collection or create_collection), and no user authentication or token management tool. However, core reading workflows are well-supported.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      A lightweight, context-efficient CLI and optional stdio MCP server for semantic search, browsing, and writing to your Zotero library.
      BSD 3-Clause
    • F
      license
      Not graded
      quality
      D
      maintenance
      Provides a 'library keeper' sub-agent that ingests PDF/EPUB books and answers questions grounded in them via local embedding search, with deterministic classification and knowledge gap logging.
      -
    • F
      license
      A
      quality
      C
      maintenance
      Enables bibliographic research on a private local Calibre library by providing read-only metadata search, book inspection, and optional RAG-based content retrieval through MCP.
      5
      -