mcpField
M
McpGoogleDrive

McpGoogleDrive

Local
github.com/achrafhardiziFiles & Storage1Updated 77w ago

About McpGoogleDrive

McpGoogleDrive is a Spring Boot application for managing Google Drive files through operations such as search and folder creation. It suits workflows that need application endpoints for cloud-file tasks; the README describes REST APIs.

Key features

  1. 01List Drive files
  2. 02Get file details
  3. 03Search by file name
  4. 04Create folders
  5. 05Download files as PDF

Use cases

  1. 01Find Drive files by name
  2. 02Inspect a specific file
  3. 03Create a folder in Drive
  4. 04Download a file as PDF

MCP support

The input does not describe MCP interfaces or functionality.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

McpGoogleDrive

Project Description

McpGoogleDrive is a Spring Boot application that interacts with Google Drive. It provides a set of RESTful API endpoints to perform various operations on Google Drive such as listing files, getting file details, searching files, creating folders, and downloading files as PDF.

Features

  • List files in Google Drive
  • Get details of a specific file
  • Search files by name
  • Create folders in Google Drive
  • Download files as PDF

Prerequisites

  • Java 17 or higher
  • Gradle
  • Google Cloud Platform account
  • Google Drive API enabled
  • Service account credentials JSON file

Installation

  1. Clone the repository:

    git clone https://github.com/achrafhardizi/McpGoogleDrive.git
    cd McpGoogleDrive
    
  2. Build the project using Gradle:

    ./gradlew build
    

Configuration

  1. Set up Google Drive API credentials:

    • Go to the Google Cloud Console.
    • Create a new project or select an existing project.
    • Enable the Google Drive API for the project.
    • Create a service account and download the JSON key file.
    • Place the JSON key file in the src/main/resources/credentials directory.
  2. Configure the application properties:

    • Open the src/main/resources/application.properties file.
    • Set the google.service.account.key property to the path of the service account key file:
      google.service.account.key=credentials/service-account-key.json
      

Usage

The application provides the following API endpoints:

  • List files: GET /api/drive/files

    • Query parameters:
      • pageSize (optional): Number of files to list (default: 10)
    • Example request:
      curl -X GET "http://localhost:8080/api/drive/files?pageSize=5"
      
  • Get file details: GET /api/drive/files/{fileId}

    • Path parameters:
      • fileId: ID of the file
    • Example request:
      curl -X GET "http://localhost:8080/api/drive/files/{fileId}"
      
  • Search files: GET /api/drive/search

    • Query parameters:
      • query: Search query
    • Example request:
      curl -X GET "http://localhost:8080/api/drive/search?query=example"
      
  • Create folder: POST /api/drive/folders

    • Query parameters:
      • folderName: Name of the folder to create
    • Example request:
      curl -X POST "http://localhost:8080/api/drive/folders?folderName=NewFolder"
      
  • Download file as PDF: GET /api/drive/files/{fileId}/pdf

    • Path parameters:
      • fileId: ID of the file
    • Example request:
      curl -X GET "http://localhost:8080/api/drive/files/{fileId}/pdf" -o file.pdf
      

License

This project is licensed under the MIT License. See the LICENSE file for details.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.