MCP Catalogs
首页

ebook-mcp

by onebirdrocks·366·综合分 49

一个用于处理 EPUB 和 PDF 文件的 Python MCP 服务器,支持自然语言查询。

file-systemai-llmproductivity
51
Forks
6
活跃 Issue
4 个月前
最近提交
2 天前
收录于

概述

Ebook-MCP 是一个强大的模型上下文协议服务器,旨在改变用户与数字图书的交互方式。它提供标准化 API,实现 LLM 应用与电子书处理功能的无缝集成。该服务器支持主流电子书格式,包括 EPUB 和 PDF,使用户能够通过自然语言查询执行图书馆管理、内容提取和交互式阅读等任务。

试试问 AI

装完之后,这里有 5 个你可以让 AI 做的事:

:使用自然语言查询进行智能图书馆管理,按主题查找书籍
:通过 AI 驱动的对话实现交互式阅读体验
:基于书籍材料创建测验和练习,支持主动学习
:这个服务器支持哪些电子书格式?
:如何将此 MCP 服务器与 AI 应用集成?

什么时候选它

当您需要通过自然语言与数字图书馆交互,并希望使用 AI 工具从 EPUB 和 PDF 文件中提取信息时,选择 Ebook-MCP。

什么时候不要选它

如果您需要支持 EPUB 和 PDF 以外的电子书格式,或者需要针对基于图像的 PDF 的高级 OCR 功能,请避免使用此服务器。

此 server 暴露的工具

从 README 抽取出 10 个工具
  • get_all_epub_filesget_all_epub_files(path: str) -> List[str]

    Get all EPUB files in the specified directory

  • get_metadataget_metadata(epub_path: str) -> Dict[str, Union[str, List[str]]]

    Get metadata from an EPUB file

  • get_tocget_toc(epub_path: str) -> List[Tuple[str, str]]

    Get table of contents from an EPUB file

  • get_chapter_markdownget_chapter_markdown(epub_path: str, chapter_id: str) -> str

    Get chapter content in Markdown format

  • get_all_pdf_filesget_all_pdf_files(path: str) -> List[str]

    Get all PDF files in the specified directory

  • get_pdf_metadataget_pdf_metadata(pdf_path: str) -> Dict[str, Union[str, List[str]]]

    Get metadata from a PDF file

  • get_pdf_tocget_pdf_toc(pdf_path: str) -> List[Tuple[str, int]]

    Get table of contents from a PDF file

  • get_pdf_page_textget_pdf_page_text(pdf_path: str, page_number: int) -> str

    Get plain text content from a specific page

  • get_pdf_page_markdownget_pdf_page_markdown(pdf_path: str, page_number: int) -> str

    Get Markdown formatted content from a specific page

  • get_pdf_chapter_contentget_pdf_chapter_content(pdf_path: str, chapter_title: str) -> Tuple[str, List[int]]

    Get chapter content and corresponding page numbers by chapter title

可对比工具

file-system-mcpweb-scraping-mcpdocument-processing-mcp

安装

# 克隆仓库
git clone https://github.com/onebirdrocks/ebook-mcp.git
cd ebook-mcp

# 使用 uv 安装依赖
uv pip install -e .

# 在开发模式下启动 MCP 服务器
uv run mcp dev src/ebook_mcp/main.py

# 或在生产模式下启动
uv run src/ebook_mcp/main.py

Claude Desktop 配置示例:

{
  "ebook-mcp": {
    "command": "uv",
    "args": [
      "--directory",
      "/path/to/ebook-mcp/src/ebook_mcp/",
      "run",
      "main.py"
    ]
  }
}

FAQ

这个服务器支持哪些电子书格式?
Ebook-MCP 目前支持 EPUB 和 PDF 格式,具有元数据提取、目录检索和内容提取等功能。
如何将此 MCP 服务器与 AI 应用集成?
该服务器可通过模型上下文协议与 AI 应用集成。提供了 Claude Desktop、Cursor 和其他兼容 AI 工具的安装说明。

ebook-mcp 对比

GitHub →

最后更新于 · 由 README + GitHub 公开数据自动生成。