Google Drive MCP 服务器
高效实现的 Google Drive MCP 服务器,支持 AI 模型与 Google Drive 集成。
快速入门
- 安装依赖
- 确保已安装 Node.js (v16+) 和 npm/yarn。
- 克隆仓库并安装依赖:
git clone https://github.com/felores/gdrive-mcp-server.git cd gdrive-mcp-server npm install npm run build
- 配置 Google Cloud
- 创建 Google Cloud 项目并启用 Google Drive API。
- 设置 OAuth 同意屏幕并创建 OAuth 客户端 ID。
- 将下载的 JSON 文件保存为
credentials/gcp-oauth.keys.json
。
- 认证
- 执行以下命令完成 OAuth 流程:
node dist/index.js auth
- 执行以下命令完成 OAuth 流程:
- 运行服务器
- 启动服务器:
node dist/index.js
- 启动服务器:
- 集成
- 在桌面应用中添加配置以集成该服务器。