Back to Home
alexchilton icon

CAS_NLP_Module3_Calibre_Project

by alexchilton

Overview

Manages a Calibre ebook library and enriches metadata by exposing various tools and capabilities to AI models like Claude Desktop.

Installation

Run Command
python -m calibre_mcp.app

Environment Variables

  • CALIBRE_LIBRARY_PATH
  • PYTHONPATH
  • PATH

Security Notes

Extensive use of `subprocess.run` to interact with `calibredb` and `ebook-meta` CLI tools. Several tool parameters (e.g., `search_term`, `query`, `file_path`, `title`, `authors`, `isbn` in `calibre_tools/cli_wrapper.py`) are passed directly from user input without explicit sanitization, posing a risk of command injection, which could lead to arbitrary code execution or data manipulation if the underlying Calibre CLI tools are vulnerable to such input. The `calibre_sql` tool executes arbitrary SQL queries (though in read-only mode), which could lead to information disclosure of database schema or denial-of-service via resource-intensive queries. No obvious hardcoded secrets were found. Consider implementing `shlex.quote` for all user-provided arguments passed to subprocess calls.

Similar Servers

Stats

Interest Score30
Security Score3
Cost ClassHigh
Avg Tokens2000
Stars1
Forks0
Last Update2025-12-05

Tags

CalibreEbook ManagementSemantic SearchMetadata EnrichmentAI IntegrationClaude