Material MCP Server
Why use the Material MCP?
The Material MCP server enables you to connect AI clients like Claude, Codex, and Cursor to Material. It lets you query your data in Material in plain language without leaving your AI workspace.
Use it to investigate threats, pull account and message context, manage trusted entities, review OAuth apps, manage accounts, groups, and roles, combine Material data with signals from the rest of your stack, and design your own workflows and uses entirely!
What the Material MCP is best for:
Investigating security incidents (for example, "show me open email threat issues" or "look up a user's email threat history")
Contextualizing threats across your stack: combine Material with logging, threat intel, infrastructure, vulnerability, or other data
Streamlining security workflows: natural language instead of manual console navigation or API calls
Targeted AI triage: feed flagged or high-signal emails to an AI without pulling everything
Before you begin
To use the Material MCP, you need an account with an AI client that supports MCP, which nearly all do. Material provides documentation for many AI clients below.
You can connect in one of two ways:
OAuth (recommended): authorize the connection and let the OAuth protocol handle token management and refresh
API token: generate a static token in Material and provide it to your AI client. Use this when your AI client doesn't support OAuth.
How to connect
One: Enable the MCP Server
From the top tool bar, click Integrations.
From the left navigation, expand API and MCP then click Settings.
Toggle the MCP Server to On then Save.

Two: Connect your AI tool
Connect with OAuth
Start here. OAuth is the recommended way to connect: each person authorizes with their own Material account, and token issuing and refresh are handled for you, so there's no long-lived secret to store or rotate.
From the top toolbar, click Integrations.
Expand API and MCP, then click Tokens and MCP Connections.
Click Connect to MCP to open the setup dialog.
Select your AI client to see setup instructions tailored to it, then sign in to authorize the connection.

Connect with an API token
Use an API token when your AI client doesn't support OAuth, or when you'd rather manage a long-lived token yourself. Use the per-client steps below or follow the in-product guidance.
Rolling out to a team
Everyone connects with their own credentials. There's no shared organization-wide token, and each connection is tied to one Material account, whether that person authorizes with OAuth or uses an API token they created themselves.
To roll the MCP server out across a team:
Enable the MCP server for your organization, following One: Enable the MCP Server above.
Confirm your AI provider allows the connection. On Claude Team and Enterprise plans, an Owner has to add Material as a custom connector first. See Before you begin above.
Have each person connect their own AI client, following Two: Connect your AI tool above. Use OAuth unless a client doesn't support it.
Available tools
The Material MCP gives your AI client access to the following tools.
Issues and messages
List issues: retrieve a filtered list of issues, such as all open high-severity issues or issues from a specific sender
Get issue: retrieve the full details of a single issue
Update issue: update the status, severity, or assignee on an issue, or take remediation actions like deleting messages, adding warning banners, or redirecting links and attachments
Get message: retrieve the full details of a single email message associated with an issue
Trusted entities
List trusted entities: review the domains, email addresses, and IP addresses or CIDR ranges your instance trusts
Get trusted entity: retrieve a single trusted entity and its settings
Create trusted entity: add a new trusted entity
Update trusted entity: change a trusted entity's settings, such as disabling it
Delete trusted entity: remove a trusted entity you've added
Accounts, groups, and roles
List accounts: retrieve a filtered list of the accounts synced from Google or Microsoft, narrowed by details like name, email, VIP designation, license, group, or role
Get account: retrieve a single account, including its VIP designation, licenses, effective settings and where each value comes from, mailbox state, and role assignments
Update account: change an account's VIP designation, licenses, per-account setting overrides, and role assignments
List groups: retrieve a filtered list of the groups synced from your provider, narrowed by details like name, email, type, or role
Get group: retrieve a single group, including its member count, licenses, the roles it grants its members, and effective settings
List group members: retrieve the accounts that belong to a group
Update group: change a group's licenses, per-group setting overrides, and the roles it grants its members
List roles: review the roles you can assign to accounts and groups on your instance
OAuth apps
List OAuth apps: retrieve a filtered list of the third-party OAuth apps holding token grants in your Google Workspace tenant, narrowed by details like classification or remediation policy
Get OAuth app: retrieve a single app, including its granted scopes, brand details, classification, and standing remediation policy
List OAuth app accounts: retrieve the accounts that have granted an app, each with the scopes that account granted
Update OAuth app: change an app's classification and standing remediation policy
Revoke an account's grant: revoke one account's grant of an app
Example prompts to get started
Here's what usage of the Material MCP server looks like in some common AI clients:


Try these prompts to get started, or use them as a starting point for your own:
Rate limiting
The Material MCP server is rate limited separately from the v1 API. If you reach the limit, the server returns HTTP 429 with a Retry-After header giving the number of seconds to wait, along with a JSON-RPC error whose code is also 429. Your AI client can use these to recognize the limit, wait, and retry on its own, so requests resume after a short wait.
Troubleshooting
If these troubleshooting sections don't resolve your issue, or you are unable to connect to the Material MCP server from your preferred AI client, contact Support. We're happy to help.
Last updated
Was this helpful?











