Document Reader

Document Reader

🚀 mcp-document-reader

mcp-document-reader是一个基础的MCP服务器,用于与PDF和EPUB文档进行交互。我使用该工具搭配Windsurf IDE by Codeium,不过该IDE仅支持MCP工具,不支持资源。

🚀 快速开始

安装

先决条件

# 克隆仓库
git clone https://github.com/jbchouinard/mcp-document-reader.git
cd mcp-document-reader
poetry install

配置MCP服务器

使用poetry运行

{
"mcpServers": {
"documents": {
"command": "poetry",
"args": ["-C", "path/to/mcp-document-reader", "run", "mcp-document-reader"]
}
}
}

构建并使用pip安装,然后直接运行脚本

poetry build
pipx install dist/*.whl
which mcp-document-reader

然后使用以下配置(输出路径替换为实际路径):

{
"mcpServers": {
"documents": {
"command": "/path/to/mcp-document-reader",
"args": []
}
}
}

📦 安装指南

安装依赖

# 安装依赖项
poetry install

💻 使用示例

测试

poetry run pytest

代码检查

poetry run ruff check --fix .
poetry run ruff format .

📄 许可证

本项目采用MIT许可证。

  • 0 关注
  • 0 收藏,30 浏览
  • system 提出于 2025-10-02 04:18

相似服务问题

相关AI产品