SuperAPIAI Directory

annas-mcp

github.com · AI developer platforms

annas-mcp is an MCP server and command-line tool for AI clients such as Claude, Cursor, and Codex, used to search Anna's Archive by title, author, or DOI and download books, papers, textbooks, manuals, and standards. It logs in with a membership key and automatically renews the session, and also provides the annas-cli terminal command and a Go SDK, with optional integration of OpenAlex to extend paper discovery and full-text reading capabilities.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS · Linux · API

About this tool

annas-mcp is an MCP server and command-line tool for searching Anna's Archive and downloading books, papers, textbooks, manuals, and standards. It can be used in the terminal as annas-cli, and can also be connected to AI clients such as Claude, Cursor, and Codex as annas-mcp. The project states that it is not affiliated with Anna's Archive.

Purpose and Prerequisites Using archive access requires an Anna's Archive membership: Lucky Librarian or higher can search and download at the same time; the basic tier requires providing an archive file hash or book page URL. Searching requires Lucky Librarian or higher, and downloading is available to any paid tier. The project explains that, due to large-scale DDoS attacks, Anna's Archive introduced strict anti-scraping restrictions in 2026, with only paid members exempt. Users should only obtain materials they have the right to obtain and comply with applicable laws and terms.

Main Capabilities The server logs in with a membership key and automatically renews the session, with no need to copy Cookies from a browser. It retains the original four tools and adds research and catalog tools; searches are performed with the logged-in member identity, avoiding being rejected with 403 by the archive's browser checks. The server automatically selects an available official mirror, and downloaded content is verified against the archive's MD5 hash.

Optional OpenAlex Support OpenAlex is an optional enhancement for broader paper discovery, open PDF access, and theses (including papers without a DOI), and enables article_read, returning structured full-text excerpts for agents to read or summarize. After configuring OPENALEX_API_KEY, ordinary article searches use OpenAlex by default; DOI downloads attempt hosted PDFs, eligible open repositories, or publisher PDFs in turn, and finally use Anna's Archive when configured. It is also possible to use only OpenAlex while omitting ANNAS_SECRET_KEY, but archive operations still require membership.

Installation and Usage Requires Node.js 18 or higher and an Anna's Archive key. The key is obtained from the account page and is also the API key. The server can be added to the client configuration and ANNAS_SECRET_KEY set; native Windows (not WSL) requires adding -- c at the end of the commandmd /c npx -y annas-mcp. You can also download annas-mcp.mcpb and open it or drag it into Settings → Extensions, enter the key and select a download folder. Claude Desktop configuration is located at Settings → Developer → Edit Config, Cursor at ~/.cursor/mcp.json, Codex at ~/.codex/config.toml. On macOS and Linux, the binary can be installed with Homebrew; the client only starts the server; the same installation provides annas-cli. Docker image build and Gemini CLI extension methods are also provided. After installation, you can use natural language to ask the AI to find and download, for example find the EPUB of a book or download a paper by DOI; files are saved by default to annas-archive under the user's home directory.

Configuration and limitations The server and CLI also read the .env file in the working directory; already-set environment variables take precedence. The program only reads environment variables and does not load shell configuration files such as .zshrc. The download directory defaults to ~/annas-archive; ANNAS_DOWNLOAD_PATH can specify an absolute path (allowed to start with ~). On macOS, Desktop, Documents, Downloads, and iCloud Drive are protected; the first download will request permission, and if denied, the download fails. The server only uses ANNAS_BASE_URL and the official mirrors annas-archive.gl, .pk, .gd; the host set in ANNAS_BASE_URL will receive credentials, so only trusted hosts should be used. If login fails, the error will explain the responses from each mirror, and a browser session can be provided via ANNAS_ACCOUNT_COOKIE.

Go SDK Go applications can import github.com/SokolskyNikita/annas-mcp/anna to use the same search, metadata, account, and verified download operations; requires Go 1.26 or later; the installation command is go get github.com/SokolskyNikita/annas-mcp/anna@v0.8.0.

Privacy and data annas-mcp runs locally and has no telemetry. Anna's Archive receives queries and credentials on the configured archive host; DOI resolution may contact doi.org; the npm launcher and bundle will contact GitHub to obtain and verify release binaries. The cache stores release binaries, archive sessions, mirror health status, and metadata used for local file reuse verification. Downloaded files go to the configured output directory.

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