---
title: "SharePoint Integration"
description: "Search SharePoint sites and manage drives, files, folders, and sharing links"
---
The SharePoint integration provides access to search SharePoint sites and manage drives, files, folders, and sharing links through the Integrate MCP server.

## Installation

The SharePoint integration is included with the SDK:

```typescript
import { sharepointIntegration } from "integrate-sdk/server";
```

## Setup

### 1. Create a SharePoint OAuth App

1. Go to [Azure Portal — App Registrations](https://portal.azure.com/#blade/Microsoft_AAD_RegisteredApps)
2. Create a new OAuth application
3. Configure your redirect URI
4. Note your Client ID and Client Secret

### 2. Configure the Integration on Your Server

Add the SharePoint integration to your server configuration. The integration automatically reads `SHAREPOINT_CLIENT_ID` and `SHAREPOINT_CLIENT_SECRET` from your environment variables:

```typescript
import { createMCPServer, sharepointIntegration } from "integrate-sdk/server";

export const { client: serverClient } = createMCPServer({
  apiKey: process.env.INTEGRATE_API_KEY,
  integrations: [
    sharepointIntegration({
      scopes: ["Sites.ReadWrite.All", "Files.ReadWrite.All", "offline_access"], // Optional
    }),
  ],
});
```

You can override the environment variables by passing explicit values:

```typescript
sharepointIntegration({
  clientId: process.env.CUSTOM_SHAREPOINT_ID,
  clientSecret: process.env.CUSTOM_SHAREPOINT_SECRET,
      scopes: ["Sites.ReadWrite.All", "Files.ReadWrite.All", "offline_access"], // Optional
});
```

### 3. Client-Side Usage

The default client automatically includes all integrations. You can use it directly:

```typescript
import { client } from "integrate-sdk";

await client.authorize("sharepoint");
const result = await client.sharepoint.createFolder({});

console.log(result);
```

If you're using a custom client, add the integration to the integrations array:

```typescript
import { createMCPClient, sharepointIntegration } from "integrate-sdk";

const customClient = createMCPClient({
  integrations: [sharepointIntegration()],
});
```

## Configuration Options

<AutoTypeTable
  path="../src/integrations/sharepoint.ts"
  name="SharePointIntegrationConfig"
/>


## Default Scopes

These defaults are applied unless you override `scopes` in the integration config:

- `Sites.ReadWrite.All`
- `Files.ReadWrite.All`
- `offline_access`

## Tools

### `sharepoint_create_folder`

Create folder

<AutoTypeTable
  path="generated/tool-params/sharepoint.ts"
  name="SharepointCreateFolderParams"
/>

### `sharepoint_delete_item`

Delete item

<AutoTypeTable
  path="generated/tool-params/sharepoint.ts"
  name="SharepointDeleteItemParams"
/>

### `sharepoint_get_item`

Get item

<AutoTypeTable
  path="generated/tool-params/sharepoint.ts"
  name="SharepointGetItemParams"
/>

### `sharepoint_get_site`

Get site

<AutoTypeTable
  path="generated/tool-params/sharepoint.ts"
  name="SharepointGetSiteParams"
/>

### `sharepoint_list_drives`

List drives

<AutoTypeTable
  path="generated/tool-params/sharepoint.ts"
  name="SharepointListDrivesParams"
/>

### `sharepoint_list_items`

List items

<AutoTypeTable
  path="generated/tool-params/sharepoint.ts"
  name="SharepointListItemsParams"
/>

### `sharepoint_search_files`

Search files

<AutoTypeTable
  path="generated/tool-params/sharepoint.ts"
  name="SharepointSearchFilesParams"
/>

### `sharepoint_search_sites`

Search sites

<AutoTypeTable
  path="generated/tool-params/sharepoint.ts"
  name="SharepointSearchSitesParams"
/>

### `sharepoint_share_item`

Share item

<AutoTypeTable
  path="generated/tool-params/sharepoint.ts"
  name="SharepointShareItemParams"
/>

### `sharepoint_update_item`

Update item

<AutoTypeTable
  path="generated/tool-params/sharepoint.ts"
  name="SharepointUpdateItemParams"
/>

### `sharepoint_upload_file`

Upload file

<AutoTypeTable
  path="generated/tool-params/sharepoint.ts"
  name="SharepointUploadFileParams"
/>

## Notes

- Category: Productivity
- Authentication mode: OAuth
