Anthra developer platform
Build with Anthra
Anthra exposes two programmatic surfaces on top of the same studio that powers /dashboard:
- REST API at
/api/v1/*— JSON in, JSON out (plus streamedtext/plainfor chapter generation). - MCP server at
/api/mcp— connect Claude, Cursor, or any Model Context Protocol client with a personal access token and Anthra appears as a set of callable tools.
Both surfaces use the same authentication, the same scopes, and the same underlying database — you can mix them freely.
Start here
- Quickstart — mint a key, create a book, write its first chapter end-to-end with
curl. - Authentication & keys — tokens, scopes, expiry, revocation.
- Connect via MCP — Claude Desktop, Cursor, and Claude Code configs.
What you can do
| Capability | REST | MCP tool | Scope |
|---|---|---|---|
| List / read books | GET /v1/books | list_books, get_book | books:read |
| Create or edit a book | POST /v1/books, PATCH /v1/books/{id} | create_book, update_book | books:write |
| Generate outline | POST /v1/books/{id}/outline | generate_outline | generation:run |
| Write / rewrite a chapter | POST …/chapters/{cid}/write (stream) | write_chapter, rewrite_chapter | generation:run |
| Narrate with ElevenLabs | POST …/chapters/{cid}/narrate | narrate_chapter | generation:run |
| Publish / unpublish | POST /v1/books/{id}/publish | publish_book, unpublish_book | publish:write |
| Reader analytics | GET /v1/books/{id}/analytics | get_reader_analytics | analytics:read |
| Account + token usage | GET /v1/account, GET /v1/usage | get_usage | account:read |
Versioning
The REST surface is namespaced by version (/api/v1). Anthra will introduce a new namespace before making any breaking change; v1 is stable and additive-only.