CIPP-API & MCP
Creating an API Client (App Registration)
Navigate to CIPP > Integrations and click on CIPP-API.
Creating an API client:
If you need to create an API Client
Click on Actions > Create New Client.
Fill out the form with the App Name.
If you've already created an App Registration and would like to import it:
Click on Actions > Add Existing Client.
Select the API Client from the list. The CIPP-SAM and CIPP-SSO applications are never offered here and cannot be added, reset or deleted as API clients; manage them from Credentials instead.
Ensure that you Enable the client in order to save it to the Function App authentication settings.
Optionally set the Custom Roles and Allowed IP Ranges for additional security.
Select if you want MCP Access Allowed for this client. Enabling MCP Access sets this client up as an MCP connector app (the app your AI signs in as); CIPP automatically creates and manages a separate shared CIPP-MCP resource app that the tokens are issued for. You can enable MCP Access on more than one client. Connectors that sign a user in run with that user's own CIPP role; the client's role and IP range only apply when the client calls with its own secret and no user. MCP Access is only supported on the latest CIPP infrastructure. See Enable the MCP Feature for more information.
Submit the form to create the client. Remember to copy the Application secret to a secure location.
Once you have the API Client(s) configured, click Actions > Save to Azure, this updates the Function App authentication settings with the new Client IDs.
API Usage
The API Usage tab on the CIPP-API page holds the API Egress card, which shows how much data this instance has served and which endpoints served it. Use the 24h, 3d and 7d toggle in the card header to set the trend window.
Daily total
A gauge shows today's API client egress against the instance's daily cap. It turns amber at 80% and red once the cap is reached, at which point further API client requests are turned away with a 429 response and the card shows how many were refused today. Where no cap is set, the card shows today's total on its own. Below the gauge, a separate line gives today's traffic from signed-in users, which is shown for information only and never counts towards the cap.
If an API client has received 50 MB or more today with 80% or more of its requests uncompressed, a warning above the gauge names it. Uncompressed responses use the cap 5 to 10 times faster; see Response Compression for how to have the client ask for compressed responses.
Trend
A stacked chart shows each API client's egress over the selected window. Hover over a point to see the endpoints that served the most data in that interval.
Top endpoints today
A table of today's endpoints, ordered by the data they served. Use Breakdown for to switch between All API clients, a single API client, and Signed-in users (not capped). The same choice applies to Top caller IPs today below. Graph requests are grouped by resource with IDs removed, so requests for different users' group memberships count as one endpoint, and MCP traffic is grouped by tool.
Endpoint
The endpoint or MCP tool.
Egress
Data served by this endpoint today.
Requests
Number of requests today.
AvgSize
Average response size.
MaxSize
Largest single response.
Cache Hit %
Share of requests answered from cache.
Encoding
The share of requests whose responses were sent Brotli compressed (br), gzip compressed (gzip), or uncompressed (none). Shows - for traffic recorded before compression was tracked.
Errors
Requests that returned an error.
Shed
Requests turned away because the daily cap had been reached.
Top caller IPs today
A table of the IP addresses that made today's requests, ordered by the data served to them, for the source chosen in Breakdown for. Use it to spot an automation or a single machine pulling far more data than expected.
IP
The address the requests came from.
Egress
Data served to this address today.
Requests
Number of requests today.
Encoding
The share of requests sent Brotli compressed, gzip compressed, or uncompressed, as in the endpoints table.
Errors
Requests that returned an error.
Shed
Requests turned away because the daily cap had been reached.
The API Client table on the Settings tab also has an Egress Today column with each client's own total for today. It shows - for a client with no recorded traffic, or where accounting isn't enabled.
Using an API Client
After creating your first API client, the page will update to include additional information that is necessary for your automation:
Token URL: This URL is what you will need when authenticating your automation to your CIPP instance. See Setup & Authentication for more information.
Tenant ID: This is the tenant ID for the tenant used to authenticate CIPP where your CIPP service account lives, this may take 5-15 minutes before it updates from when you create your first API client and press save.
API URL: This will be the base URL required for all post-authenticated calls. Note that most automation tools will require you to append
/apito this base URL for successful responses.
Disabling an API Client
Navigate to CIPP > Integrations and click on CIPP-API.
Find the API client in the table and click on the 3 dots in the Actions column > Edit.
Flip the Enabled switch off and click Submit.
At the top of the page, go to Actions and click Save to Azure.
Rotating Secrets
Navigate to CIPP > Integrations and click on CIPP-API.
Find the API client in the table and click on the 3 dots in the Actions column > Reset Application Secret.
Copy the new Secret to a secure location.
Troubleshooting
If you are getting permission errors when creating an API Client, check the CIPP-SAM application to ensure the permissions listed in the error are added and consented by an admin.
If you have multiple CIPP-SAM apps, use the Permissions Check to figure out which one you're using.
CIPP MCP
The CIPP MCP allows you to add CIPP to any AI you use and immediately talk to it in natural language. For example, you can ask "List all tenants with unassigned licences" or "list all users for tenant MySpecialTenant.com". To set up the MCP, follow these instructions:
Create the MCP API Client
Open the CIPP-API & MCP page and Create New Client (or edit an existing one). Set:
Role
Readonly (recommended), or a custom read role. Only applies when something calls with this client's own ID and secret and no user signs in (client credentials). Connectors that sign a user in run with that user's own CIPP role.
IP range
Any. The connector calls in from your AI provider's servers, so you can't pin it to your office IPs.
Enable this client
On
MCP Access Allowed
On
Save to Azure
Click Actions → Save to Azure. This does all the Entra/Azure configuration for you automatically, including the callback URLs of the AI providers CIPP supports out of the box:
Claude (
claude.aiandclaude.comfor legacy purposes)ChatGPT connectors
Visual Studio Code / GitHub Copilot Chat
Copilot Studio and Microsoft 365 Copilot agents
Local desktop and CLI clients, via a loopback callback
The instance restarts. Give it up to ~60 seconds before connecting. For AI providers CIPP doesn't list, and how the two-app model and Conditional Access work, see the collapsible sections after these steps.
Add the Connector in Your LLM
Add CIPP as a custom connector in your AI and give it the MCP URL. That's all you need: no client ID and no secret. The URL is https://<your-cipp-api-url>/api/ExecMCP and can be found on the API page.
Click Connect. You'll be redirected to your normal Microsoft / CIPP sign-in, so log in and approve. Your LLM completes the connection and CIPP's read tools appear. The connector acts as you: every call runs with your own CIPP role, so each person who connects needs a CIPP role that covers the tools they use.
If you have more than one MCP client enabled, add ?client=<client-id> to the URL (for example https://<your-cipp-api-url>/api/ExecMCP?client=<client-id>) so the connector signs in as that specific client. With a single MCP client the bare URL is fine. CIPP shows the exact per-client URL on the MCP tab of the CIPP-API integration.
Copilot Studio and Microsoft 365 Copilot Agents
Copilot Studio (and Microsoft 365 Copilot agents) is the one supported client that can't use the automatic, no-client-ID/no-secret flow above. The Power Platform connector behind Copilot Studio signs in as a confidential client with a client secret, which Microsoft Entra requires you to wire up by hand. It signs in as the MCP client app (the API client you flagged MCP Access), and CIPP pre-registers the callback for you when you run Save to Azure. You just supply the client ID, secret, and scopes in Copilot Studio's wizard.
Add the MCP server in Copilot Studio
In your agent: Tools → Add a tool → Model Context Protocol. Set:
Server name / description
Anything descriptive. The description drives whether the agent picks the tools, so write it like an API docstring.
Streamable endpoint (Server URL)
https://<your-cipp-api-url>/api/ExecMCP
Authentication
OAuth 2.0 → Manual
Fill the Manual OAuth fields
Client ID
The MCP client's Application (Client) ID (the API client flagged MCP Access).
Client secret
That client's secret, not blank. Copilot Studio is a confidential client.
Authorization URL
https://login.microsoftonline.com/<tenant-id>/oauth2/v2.0/authorize
Token URL
https://login.microsoftonline.com/<tenant-id>/oauth2/v2.0/token
Refresh URL
Same as the Token URL.
Scopes
https://<cipp-backend-host>/user_impersonation offline_access openid profile
<tenant-id>is your CIPP tenant ID (shown on the CIPP-API page).<cipp-backend-host>is CIPP's backend host: the…azurewebsites.netApplication ID URI shown under Expose an API on the CIPP-MCP resource app registration. It's the host in thescope=of the sign-in challenge, not your vanitycipp.appdomain.
Save, then close the redirect loop
Click Create / Save. Copilot Studio generates a Redirect / callback URL.
If it's
https://global.consent.azure-apim.net/redirect, CIPP already registered it on the MCP client app during Save to Azure, so there is nothing to do.If Copilot Studio shows a different (per-connector) URL, add it on the API Clients page → MCP tab: in that client's section, paste it into the Web callbacks box and Save Redirect URIs. (In Azure instead: your MCP client app → Authentication → Add a platform → Web → paste it → Configure / Save.)
Scoping Copilot Tool Imports
CIPP advertises a small, fixed set of core tools rather than its whole catalogue. Older versions advertised every read-only endpoint at once, which pushes a client with a tool cap, Microsoft Copilot among them, past what it can import. If your connector still imports a long list of tools, recreate it against the current MCP URL.
Nothing is lost by that. The full read-only catalogue stays reachable through the core tools: your AI searches the catalogue, reads the schema of the tool it wants, and runs it.
To scope a connector further, add a query string to the MCP URL. The query is not part of the OAuth resource, so one CIPP instance can back several connectors, each scoped differently, with no extra Entra setup.
?tags=Identity,Exchange
Only tools in those top-level CIPP categories.
?tools=ListUsers,ListGroups
An explicit allow list of tool names.
?first=70
Caps the catalogue at the first 70 tools. ?limit=70 does the same.
Pre Version 7.1 Self-Hosted Deployments
Assign the “Contributor” Role to the Function App
If you're self-hosting and running your own Azure Function App, you'll need to grant it proper access:
Go to Azure Portal.
Feature Requests / Ideas
We value your feedback and ideas. Please raise any feature requests on GitHub.
Last updated
Was this helpful?

