Connect AI Agents

Give your AI superpowers. Connect Claude, ChatGPT, or Gemini to the SansFiction library.

Quick Info
MCP Endpoint
https://sansfiction.com/api/mcp
Auth

OAuth 2.1 via Supabase. Public search is anonymous; personal library access requires consent.

Capabilities
  • Search books, authors, and series with filters
  • Get detailed book metadata, editions, and collections
  • Manage your library, progress, and stats (Auth required)

Setup Instructions

C
Claude Code / Desktop

The easiest way to connect using the Claude CLI.

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

Then verify it works:

claude mcp list

Manual Token (Claude/Cursor)

Manual Token (Claude/Cursor)
Generate a personal token for MCP clients that do not support OAuth.
Active tokens
Loading tokens...
JSON Config
Paste your token into the Authorization header.
{ "mcpServers": { "sansfiction": { "type": "http", "url": "https://sansfiction.com/api/mcp", "headers": { "Authorization": "Bearer YOUR_TOKEN" } } } }

OAuth is recommended when available. Manual tokens are limited to your account.

Example Prompts

"Find books by Brandon Sanderson published in 2023."
"Get details for 'Project Hail Mary' including page count."
"Authorize SansFiction for my account."
"List my currently reading books."
"Log progress: 'Dune' is now at page 150."
"Move 'Dungeon Crawler Carl' to finished."
"Show me collections with 'Fantasy' in the name."
"Show my monthly reading stats."

Troubleshooting

401 Unauthorized

You tried to access a private tool without OAuth consent. Trigger the OAuth flow and approve access.

Tool List Empty

Verify you entered the correct URL without any trailing spaces or extra paths. It must end with /api/mcp.