SuperAPIAI Directory

sansfiction-mcp

github.com · AI developer platforms

Search the SansFiction book catalog by title, author, series or ISBN and manage a personal reading library: status, progress, ratings, reviews and collections.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsAPI

About this tool

SansFiction MCP is an integration tool that connects AI agents with the SansFiction digital library. SansFiction is a digital library for books, collections, reading logs, and discovery. This tool exposes the same capabilities in two ways, and both use the same bearer token for authentication:

  • MCP server (Streamable HTTP):https://sansfiction.com/api/mcp
  • REST API(v1):https://sansfiction.com/api/v1

Main capabilities

Public catalog tools require no authentication; personal library tools require a bearer token.

Public catalog (no authentication required):

  • 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

Personal library (bearer token required):

  • 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

Usage

MCP quick start

Any MCP client can be pointed at the Streamable HTTP endpoint above. Public catalog tools require no authentication; personal library tools require a bearer token (which can be generated at sansfiction.com/docs/agents).

REST quick start

Use the REST API endpoints above; the public catalog requires no authentication, and the personal library requires a bearer token.

Run the MCP server locally (stdio)

This repository also includes a small stdio MCP server that proxies to the hosted REST API, so it can run in any MCP client that expects a local command.

Environment variables:

  • SANSFICTION_TOKEN — the bearer token used for personal library tools (sf_mcp_…), which can be generated at https://sansfiction.com/docs/agents . Public catalog tools do not require it.
  • SANSFICTION_BASE_URL — overrides the API base URL (default https://sansfiction.com)。

Available tools: 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.

Other resources

  • Agent Skill: SKILL.md — also available at 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

Authentication and limits

Generate a personal access token (sf_mcp_…) at sansfiction.com/docs/agents while logged in. The same token can authenticate both the MCP server and the REST API. Rate limits: anonymous 60 requests/minute, authenticated 180 requests/minute.

The SansFiction service is proprietary software. This repository documents its public agent interface for discovery and integration.

Glama build configuration

Build step: ["npm install"] CMD arguments: ["mcp-proxy","--","node","index.js"] tools/list does not require network or credentials, so it can be inspected via introspection without a token.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools