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
{
"mcpServers": {
"documents": {
"command": "poetry",
"args": ["-C", "path/to/mcp-document-reader", "run", "mcp-document-reader"]
}
}
}
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许可证。