McpGoogleDrive logo

McpGoogleDrive

by achrafhardizi

McpGoogleDrive is a Spring Boot application that interacts with Google Drive. It provides RESTful API endpoints to perform various operations on Google Drive.

View on GitHub

Last updated: N/A

What is McpGoogleDrive?

McpGoogleDrive is a Spring Boot application designed to interact with the Google Drive API. It provides a set of RESTful endpoints to manage files and folders within a Google Drive account.

How to use McpGoogleDrive?

To use McpGoogleDrive, you need to clone the repository, build the project using Gradle, configure Google Drive API credentials by creating a service account and enabling the Google Drive API in the Google Cloud Console. Then, configure the application properties with the path to the service account key file and use the provided API endpoints to interact with Google Drive.

Key features of McpGoogleDrive

  • List files in Google Drive

  • Get details of a specific file

  • Search files by name

  • Create folders in Google Drive

  • Download files as PDF

Use cases of McpGoogleDrive

  • Automated file management in Google Drive

  • Integrating Google Drive functionality into other applications

  • Programmatically searching and retrieving files from Google Drive

  • Creating and organizing folders in Google Drive via API

FAQ from McpGoogleDrive

What is the purpose of McpGoogleDrive?

McpGoogleDrive provides a Spring Boot application to interact with Google Drive programmatically through REST APIs.

What are the prerequisites for using McpGoogleDrive?

You need Java 17 or higher, Gradle, a Google Cloud Platform account, Google Drive API enabled, and a service account credentials JSON file.

How do I configure the application?

You need to set up Google Drive API credentials in the Google Cloud Console, create a service account, download the JSON key file, and configure the google.service.account.key property in the application.properties file.

What API endpoints are available?

The application provides endpoints to list files, get file details, search files, create folders, and download files as PDF.

How do I download a file as PDF?

Use the GET /api/drive/files/{fileId}/pdf endpoint, replacing {fileId} with the ID of the file you want to download. Use the -o flag with curl to specify the output file name.