Model Context Protocol (MCP) server for uploading files and Markdown to SharePoint via Microsoft Graph
Project description
sharepoint-upload-mcp
Python MCP server that uploads files or Markdown to SharePoint using Microsoft Graph (same behavior as the ChartSwap scripts/upload-to-sharepoint.py CLI).
Install
From PyPI (after publish):
pip install sharepoint-upload-mcp
From this monorepo (editable, for development):
pip install -e ./packages/sharepoint-upload-mcp
Environment
Set in .env at the workspace root (or in the process environment):
SHAREPOINT_SITE_HOST,SHAREPOINT_SITE_PATH,SHAREPOINT_UPLOAD_BASE_PATHMICROSOFT_TENANT_ID,MICROSOFT_CLIENT_ID(orGRAPH_ACCESS_TOKEN)
Optional:
SHAREPOINT_MCP_REPO_ROOT— directory used to resolve relative file paths and to load.env. If unset, the current working directory is used.
Run (stdio MCP)
python -m sharepoint_upload_mcp
Or use the console script:
sharepoint-upload-mcp
Cursor / MCP config example
"sharepoint-upload": {
"command": "py",
"args": ["-m", "sharepoint_upload_mcp"],
"env": {
"SHAREPOINT_MCP_REPO_ROOT": "${workspaceFolder}"
}
}
Tools
sharepoint_upload_file— upload a file from disk (relative paths useSHAREPOINT_MCP_REPO_ROOTor cwd).sharepoint_upload_markdown— upload UTF-8 Markdown withtext/markdown.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters