SharePoint MCP Server logo

SharePoint MCP Server

MCP server for Microsoft SharePoint β€” manage folders, documents, and metadata.

Install SharePoint MCP Server

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "sharepoint-mcp-server": {
      "command": "uvx",
      "args": [
        "sharepoint-mcp"
      ]
    }
  }
}

Settings β†’ Developer β†’ Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window β€” this can mean a slow first-time install rather than a real problem.

uvx sharepoint-mcp

No response to initialize.

This is an experimental automated check and can have false negatives β€” missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

Security & health

What it can reach and how reliably it runs β€” from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

15/15 checks healthy over the last 77d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 16d ago via OSV.dev Β· sharepoint-mcp (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks β€” not a rating.

GitHub stars12Stargazers on the source repository.
Last commit8mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window β€” often a slow first install.

From the project README

πŸ—‚οΈ sharepoint-mcp

The MCP Server that gives your AI agent a brain for Microsoft SharePoint

CI PyPI version Python License: MIT Docker MCP

A production-grade Model Context Protocol (MCP) server for Microsoft SharePoint.
Connect Claude Desktop, VS Code Copilot, Cursor, Continue, or any MCP-compatible AI agent
to your SharePoint β€” read files, manage folders, and reason over your organisation's knowledge.

πŸ“š Docs Β· πŸ—ΊοΈ Roadmap Β· πŸ› Bugs Β· πŸ’‘ Features


πŸ“‘ Table of Contents


🧠 Why sharepoint-mcp?

Most AI agents only know what's in their training data.
sharepoint-mcp gives your agent live access to your organisation's real knowledge.

Without sharepoint-mcpWith sharepoint-mcp
🀷 Agent guesses or hallucinatesAgent reads the actual document
πŸ“‹ You copy-paste content manuallyAgent fetches files automatically
πŸ”’ Knowledge locked in SharePointKnowledge flows into your AI workflow
🐌 Static, one-shot answersAgent reasons, rewrites, and saves back

πŸš€ What Your Agent Can Do

πŸ“– Understand Any Document

Code
You: "Summarise the Q3 report in the Finance folder"
Agent: β†’ Get_Document_Content("Finance", "Q3_Report.pdf")
       β†’ Reads full extracted text
       β†’ Returns a sharp, accurate summary

✏️ Read β†’ Reason β†’ Write

Code
You: "Translate the proposal to French and save it"
Agent: β†’ Get_Document_Content β†’ translate β†’ Upload_Document

πŸ—‚οΈ Navigate Your Library

Code
You: "What files are in the Legal/Contracts folder?"
Agent: β†’ List_SharePoint_Documents("Legal/Contracts")

πŸ“Š Supported File Formats

πŸ“„ FormatπŸ€– What the Agent Gets
PDFFull text from every page
Word .docx .docComplete document content
Excel .xlsx .xlsAll sheets as structured text
Text, JSON, Markdown, HTML, YAML, PythonRaw content as-is
Images, ZIP, binariesFile type + Base64

✨ Features

FeatureDescription
πŸ”€Dual API SupportChoose Office365 REST or Microsoft Graph API
πŸ“Folder ManagementList, create, delete, get full recursive tree
πŸ“„Document ManagementUpload, download, update, delete, search, read content
🏷️Metadata ManagementRead and update SharePoint list-item fields
πŸ”Smart ParsingAuto-detects PDF / Word / Excel / text
πŸ”ŽKQL SearchNative SharePoint KQL search for semantic file finding
πŸ“‚Flexible Library ScopeScope to a subfolder or access the entire library root
πŸ”Auto-RetryExponential backoff on SharePoint 429/503 throttling
πŸš€Dual Transportstdio for desktop Β· http for Docker/remote
πŸͺ΅Structured LoggingJSON in production Β· coloured console in dev
🐳Docker-ReadySingle command: docker compose up -d
πŸ›‘οΈNon-Root ContainerRuns as unprivileged user inside Docker
🩺Health CheckLive /health endpoint with real SharePoint check
πŸ€–CI/CDTested on Python 3.10 Β· 3.11 Β· 3.12 Β· 3.13

⚑ Quickstart

1️⃣ Install

Terminal
pip install sharepoint-mcp

Or from source:

bash
git clone https://github.com/ravikant1918/sharepoint-mcp.git
cd sharepoint-mcp && pip install -e .

2️⃣ Configure

bash
cp .env.example .env
# Open .env and fill in your Azure AD credentials
env
SHP_ID_APP=your-azure-app-client-id
SHP_ID_APP_SECRET=your-azure-app-secret
SHP_TENANT_ID=your-tenant-id
SHP_SITE_URL=https://your-tenant.sharepoint.com/sites/your-site
SHP_API_TYPE=office365   # or "graph" / "graphql" for Microsoft Graph API

πŸ”‘ New to Azure AD? Follow the step-by-step guide β†’
πŸ”€ Choose Your API: SharePoint MCP supports both Office365 REST API (default) and Microsoft Graph API. See API Configuration Guide β†’

Optional: Scope to a subfolder

By default, the server accesses your entire document library root. To restrict operations to a specific subfolder:

env
# Only operate within this subfolder (omit for full library access)
SHP_DOC_LIBRARY=mcp_server

# Library name (only needed if your org renamed "Shared Documents")
# Graph API auto-detects the default drive β€” this is only for Office365 REST API
# SHP_LIBRARY_NAME=Shared Documents

3️⃣ Run

bash
# πŸ” Interactive testing with MCP Inspector
npx @modelcontextprotocol/inspector -- sharepoint-mcp

# ▢️ Run directly
sharepoint-mcp

🐳 Docker

The fastest way to deploy for remote or cloud use.

πŸ“‹ Usage Scenarios

Scenario A: Pull Latest Version from DockerHub (Recommended)

Use this for production deployments with the latest stable release:

bash
# Step 1: Clone repository
git clone https://github.com/ravikant1918/sharepoint-mcp.git
cd sharepoint-mcp

# Step 2: Create .env file with your SharePoint credentials
cp .env.example .env
# Edit .env and fill in:
# SHP_ID_APP=your-app-id
# SHP_ID_APP_SECRET=your-secret
# SHP_TENANT_ID=your-tenant-id
# SHP_SITE_URL=https://yourcompany.sharepoint.com/sites/yoursite

# Step 3: Start container (pulls from DockerHub automatically)
docker compose up -d

# Step 4: Verify it's running
docker compose ps
curl http://localhost:8000/health

# View logs
docker compose logs -f

# Stop container
docker compose down

What happens: Pulls ravikant1918/sharepoint-mcp:latest from DockerHub with automatic architecture detection (Intel/ARM).


Scenario B: Use Specific Version

Lock to a specific version for stability or testing:

bash
# Step 1: Set version via environment variable
SHAREPOINT_MCP_VERSION=v1.0.1 docker compose up -d

# Or add to .env file
echo "SHAREPOINT_MCP_VERSION=v1.0.1" >> .env
docker compose up -d

What happens: Pulls ravikant1918/sharepoint-mcp:v1.0.1 instead of latest.


Scenario C: Build Locally from Source

Use this for development or when you've made local code changes:

bash
# Step 1: Clone and setup
git clone https://github.com/ravikant1918/sharepoint-mcp.git
cd sharepoint-mcp
cp .env.example .env
# Edit .env with your credentials

# Step 2: Build from local Dockerfile and start
docker compose up -d --build

# Step 3: Rebuild after code changes
docker compose down
docker compose up -d --build

What happens: Builds image from local Dockerfile, tags as ravikant1918/sharepoint-mcp:latest, and starts container.


Scenario D: Use Custom Image/Fork

If you've forked the repo and published to your own DockerHub:

bash
# Use your custom image
SHAREPOINT_MCP_IMAGE=myusername/sharepoint-mcp \
SHAREPOINT_MCP_VERSION=dev \
docker compose up -d

# Or add to .env
echo "SHAREPOINT_MCP_IMAGE=myusername/sharepoint-mcp" >> .env
echo "SHAREPOINT_MCP_VERSION=dev" >> .env
docker compose up -d

What happens: Pulls from your custom registry/repository.


πŸ”§ Common Commands

bash
# Start in detached mode
docker compose up -d

# Start with live logs
docker compose up

# View logs
docker compose logs -f

# Stop container
docker compose down

# Restart container
docker compose restart

# Pull latest image
docker compose pull

# Rebuild and restart
docker compose up -d --build

# Remove everything (including volumes)
docker compose down -v

Using Podman? Just replace docker with podman β€” fully compatible.

Docker Environment Variables

Reviews

No reviews yet β€” be the first to share how it worked for you.

Frequently Asked Questions about SharePoint MCP Server

SharePoint MCP Server is an MCP server that connects AI agents to Microsoft SharePoint for live access to organizational knowledge. It lets compatible clients read document content, navigate libraries, manage folders, and upload documents, enabling workflows such as summarizing, translating, reasoning over, and saving SharePoint content.

You can read SharePoint documents, list files in folders, manage folders and documents, work with metadata, and upload documents. The server supports AI workflows such as summarizing reports, translating proposals, and saving the resulting content back to SharePoint.

The server supports PDF, Word, Excel, text, JSON, Markdown, HTML, YAML, and Python files. It extracts full text from PDFs and Word documents, exposes Excel sheets as structured text, returns raw content for supported text formats, and provides file type plus Base64 for images, ZIP files, and binaries.

The server is designed to connect with Claude Desktop, VS Code Copilot, Cursor, Continue, and other MCP-compatible AI agents.

Related MCP servers

Add a badge to your READMEShow it’s listed β€” live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewSharePoint MCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/sharepoint-mcp-server?style=directory)](https://allmcps.com/mcp/sharepoint-mcp-server)
HTML Embed
<a href="https://allmcps.com/mcp/sharepoint-mcp-server"><img src="https://allmcps.com/api/badge/sharepoint-mcp-server?style=directory" alt="SharePoint MCP Server on AllMCPs" /></a>