SharePoint

by briancusack

10 stars
Not rated
GitHub

About

Integrates with SharePoint through Microsoft Graph API to enable direct access, search, and analysis of organizational documents, folders, and sites without leaving your assistant interface.

Details

Author
briancusack
Repository
BrianCusack/mcpsharepoint
GitHub stars
10
Categories
File Management, Productivity, Developer Tools, Design, Workplace, AI, Search, Infrastructure, Security, API, Other
Tags
#visualization

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name SharePoint
    Command (node, npx, python, etc.) node
    Arguments
    • Argument 1 run
    • Argument 2 start
    Environment
    • SITE_ID your-site-id
    • DRIVE_ID your-drive-id
    • CLIENT_ID your-client-id
    • TENANT_ID your-tenant-id
    • CLIENT_SECRET your-client-secret

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

To use this server with the Claude Desktop app, add the following configuration to the "mcpServers" section of your claude_desktop_config.json:

``bash
pnpm run build
`

`json
{
"mcpServers": {
"sharepoint": {
"command": "node",
"args": ["run", "start"],
"env": {
"TENANT_ID": "your-tenant-id",
"CLIENT_ID": "your-client-id",
"CLIENT_SECRET": "your-client-secret",
"SITE_ID": "your-site-id",
"DRIVE_ID": "your-drive-id",
}
}
}
}
``

List Sites

Retrieve a list of sites available in the Sharepoint.

Search Folders

Search for folders within the Sharepoint. Parameters: search term (string).

Download File

Download a specified file from the Sharepoint. Parameters: file ID (string).

Read File

Read the contents of a specified file in the Sharepoint. Parameters: file ID (string).

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "sharepoint": {
            "env": {
                "SITE_ID": "your-site-id",
                "DRIVE_ID": "your-drive-id",
                "CLIENT_ID": "your-client-id",
                "TENANT_ID": "your-tenant-id",
                "CLIENT_SECRET": "your-client-secret"
            },
            "args": [
                "run",
                "start"
            ],
            "command": "node"
        }
    }
}

Linux

{
    "env": {
        "SITE_ID": "your-site-id",
        "DRIVE_ID": "your-drive-id",
        "CLIENT_ID": "your-client-id",
        "TENANT_ID": "your-tenant-id",
        "CLIENT_SECRET": "your-client-secret"
    },
    "args": [
        "run",
        "start"
    ],
    "command": "node"
}

Macos

{
    "env": {
        "SITE_ID": "your-site-id",
        "DRIVE_ID": "your-drive-id",
        "CLIENT_ID": "your-client-id",
        "TENANT_ID": "your-tenant-id",
        "CLIENT_SECRET": "your-client-secret"
    },
    "args": [
        "run",
        "start"
    ],
    "command": "node"
}

Windows

{
    "env": {
        "SITE_ID": "your-site-id",
        "DRIVE_ID": "your-drive-id",
        "CLIENT_ID": "your-client-id",
        "TENANT_ID": "your-tenant-id",
        "CLIENT_SECRET": "your-client-secret"
    },
    "args": [
        "/c",
        "node",
        "run",
        "start"
    ],
    "command": "cmd"
}

Sharepoint - WIP, just for R&D ATM

A Model Context Protocol server that provides access to Organisational Sharepoint.

Implementation

| Component | Operation | Resource | Dynamic Resource | Tool | |--------------------|---------------------|----------|------------------|------| | Users | | ❌ | ❌ | ❌ | | | Read User | ❌ | ❌ | ❌ | | | Find User | ❌ | ❌ | ❌ | | Sites | | ❌ | ❌ | ❌ | | | List Sites | ✅ | ❌ | ❌ | | | Get Site Details | ❌ | ❌ | ❌ | | | Create Subsite | ❌ | ❌ | ❌ | | | Delete Site | ❌ | ❌ | ❌ | | Drives | | ❌ | ❌ | ❌ | | | List Folders | ❌ | ❌ | ❌ | | | Search Folders | ❌ | ❌ | ✅ | | | Create Folder | ❌ | ❌ | ❌ | | | Delete Folder | ❌ | ❌ | ❌ | | | Upload File | ❌ | ❌ | ❌ | | | List Items | ❌ | ✅ | ❌ | | | Download File | ❌ | ❌ | ✅ | | | Read File | ✅ | ❌ | ❌ | | | Move File | ❌ | ❌ | ❌ | | | Copy File | ❌ | ❌ | ❌ | | Lists | | ❌ | ❌ | ❌ | | | Create List | ❌ | ❌ | ❌ | | | Read List | ❌ | ❌ | ❌ | | | Add to List | ❌ | ❌ | ❌ | | | Update List | ❌ | ❌ | ❌ | | | Delete List | ❌ | ❌ | ❌ | | Calendar | | ❌ | ❌ | ❌ | | | Create Event | ❌ | ❌ | ❌ | | | Read Event | ❌ | ❌ | ❌ | | | Update Event | ❌ | ❌ | ❌ | | | Delete Event | ❌ | ❌ | ❌ |

Prompts

- document-summary - find-relevant-documents - explore-folder

Enviremental Variables

- Copy .env.example as .env - Fill the requires fields

Inspector

From root ``Bash npx @modelcontextprotocol/inspector -e TENANT_ID=your_tenant_id -e CLIENT_ID=your_client_id -e CLIENT_SECRET=your_client_secret -e SITE_ID=your_site_id -e DRIVE_ID=your_drive_id -- node dist/index.js `

Usage with Claude Desktop

To use this server with the Claude Desktop app, add the following configuration to the "mcpServers" section of your
claude_desktop_config.json:

Docker

  • Docker build and tag docker build -t mcp/sharepoint .
`json { "mcpServers": { "sharepoint": { "command": "docker", "args": [ "run", "-i", "--rm", "--init", "-e", "DOCKER_CONTAINER=true", "-e", "TENANT_ID=your-tenant-id", "-e", "CLIENT_ID=your-client-id", "-e", "CLIENT_SECRET=your-client-secret", "-e", "SITE_ID=your-site-id", "-e", "DRIVE_ID=your-drive-id", "mcp/sharepoint" ] } } } `

MCP configuration file

`bash pnpm run build ` `json { "mcpServers": { "sharepoint": { "command": "node", "args": ["run", "start"], "env": { "TENANT_ID": "your-tenant-id", "CLIENT_ID": "your-client-id", "CLIENT_SECRET": "your-client-secret", "SITE_ID": "your-site-id", "DRIVE_ID": "your-drive-id", } } } } ``

License

This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.
No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.