Skip to main content

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_PATH
  • MICROSOFT_TENANT_ID, MICROSOFT_CLIENT_ID (or GRAPH_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 use SHAREPOINT_MCP_REPO_ROOT or cwd).
  • sharepoint_upload_markdown — upload UTF-8 Markdown with text/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)

Source distribution for sharepoint-upload-mcp 0.1.0
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)

Table of built distributions (wheels) for sharepoint-upload-mcp 0.1.0
File Interpreter ABI Platform Actions
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

Release files / sharepoint_upload_mcp-0.1.0.tar.gz

Download URL sharepoint_upload_mcp-0.1.0.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
a7b99c35c32e7f8c6d3810ad6d61844486df9ba589f3b6a00d7f0e3b0b076530
BLAKE2b-256 checksum
How to use checksums
6b67767b237ca29dc94f073520ecb7a974e3945b67a4a66a96b777da4bbc718d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Release files / sharepoint_upload_mcp-0.1.0-py3-none-any.whl

Download URL sharepoint_upload_mcp-0.1.0-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
999a37a1fe6135d014b80b83489c9754481e4eb81936c8ca8158ebdf1af51f84
BLAKE2b-256 checksum
How to use checksums
a864a3ea7a646fa44d8e437d2844ed85e5d67690a713e341e558d4d8a64c9684
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page