OneDrive MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@OneDrive MCP Server list files in my Documents folder"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
🔵 OneDrive MCP Server para Claude
Servidor MCP (Model Context Protocol) que conecta Claude con OneDrive a través de Microsoft Graph API para listar, buscar, crear, mover, copiar y compartir archivos directamente desde la conversación.
🛠️ Herramientas disponibles
Herramienta | Descripción |
| Lista archivos y carpetas en una ruta |
| Obtiene detalles de un archivo o carpeta |
| Crea una carpeta |
| Elimina un archivo o carpeta |
| Mueve un archivo a otra carpeta |
| Copia un archivo a otra carpeta |
| Busca archivos por nombre o contenido |
| Genera enlace para compartir (view/edit, anónimo/org) |
| Muestra espacio total, usado y disponible |
Related MCP server: Outlook MCP Server
🚀 Instalación
1. Instalar dependencias y compilar
npm install
npm run build2. Registrar una aplicación en Azure AD
Ve a https://portal.azure.com → Azure Active Directory → App registrations → New registration
Nombre:
Claude OneDrive MCPEn API permissions agrega:
Files.ReadWrite.All(Application)User.Read.All(Application)
Haz clic en Grant admin consent
En Certificates & secrets → New client secret → copia el valor
3. Configurar variables de entorno
cp .env.example .envEdita .env:
TENANT_ID=tu-tenant-id
CLIENT_ID=tu-client-id
CLIENT_SECRET=tu-client-secret
USER_EMAIL=usuario@tudominio.comPuedes encontrar el
TENANT_IDyCLIENT_IDen la página principal de tu app registrada en Azure AD.
🔌 Conectar con Claude Desktop
Edita el archivo de configuración de Claude Desktop:
Windows: %LOCALAPPDATA%\Packages\Claude_pzs8sxrjxfjjc\LocalCache\Roaming\Claude\claude_desktop_config.json
{
"mcpServers": {
"onedrive": {
"command": "C:\\Program Files\\nodejs\\node.exe",
"args": ["C:\\ruta\\al\\proyecto\\dist\\index.js"],
"env": {
"TENANT_ID": "tu-tenant-id",
"CLIENT_ID": "tu-client-id",
"CLIENT_SECRET": "tu-client-secret",
"USER_EMAIL": "usuario@tudominio.com"
}
}
}
}Reinicia Claude Desktop y verás las herramientas disponibles.
🐛 Troubleshooting
Error 401: Verifica que el CLIENT_SECRET no haya expirado y que se haya otorgado admin consent.
Error 403: Asegúrate de que la app tenga permisos Files.ReadWrite.All con admin consent.
Error 404: Verifica que el USER_EMAIL sea correcto y tenga OneDrive activo.
Available Tools
10 toolscopy_fileB
Copia un archivo o carpeta a otra ubicacion.
Inputs: sourcePath (required), destinationPath (required).
create_folderA
Crea una carpeta (y subcarpetas intermedias si es necesario).
Inputs: folderPath (required).
delete_fileA
Elimina un archivo o carpeta (con todo su contenido si es carpeta). Operacion irreversible.
Inputs: filePath (required).
get_fileA
Obtiene detalles (nombre, tipo, tamaño, fecha) de un archivo o carpeta.
Inputs: filePath (required).
list_filesA
Lista archivos y carpetas en una ruta. Usa prefijos de raiz: 'onedrive/carpeta' o 'aisquad/carpeta'. Si no se especifica ruta, lista la raiz de OneDrive.
Inputs: folderPath.
list_rootsA
Lista las raices disponibles: 'onedrive' (OneDrive personal) y 'aisquad' (carpeta compartida AI Squad de Johnny Ordonez). Usa estos prefijos para navegar, ej: 'onedrive/PROYECTOS BIT'.
Inputs: no named parameters.
move_fileC
Mueve o renombra un archivo o carpeta.
Inputs: sourcePath (required), destinationPath (required).
read_fileB
Lee el contenido de un archivo de texto (txt, md, json, csv, etc.).
Inputs: filePath (required).
search_filesA
Busca archivos y carpetas por nombre dentro de una carpeta (busqueda recursiva).
Inputs: query (required), folderPath (required).
write_fileA
Crea o sobreescribe un archivo con el contenido especificado. Crea las carpetas intermedias si no existen.
Inputs: content (required), filePath (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Most tools have clearly distinct purposes (list, read, write, delete, etc.). There is minor overlap between get_file (metadata) and read_file (content), and between list_files and search_files, but descriptions sufficiently clarify the boundaries.
All tool names follow a consistent verb_noun pattern in snake_case (e.g., list_files, create_folder, delete_file). This is uniform and predictable across the entire set.
With 10 tools, the server is well-scoped for file management operations. Each tool covers a distinct file or folder action without unnecessary redundancy.
The tool set covers core file operations: listing roots, browsing, reading, writing, creating folders, deleting, moving, copying, and searching. This is comprehensive for a typical file management MCP server.
Maintenance
Related MCP Connectors
Give Claude only the Google Drive files you choose. Every action logged.
Connect Claude to your Platform7n workspaces: chat, links, work and decks. One-click OAuth.
Connect Claude to your Platform7n workspaces: chat, links, work and decks. One-click OAuth.
Find, read and reorganize files across Google Drive, OneDrive, SharePoint and Dropbox, with undo.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceConnects Claude with Microsoft Outlook through the Graph API, providing comprehensive email, calendar, folder management, and rules creation capabilities.19MIT
- AlicenseNot gradedqualityDmaintenanceConnects Claude to Microsoft Outlook through the Microsoft Graph API, enabling email management (list, search, read, send) and calendar operations (list, create, accept, decline, delete events) via OAuth 2.0 authentication.1MIT
- AlicenseAqualityDmaintenanceProvides Claude with access to Microsoft SharePoint via the Microsoft Graph API, enabling folder management, document operations (upload, download, read, update, delete), and metadata management with secure OAuth 2.0 authentication.161MIT
- AlicenseNot gradedqualityCmaintenanceConnects Claude with Microsoft 365 services such as Email, Calendar, Teams, OneDrive, and more through the Microsoft Graph API.81 npm17MIT