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.
Metadata
Release files for sharepoint-upload-mcp 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sharepoint_upload_mcp-0.1.0.tar.gz | 4.8 kB | Without provenance | Details for sharepoint_upload_mcp-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sharepoint_upload_mcp-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for sharepoint_upload_mcp-0.1.0-py3-none-any.whl |
Total release size: 11.5 kB
Security for sharepoint-upload-mcp 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.