AVOCarbon SharePoint MCP
AVOCarbon SharePoint MCP
Serveur MCP Python pour gérer SharePoint et OneDrive avec Microsoft Graph.
Actions incluses
Profil, sites et bibliothèques
Navigation dans les dossiers
Recherche et lecture de fichiers
Création de dossiers
Upload simple et upload par blocs
Mise à jour, copie, déplacement, renommage et suppression
Liens de partage, invitations et permissions
Liste et restauration des versions
Related MCP server: SharePoint MCP Server
Configuration
Copier le modèle :
cp .env.example .envRenseigner un nouveau secret Azure :
AZURE_TENANT_ID=4e99b5ff-dd77-418a-8b69-1d684e911168
AZURE_CLIENT_ID=653f4fbf-ba11-406c-98ea-e61d637d79d0
AZURE_CLIENT_SECRET=your-new-secretLe fichier .env est exclu de Git par .gitignore.
Permissions Microsoft Graph
Pour un premier test avec des permissions d'application :
Sites.ReadWrite.AllFiles.ReadWrite.All
Accorder ensuite le consentement administrateur. Pour la production, préférer Sites.Selected afin de limiter l'accès aux sites requis.
Démarrage local
python -m venv .venv
# Windows
.venv\Scripts\activate
# Linux/macOS
source .venv/bin/activate
pip install -r requirements.txt
python server.pyEndpoint MCP :
http://localhost:8000/mcpDocker
docker build -t avocarbon-sharepoint-mcp .
docker run --rm -p 8000:8000 --env-file .env avocarbon-sharepoint-mcpAzure App Service
Ajouter les paramètres d'application suivants :
AZURE_TENANT_ID
AZURE_CLIENT_ID
AZURE_CLIENT_SECRET
HOST=0.0.0.0
PORT=8000
MCP_TRANSPORT=streamable-httpCommande de démarrage :
python server.pyURL publique habituelle :
https://YOUR-APP.azurewebsites.net/mcpExemple AVOCarbon SharePoint
Pour https://avocarbongroup.sharepoint.com/sites/pdc/... :
get_site(hostname="avocarbongroup.sharepoint.com", site_path="/sites/pdc")list_site_drives(site_id=...)list_folder_items(drive_id=..., folder_path=...)upload_file(drive_id=..., parent_item_id=..., file_name=..., content_base64=...)
Sécurité
Ne jamais mettre un client secret réel dans GitHub, même dans un dépôt privé. Utiliser les variables d'environnement Azure App Service ou GitHub Actions Secrets.
This server cannot be deployed
Maintenance
Related MCP Connectors
Manage Microsoft 365 email, calendar, contacts and inbox rules via the Graph API with OAuth 2.0.
Permissioned access to Outlook, OneDrive and Teams via the user's own Microsoft account
- agntpadOAuthcom.agntpad
Read, search, and publish files in your organization's Spaces using Microsoft work sign-in.
Manage files and folders directly from your workspace. Read and write files, list directories, cre…
Related MCP Servers
- FlicenseDqualityDmaintenanceProvides access to organizational Sharepoint documents through the Microsoft Graph API, enabling search and retrieval of Sharepoint content for AI assistants.139 npm21-
- AlicenseNot gradedqualityDmaintenanceEnables interaction with Microsoft SharePoint sites, document libraries, and files through the Microsoft Graph API. Supports browsing, searching, uploading/downloading files, managing lists, and creating sharing links with secure OAuth authentication.2MIT
- AlicenseNot gradedqualityDmaintenanceEnables browsing and interacting with Microsoft SharePoint sites and documents through Microsoft Graph API, supporting file search, site listing, document library browsing, and file content retrieval with OAuth2 authentication.51 npm10MIT
- FlicenseNot gradedqualityNot gradedmaintenanceProvides unified access to OneDrive and SharePoint through Microsoft Graph API, enabling file operations, SharePoint list management, Excel integration, and content search across personal and business Microsoft accounts.-