Hardcover Mcp — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Hardcover Mcp (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Talk to your [Hardcover](https://hardcover.app) library from any AI assistant.
hardcover-mcp connects your Hardcover library to AI assistants like Claude and Copilot. Search for books, update your reading status, manage lists, explore series — all through natural conversation instead of clicking through menus.
"What's on my currently reading list?"
>
"Add Project Hail Mary to my library as currently reading"
>
"Search for books by Brandon Sanderson"
>
"Look up ISBN 9780547928227"
>
"Create a list called 'Summer Reading' and add The Hobbit to it"
>
"Show me the Stormlight Archive series in reading order"
>
"Move Project Hail Mary and The Martian to currently reading"
>
"What books has Andy Weir written? Add any I haven't read to my want-to-read list"
>
"Compare my rating of Dune with the Hardcover average"
HARDCOVER_READ_ONLY=true to hide every tool that can change youraccount (see Configuration)
Hardcover itself refuse writes (see API key and scopes)
API key and scopes for links that pre-select the right scopes.
uvx handles it.Add to .vscode/mcp.json:
{
"servers": {
"hardcover": {
"command": "uvx",
"args": ["hardcover-mcp"],
"env": {
"HARDCOVER_API_TOKEN": "<your token>",
"HARDCOVER_TOOLSETS": "all",
"HARDCOVER_READ_ONLY": "false"
}
}
}
}claude mcp add --scope user hardcover --env HARDCOVER_API_TOKEN=<your token> -- uvx hardcover-mcpReplace <your token> with your Hardcover API key. --scope user makes the server available in every project; leave it out to add it to the current project only (see the Claude Code MCP documentation for scopes). Other settings from Configuration are extra --env KEY=value flags after the server name, e.g. --env HARDCOVER_READ_ONLY=true.
To keep the token off the command line, put the variables in a file (start from .env.example) and let uvx read it:
claude mcp add --scope user hardcover -- uvx --env-file /path/to/hardcover.env hardcover-mcpAdd to claude_desktop_config.json:
{
"mcpServers": {
"hardcover": {
"command": "uvx",
"args": ["hardcover-mcp"],
"env": {
"HARDCOVER_API_TOKEN": "<your token>",
"HARDCOVER_TOOLSETS": "all",
"HARDCOVER_READ_ONLY": "false"
}
}
}
}HARDCOVER_TOOLSETS and HARDCOVER_READ_ONLY are optional and shown with their defaults; Configuration lists every setting, including HARDCOVER_API_URL.
To keep the token out of the client config, copy .env.example to a file outside any repository (for example ~/hardcover.env), put in your token, and point uvx at it. The server never reads a .env file by itself; it only gets the variables from the file you name:
"command": "uvx",
"args": ["--env-file", "/path/to/hardcover.env", "hardcover-mcp"]Hardcover API keys carry scopes that limit what the key can do. Create a key with only the scopes this server needs (the links open Hardcover's key form with them pre-selected):
<!-- scopes:start -->
HARDCOVER_READ_ONLY=true; Hardcover then refuses writes even if a tool tried one.| Toolset | Scopes needed |
|---|---|
core | read:catalog, read:library, read:me, read:social, read:users |
catalog | read:catalog, read:vibes |
library | read:catalog, read:goals, read:library, read:lists, read:me, write:goals, write:library, write:lists, write:reviews |
lists | read:lists, read:me, write:lists |
journal | read:journal, read:me, write:library |
social | read:me, read:prompts, read:social, read:users, write:prompts, write:social |
<!-- scopes:end -->
read:me is needed almost everywhere because tools look up who you are first. write:reviews is only needed to write or edit a review with set_user_book; without it, status, rating, and notes changes still work. If you only load some toolsets (see Configuration), the key only needs those rows plus core.
"Hardcover rejected the API token … expired" with a link to create a new one.
form with them pre-selected.
Optional environment variables, set in the same env block as your token:
| Variable | Default | Effect |
|---|---|---|
HARDCOVER_TOOLSETS | all | Comma-separated toolsets to load. Fewer tools means less context used and fewer wrong tool picks. |
HARDCOVER_READ_ONLY | false | true hides every tool that creates, changes, or deletes anything. |
HARDCOVER_API_URL | Hardcover's API | GraphQL endpoint to call instead, e.g. a proxy. Must be https://, since every request carries your token. |
| Toolset | What it covers |
|---|---|
core | Always loaded: search_books, get_user |
catalog | Books (with characters and editions), editions, authors, series, publishers, trending, vibes |
library | Your library, reading dates and progress, ownership, reviews, goals |
lists | Viewing and managing your lists |
journal | Reading journal notes and quotes |
social | Activity feed, following users, community prompts |
For example, a read-only assistant for browsing books and your own library:
"env": {
"HARDCOVER_API_TOKEN": "<your token>",
"HARDCOVER_TOOLSETS": "catalog,library",
"HARDCOVER_READ_ONLY": "true"
}An unknown toolset name stops the server at startup with a message listing the valid names.
Grouped by toolset (see Configuration). Tools marked ✏️ can change your account and are hidden in read-only mode.
A few rules hold for every tool:
null keepsits current value. Clearing a field (e.g. removing a rating) isn't supported yet.
rating is the community rating; user_rating is yours (or, in get_user, that user's).that finds nothing returns an empty list, or "No … found." when looking up one thing.
| What you can do | Tool |
|---|---|
| Search for books, authors, series, lists, users, and more (with sort/filter) | search_books |
| See your profile and reading stats, or look up another user; optionally with library, followers, and following | get_user |
| What you can do | Tool |
|---|---|
| Look up a book by ID or slug, including contributors and their roles (optionally with characters and editions), or a specific edition by ISBN, ASIN, or edition ID | get_book |
| Browse an author's catalogue | get_author |
| Explore a series in reading order | get_series |
| Look up a publisher and its editions | get_publisher |
| See what's trending now | get_trending_books |
| Browse curated recommendation collections (vibes) | get_vibes |
| What you can do | Tool |
|---|---|
| Browse your library: filter by status, date range, reviewed or owned books; sort by rating/date | get_user_library |
| Check your status, rating, review, reads, and list memberships for one book (excluding the internal Owned list) | get_user_book |
| Get your active reading goals and progress | get_reading_goal |
| ✏️ Add a book or update its status, rating, review, notes, privacy, edition, and ownership | set_user_book |
| ✏️ Log or edit reading dates and progress (pages, audiobook time) | set_user_book_read |
| ✏️ Create, update, or archive a reading goal (books/pages, date range) | set_reading_goal |
| ✏️ Delete a reading goal | delete_reading_goal |
| ✏️ Remove a reading entry or a whole book | delete_user_book_read / delete_user_book |
| What you can do | Tool |
|---|---|
| View your lists, or one list with its books | get_list |
| ✏️ Create or rename a list, or change its privacy | set_list |
✏️ Add or remove a book on one list (list_id) or up to 20 lists (list_ids) | set_list_book |
| ✏️ Delete a list | delete_list |
| What you can do | Tool |
|---|---|
| Read your journal entries (notes, quotes, status events) | get_reading_journal |
| ✏️ Add or edit a journal note/quote | set_journal_entry |
| ✏️ Delete a journal entry | delete_journal_entry |
| What you can do | Tool |
|---|---|
| See recent activity from people you follow (or one user) | get_activity_feed |
| ✏️ Follow or unfollow a user | set_following |
| Browse community book prompts | get_prompts |
| ✏️ Answer a prompt with a book, or withdraw the answer | set_prompt_answer |
git clone https://github.com/kristianedlund/hardcover-mcp.git
cd hardcover-mcp
uv syncLint and format checks (using Ruff):
uv run ruff check .
uv run ruff format --check .Run tests:
uv run pytest tests/ -vIntegration tests hit the live Hardcover API and require a valid token. They are skipped automatically in CI and when the token is absent.
To run them locally, copy .env.example to .env in the repository root and put in your token. The tests load .env (it's git-ignored); the server itself never does:
cp .env.example .envThen run:
uv run pytest tests/integration/ -vWrite tests follow a create → verify → delete lifecycle so the account is left unchanged.
Contributions are welcome! Please:
feature/short-description or fix/short-description). uv run ruff check .
uv run ruff format --check .
uv run pytest tests/ -vfeat:, fix:, chore:, docs:.The Hardcover API allows 60 requests per minute with a short burst allowance, and a daily limit (5,000 requests on the free plan). The server queues requests, follows the API's rate-limit headers, and retries when asked to wait. It waits at most a minute at a time; if Hardcover asks for longer, the call stops and says how long to wait. Once the daily limit is used up it stops immediately with a message saying so (it resets at midnight UTC). Your usage is shown at hardcover.app/account/api. Keys created after August 2026 get twice the burst allowance of older keys.
| Problem | Fix |
|---|---|
| "API token is not set" | Add your token to the config (see Quick Start above) |
| "Hardcover rejected the API token" | The key is invalid or expired; create a new one with the link in the error |
| "missing the scope(s) this tool needs" | Create a key that includes them; the error links to a pre-filled form |
| "daily API limit … is used up" | Wait until midnight UTC, or load fewer tools to make fewer calls |
| "rate limit asks to wait N seconds" | Hardcover is throttling this key; try again after that time |
| "Hardcover didn't answer within 30 seconds" | Try again; if you asked for a change, check whether it was saved first |
| "Access is denied" on Windows | Add "UV_LINK_MODE": "copy" to the env block in your config |
| Slow or repeated errors | The server retries automatically — wait a moment and try again |
| Unexpected results | Check for a newer version: the Hardcover API may have changed |
Unofficial project. Not affiliated with Hardcover.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.