iosifache

annas mcp

Built by iosifache 794 stars

What is annas mcp?

MCP server and CLI tool for searching and downloading documents from Anna's Archive

How to use annas mcp?

1. Install a compatible MCP client (like Claude Desktop). 2. Open your configuration settings. 3. Add annas mcp using the following command: npx @modelcontextprotocol/annas-mcp 4. Restart the client and verify the new tools are active.
🛡️ Scoped (Restricted)
npx @modelcontextprotocol/annas-mcp --scope restricted
🔓 Unrestricted Access
npx @modelcontextprotocol/annas-mcp

Key Features

Native MCP Protocol Support
Real-time Tool Activation & Execution
Verified High-performance Implementation
Secure Resource & Context Handling

Optimized Use Cases

Extending AI models with custom local capabilities
Automating system workflows via natural language
Connecting external data sources to LLM context windows

annas mcp FAQ

Q

Is annas mcp safe?

Yes, annas mcp follows the standardized Model Context Protocol security patterns and only executes tools with explicit user-granted permissions.

Q

Is annas mcp up to date?

annas mcp is currently active in the registry with 794 stars on GitHub, indicating its reliability and community support.

Q

Are there any limits for annas mcp?

Usage limits depend on the specific implementation of the MCP server and your system resources. Refer to the official documentation below for technical details.

Official Documentation

View on GitHub

Anna's Archive MCP Server (and CLI Tool)

An MCP server and CLI tool for searching and downloading documents from Anna's Archive

[!NOTE] Notwithstanding prevailing public sentiment regarding Anna's Archive, the platform serves as a comprehensive repository for automated retrieval of documents released under permissive licensing frameworks (including Creative Commons publications and public domain materials). This software does not endorse unauthorized acquisition of copyrighted content and should be regarded solely as a utility. Users are urged to respect the intellectual property rights of authors and acknowledge the considerable effort invested in document creation.

[!WARNING] Please refer to this section if any of the links lead to a non-functional Anna's Archive server.

Available Operations

OperationMCP ToolCLI CommandExample
Search for books by title, author, or topicbook_searchbook-searchbook-search "machine learning python"
Download a book by its MD5 hashbook_downloadbook-downloadbook-download abc123def456 "my-book.pdf"
Search for articles by DOI or keywordsarticle_searcharticle-searcharticle-search "10.1038/nature12345" or article-search "neural networks"
Download an article by its DOIarticle_downloadarticle-downloadarticle-download "10.1038/nature12345"

Requirements

If you plan to use only the CLI tool, you need:

If using the project as an MCP server, you also need an MCP client, such as Claude Desktop.

The environment should contain two variables:

  • ANNAS_SECRET_KEY: The Anna's Archive API key.
  • ANNAS_DOWNLOAD_PATH: The path where the documents should be downloaded.

Optionally, you can set:

  • ANNAS_BASE_URL: The base URL of the Anna's Archive mirror to use (defaults to annas-archive.li).

These variables can also be stored in an .env file in the folder containing the binary.

Setup

Download the appropriate binary from the GitHub Releases section.

If you plan to use the tool for its MCP server functionality, you need to integrate it into your MCP client. If you are using Claude Desktop, please consider the following example configuration:

"anna-mcp": {
    "command": "/Users/iosifache/Downloads/annas-mcp",
    "args": ["mcp"],
    "env": {
        "ANNAS_SECRET_KEY": "feedfacecafebeef",
        "ANNAS_DOWNLOAD_PATH": "/Users/iosifache/Downloads"
    }
}

Demo

As an MCP Server

<img src="screenshots/claude.png" width="600px"/>

As a CLI Tool

<img src="screenshots/cli.png" width="400px"/>

Anna's Archive Mirrors

Anna's Archive has multiple mirrors, which may be innactive at times due to various reasons. Below is a list of known mirrors and their status as of January 2025:

MirrorTypeStatus
annas-archive.liOfficialActive
annas-archive.pmOfficialActive
annas-archive.inOfficialActive
annas-archive.orgOfficialInnactive

Alternatively, use The Shadow Library Uptime Monitor to find statuses or alternative mirrors.

This project defaults to annas-archive.li. If that mirror is not working for you, please set the ANNAS_BASE_URL environment variable to one of the other mirrors.

Global Ranking

-
Trust ScoreMCPHub Index

Based on codebase health & activity.

Manual Config

{ "mcpServers": { "annas-mcp": { "command": "npx", "args": ["annas-mcp"] } } }