onedrive-mcp-server-spring

onedrive-mcp-server-spring

0

The OneDrive MCP Server is a service designed to enable AI agents to efficiently search and navigate through files and folders within Microsoft OneDrive. It offers secure integration using Microsoft Graph API, allowing direct interaction with OneDrive's structure and content.

OneDrive MCP Server

A Model Context Protocol (MCP) server implementation that enables AI agents to search and navigate files and folders in Microsoft OneDrive. Built with Spring Boot and Spring AI.

Features

  • Search files in OneDrive with optional folder filtering
  • Search and navigate folder structures
  • Obtain direct web URLs to files and folders
  • MCP-compatible interface for AI agent integration
  • Secure access using Microsoft Graph API

Prerequisites

  • Java 21 or higher
  • Maven 3.6+
  • Docker (optional for containerized deployment)
  • Microsoft OneDrive account and access token

Usage

  • Obtain Microsoft OneDrive access token using Microsoft Graph Explorer or by registering an application in the Microsoft Azure Portal.
  • Configure access token as an environment variable for the application.
  • Configure the MCP server with VS Code using local JAR or Docker.
  • Build and run the server using Maven or Docker.
  • Test server with MCP clients like GitHub Copilot and Claude Desktop.

Built With

  • Spring Boot 3.4.4
  • Spring AI 1.0.0-M7
  • Microsoft Graph API
  • JUnit 5 & Mockito

License

This project is licensed under the MIT License.