Skip to main content

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_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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sharepoint_upload_mcp-0.1.0.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sharepoint_upload_mcp-0.1.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file sharepoint_upload_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: sharepoint_upload_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for sharepoint_upload_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a7b99c35c32e7f8c6d3810ad6d61844486df9ba589f3b6a00d7f0e3b0b076530
MD5 931166ba743cad30368b3756abdda880
BLAKE2b-256 6b67767b237ca29dc94f073520ecb7a974e3945b67a4a66a96b777da4bbc718d

See more details on using hashes here.

File details

Details for the file sharepoint_upload_mcp-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sharepoint_upload_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 999a37a1fe6135d014b80b83489c9754481e4eb81936c8ca8158ebdf1af51f84
MD5 2548e28cb0888730c1d55d5dc9c65e99
BLAKE2b-256 a864a3ea7a646fa44d8e437d2844ed85e5d67690a713e341e558d4d8a64c9684

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page