Skip to main content
Mintive is the new name for MintMCP.Read the announcement

Set up SharePoint for a single site

The standard SharePoint connector needs no setup beyond installing it: Mintive manages the Entra app, an admin consents once, and each user reaches every site they already have access to. That path is in the Microsoft 365 guide.

This guide is for the other case: one connector that agents can use on exactly one SharePoint site, for a department or a project, even when its users can reach more in Microsoft 365. That variant, SharePoint (Scoped Site), runs on your organization's own Entra app, so an admin registers the app first and sets the site when installing from the catalog. The same connector can be installed more than once, one site per install.

Agents get the same tools as the standard connector: browse the site's document libraries, search, read files, and create, update, and delete them, all as the signed-in user. Every call that names another site, a group drive, or a file outside the site is refused.

Prerequisites​

  • A Mintive admin account
  • Microsoft 365 work or school accounts. Personal Microsoft accounts can't connect
  • A Microsoft Entra admin who can register an app and grant admin consent, such as a Global Administrator, Cloud Application Administrator, or Application Administrator
  • The site's composite ID, which you find below

Register a Microsoft Entra app​

Microsoft Entra doesn't support dynamic client registration, so an admin registers an app once and Mintive uses its client ID and secret for every user's sign-in.

  1. Go to portal.azure.com > Microsoft Entra ID > App registrations. Confirm the directory shown in the account menu is your organization's tenant.

    Azure portal Default Directory blade with Microsoft Entra ID highlighted in the left sidebar and App registrations selected under Manage
  2. Click New registration.

    Azure portal App registrations page with the New registration button highlighted in the top toolbar
  3. Enter a name, for example Mintive SharePoint.

  4. Under Supported account types, keep the single-tenant option. The current form labels it Single tenant only followed by your directory name; older forms call it Accounts in this organizational directory only.

  5. Under Redirect URI, select Web and enter the callback for your Mintive region:

    Mintive regionRedirect URI
    US (app.mintmcp.com)https://app.mintmcp.com/oauth/callback
    EU (eu.mintmcp.com)https://eu.mintmcp.com/oauth/callback

    The install panel in Mintive shows the callback for your organization. Microsoft compares the redirect URI character by character, so copy it from there.

  6. Click Register.

  7. Go to API permissions > Add a permission > Microsoft Graph > Delegated permissions, and add:

    PermissionWhy
    Sites.Read.All, Sites.ReadWrite.AllBrowse and change the site's libraries as the user
    Files.Read.All, Files.ReadWrite.AllRead and change the files the user can access in those libraries
    GroupMember.Read.AllName the Microsoft 365 groups behind group-connected sites
    User.Read, openid, email, profileSign the user in
    offline_accessLet Mintive refresh the token without asking the user to sign in again

    Add only delegated permissions. The connector always acts as the signed-in user, so it needs no application permissions. The scopes cover every site the user can reach; the connector itself narrows that to the one site you set at install time.

  8. Click Grant admin consent for [your organization] and confirm, so users aren't prompted to consent individually and tenants that block user consent still work.

    API permissions page with the Grant admin consent for Default Directory button and the grant admin consent confirmation dialog showing Yes and No
  9. Copy the Application (client) ID and Directory (tenant) ID from the Overview tab. The Object ID is a different value and doesn't work as a client ID.

    App registration Overview tab showing the Essentials panel with Application (client) ID and Directory (tenant) ID
  10. Go to Certificates & secrets > Client secrets > New client secret, enter a description, choose an expiry that matches your credential policy, and click Add.

    Add a client secret panel with a Description and Expires field and the Add button
  11. Copy the secret Value immediately. It's shown once, and the Secret ID column next to it isn't the value Mintive needs.

    Client secrets table showing a secret with its Value column and copy button

Record the secret's expiry date and owner. When it expires, every user's connection stops refreshing until an admin creates a new secret and updates it in Mintive.

Find the site ID​

The connector identifies the site by its composite Graph ID, three parts separated by commas: hostname,siteCollectionId,webId, for example contoso.sharepoint.com,xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx,yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy.

To get it, sign in to Graph Explorer and run GET https://graph.microsoft.com/v1.0/sites/<tenant>.sharepoint.com:/sites/<site-name>, then copy the id field from the response. If you already have the standard SharePoint connector installed, list_sites_and_groups returns the same ID for every site the user can see.

Add SharePoint (Scoped Site) to Mintive​

The catalog pre-fills the Microsoft endpoints, scopes, and token mapping. Microsoft's endpoints are per tenant, so {tenant-id} in the catalog is a placeholder for your Directory (tenant) ID.

  1. In Mintive, go to MCP store > Manage store.
  2. Find SharePoint (Scoped Site) in the catalog and click Install, then Continue. A setup page appears with the connector configuration.
  3. Set Scoped site ID to the composite ID from the previous section, with Global scope. Leave it blank only if you want this install to expose every site the user can access, which is what the standard connector already does.
  4. Set Authorization URL to https://login.microsoftonline.com/<tenant-id>/oauth2/v2.0/authorize and Token URL to https://login.microsoftonline.com/<tenant-id>/oauth2/v2.0/token, replacing <tenant-id> with the Directory (tenant) ID from the app's Overview page. Microsoft rejects the sign-in if the placeholder is left in place.
  5. Keep the pre-filled Scopes.
  6. Enter the Client ID (the Application (client) ID) and the Client Secret (the secret Value) from the app registration.
  7. Confirm the Redirect URL shown on the setup page matches the Web redirect URI on the app registration. Microsoft compares them character by character.
  8. Save the connector. A malformed site ID stops the connector from starting, so check the connector status after saving.

Each user signs in with their Microsoft 365 account on first use. With admin consent granted, they see the Microsoft sign-in page and land back in Mintive without a consent prompt.

To cover a second site, install SharePoint (Scoped Site) again with that site's ID. The app registration and secret can be shared between installs.

Verify the connection​

  1. Open the server in Mintive and go to the Tools tab to confirm the tools are listed.
  2. Use the Installation tab to connect an MCP client such as Claude, ChatGPT, or Microsoft 365 Copilot to the gateway.
  3. Run a small read-only prompt, such as List the document libraries in this site, and compare the result with the site in the browser. Then ask for a file in another site: the connector should refuse it with an out-of-scope error.

Security considerations​

  • The site is fixed at install time and read once when the connector starts. Nothing in a request can widen it, and every tool checks the drive it is given against the site.
  • Each user signs in with their own Microsoft account, so what they can read or change inside the site is still their own SharePoint permission. The connector never grants access a user doesn't have.
  • Keep the client secret with your other credentials. Anyone holding it can sign users in through your app.

Next steps​