Search and download books and academic articles from Anna's Archive directly through your AI assistant.
annas-mcp provides an MCP server and CLI for searching and downloading documents from Anna's Archive. It supports book search by title/author/topic, article search by DOI or keyword, and direct downloads. Written in Go with pre-built binaries for all platforms. Requires an Anna's Archive API key obtained via donation.
Download papers and organize them into topic-based folders automatically
Search for papers on 'reinforcement learning from human feedback', download the top 5, and organize them into ~/papers/rlhf/.✓ Copied
Tools
What this MCP exposes
Tool
Inputs
When to call
Cost
book_search
query: str
Search for books by title, author, or topic
1 API call
book_download
md5: str
Download a book using its MD5 identifier from search results
1 API call
article_search
query: str
Find articles by DOI or keyword
1 API call
article_download
doi: str
Download an article by its DOI
1 API call
Cost & Limits
What this costs to run
API quota
Rate limits depend on your Anna's Archive API tier
Tokens per call
200–500 tokens per search, more for downloads
Monetary
Requires donation to Anna's Archive for API access
Tip
Use search first to identify exactly what you want before downloading to avoid unnecessary API calls.
Security
Permissions, secrets, blast radius
Credential storage: API key stored in ANNAS_SECRET_KEY environment variable
Data egress: Calls to Anna's Archive API (configurable mirror URL)
Ensure downloaded content complies with your local copyright laws. Anna's Archive hosts Creative Commons and public domain works alongside other materials.
Troubleshooting
Common errors and fixes
401 Unauthorized
Your ANNAS_SECRET_KEY is missing or invalid. Verify it's set correctly in your environment.
Verify: echo $ANNAS_SECRET_KEY
Connection refused / timeout
The default mirror may be down. Set ANNAS_BASE_URL to an alternative mirror.
Verify: curl https://annas-archive.li
No results found
Try broader search terms or different keywords. Book searches work best with exact titles or author names.
Alternatives
annas-mcp vs others
Alternative
When to use it instead
Tradeoff
fetch MCP
You just need to grab a specific URL or DOI link directly
No structured search — you need to know the exact URL