SharePoint Integration
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:
import { sharepointIntegration } from "integrate-sdk/server";Setup
1. Create a SharePoint OAuth App
- Go to Azure Portal — App Registrations
- Create a new OAuth application
- Configure your redirect URI
- 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:
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:
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:
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:
import { createMCPClient, sharepointIntegration } from "integrate-sdk";
const customClient = createMCPClient({
integrations: [sharepointIntegration()],
});Configuration Options
Prop
Type
Default Scopes
These defaults are applied unless you override scopes in the integration config:
Sites.ReadWrite.AllFiles.ReadWrite.Alloffline_access
Tools
sharepoint_create_folder
Create folder
Prop
Type
sharepoint_delete_item
Delete item
Prop
Type
sharepoint_get_item
Get item
Prop
Type
sharepoint_get_site
Get site
Prop
Type
sharepoint_list_drives
List drives
Prop
Type
sharepoint_list_items
List items
Prop
Type
sharepoint_search_files
Search files
Prop
Type
sharepoint_search_sites
Search sites
Prop
Type
sharepoint_share_item
Share item
Prop
Type
sharepoint_update_item
Update item
Prop
Type
sharepoint_upload_file
Upload file
Prop
Type
Notes
- Category: Productivity
- Authentication mode: OAuth