AWS MCP server OAuth, SSO and audit logging for organizations

Whether the AWS MCP Server meets an enterprise SSO, admin control and audit logging requirement, which parts are built in, and what an organization must configure or cover itself.

On this page

Does the AWS MCP server support SSO and audit logging for an organization?

Yes, the AWS MCP Server signs users in through OAuth using AWS Sign-in, and that sign-in can route through IAM Identity Center or a federated provider such as Okta or Ping. All API calls made through the server are logged by CloudTrail, and CloudWatch metrics are available. The supplied facts describe no separate paid edition of the server itself. It is available at no additional charge, so the costs an organization carries are the AWS resources its agents use, along with the identity and logging services it configures around them. Confirm with your AWS account team whether any of those supporting services carry charges in your accounts and Regions.

SSO is not switched on by the server alone. The IAM principal used for the interactive flow needs the signin:AuthorizeOAuth2Access and signin:CreateOAuth2Token actions, which the managed policy AWSMCPSignInOAuthAccessPolicy provides. Reviewers should then decide which clients and flows are allowed, using the signin:OAuthClientId, signin:OAuthRedirectUri and signin:OAuthGrantType keys in IAM policies and SCPs. Access tokens last one hour and refresh tokens up to 12 hours, and headless agents using the client credentials flow receive no refresh token. Check how your identity provider's session length and offboarding interact with those token lifetimes.

Audit logging is also a configuration task. Confirm that CloudTrail is enabled in every account and Region where agents operate, that the trail is protected from tampering, and that someone can attribute each call to a named user or workload. Ask AWS which identity fields appear in those records for OAuth and client credentials sessions. Gaps to confirm before approval include whether a headless agent can be traced to a specific owner, how long your organization retains the logs, and whether the managed flows meet your identity provider requirements. The AWS MCP Server setup guide is the next read for the sign-in options.

Which sign-in, admin and logging controls are built in for the AWS MCP server

This table compares each sign-in, admin and logging control for the AWS MCP Server and states whether it is built in, supported as an option, or stated by AWS. Read the status column first, then the dependency column to see what the admin must configure before the control works. Items marked to confirm need a direct answer from AWS before approval.

CapabilityStatusWhat it depends on
OAuth through AWS Sign-inBuilt inAWS Sign-in acts as the OAuth authorization server and issues scoped bearer access tokens; the IAM principal needs the signin:AuthorizeOAuth2Access and signin:CreateOAuth2Token actions
Authorization code with PKCE for interactive useBuilt inThe interactive user flow; access tokens are valid for 1 hour and refresh tokens for up to 12 hours
IAM Identity Center sign-in in the interactive flowSupportedUsers sign in through IAM Identity Center as part of the authorization code flow; confirm the configuration with your Identity Center setup
Federation through third-party providers such as Okta or PingSupported through AWS Sign-inDepends on the identity provider federated into AWS Sign-in; confirm the supported providers and setup steps with AWS
Client credentials flow for headless agentsSupportedUsed by non-interactive agents; issues no refresh token, so the agent must obtain a new token when the access token expires
SigV4 request signing through the MCP Proxy for AWSSupported as the alternative sign-in methodRequires the MCP Proxy for AWS and IAM credentials; AWS lists it beside OAuth as one of the two sign-in methods
Restriction of approved clients, redirect URIs and grant typesBuilt in, configured by the adminsignin:OAuthClientId, signin:OAuthRedirectUri and signin:OAuthGrantType condition keys in IAM policies and service control policies
CloudTrail logging of API calls through the serverStated by AWSAWS says all API calls through the server are logged by CloudTrail; confirm which events and fields your trail records
CloudWatch metricsStated by AWSAWS says CloudWatch metrics are available for the server; confirm the metric names and retention in your account
Paid edition with extra SSO or audit featuresTo confirm with AWSNo separate edition is named in the supplied guidance; the server is offered at no additional charge, so ask AWS whether any feature depends on an paid AWS service

How AWS Sign-in, IAM and CloudTrail split the work in the AWS MCP server

Four components share the work in this setup, and a reviewer should be able to name each one. The MCP client (the AI tool the staff member runs) starts the sign-in. AWS Sign-in acts as the OAuth authorization server, and it issues scoped access tokens. The managed AWS MCP Server endpoint accepts those tokens as bearer tokens, and the endpoint for us-east-1 is The fourth component is the IAM principal that signs in. That principal must hold the signin:AuthorizeOAuth2Access and signin:CreateOAuth2Token actions, which the AWS managed policy AWSMCPSignInOAuthAccessPolicy` provides. Confirm with your AWS account team whether your organization should attach that managed policy or write a narrower custom policy with the same actions.

Token lifetimes shape how often a session must be re-authorized. Per the AWS user guide, access tokens are valid for 1 hour and refresh tokens for up to 12 hours. The client credentials flow used by headless agents issues no refresh token, so a headless agent needs a new token grant once the access token expires. Ask your platform team which flow each agent uses and how long a laptop session can stay signed in after the employee leaves or changes role.

Access rules and audit trails live in different places. Admins restrict which clients, redirect URIs and grant types are allowed with the signin:OAuthClientId, signin:OAuthRedirectUri and signin:OAuthGrantType condition keys in IAM policies and service control policies (SCPs). Those are the enforcement points, so review them before you approve the first client. AWS MCP Server IAM documentation lists the supported keys. AWS states that all API calls made through the server are logged in CloudTrail, with CloudWatch metrics available, so your logging team should confirm that the trail covers the regions and accounts in scope.

How an agent signs in and reaches AWS through the AWS MCP Server

This illustrative flow starts with either a person signing in interactively or a headless agent using client credentials. AWS Sign-in acts as the OAuth authorization server and issues a scoped access token, which the MCP client presents as a bearer token to the managed AWS MCP Server endpoint. Before any AWS API call runs, IAM and SCP policy evaluation decides what the principal may do, and CloudTrail records the resulting call. Check the sign-in path, the OAuth condition keys and whether the trail captures each call.

Illustrative flow showing interactive and client credentials sign-in paths to CloudTrail logging.

Decisions an organization makes before approving SSO and admin controls

Before approving the AWS MCP Server, an organization settles who signs in, how headless agents authenticate, which OAuth clients and grant types are allowed, which IAM principal the agent uses, and which server build is approved. Each decision changes what an admin can enforce and what CloudTrail records, so they should be made in writing before rollout.

Identity path for sign-in

Choose whether staff sign in with IAM users, IAM Identity Center, or a federated provider such as Okta or Ping. AWS Sign-in is the OAuth authorization server for the AWS MCP Server, so the identity path decides which directory, MFA policy and offboarding process govern each agent session. Confirm that the chosen path matches how your organization already disables accounts and enforces multi-factor authentication for AWS access.

OAuth 2.1 authentication docs

Interactive OAuth or client credentials

Interactive use runs the authorization code flow with PKCE, where a person signs in and the token reflects that person. Headless agents can use the client credentials flow, which issues no refresh token, so the agent holds a credential tied to a workload rather than a user. Decide per use case which pattern applies, and document who owns the credential when an automated agent runs without a human present.

Access token validity
1 hour

Approved OAuth clients and redirect URIs

Admins can restrict OAuth with the signin:OAuthClientId and signin:OAuthRedirectUri condition keys in IAM policies and service control policies. Only clients you approve, and redirect URIs you trust, should be allowed to obtain tokens. Build the approved list from the actual clients in use, then test that an unlisted client is refused before you tell staff the connection is approved.

IAM integration docs

Allowed OAuth grant types

The signin:OAuthGrantType condition key controls which flows a principal or organization may use. If headless agents do not need client credentials, deny that grant type so a leaked client secret cannot mint tokens. If interactive sign-in is the only approved path, restricting the grant type to the authorization code flow keeps the policy aligned with the sign-in pattern your reviewers approved.

IAM principal and its scope

The IAM principal that receives the signin:AuthorizeOAuth2Access and signin:CreateOAuth2Token actions determines what the agent can reach through AWS. The AWS managed policy AWSMCPSignInOAuthAccessPolicy grants those sign-in actions, but it does not limit the AWS resources the agent can then call. Scope the principal to the accounts, services and actions the use case needs, and avoid reusing a broad administrator role for agent sessions.

Official server or community server

The aws/agent-toolkit-for-aws repository is the official, AWS-supported source for MCP servers, skills and plugins. The awslabs/mcp repository is a separate Apache-2.0 collection of AWS Labs servers, so your organization owns its review, pinning, patching and support decisions for it. Approve one source as the default, and record the reason before any team installs a community server next to the managed endpoint.

awslabs/mcp repository

How the sign-in answer changes by identity provider, team size and data sensitivity

AWS Sign-in acts as the OAuth authorization server for the AWS MCP Server, so the identity path you choose determines who approves access and where sessions end. The interactive flow supports IAM users, IAM Identity Center sign-in and federation through third-party providers such as Okta or Ping. Read the OAuth 2.1 authentication guide for the exact flow.

  • IAM Identity Center: Users sign in with the workforce directory you already run. The principal still needs signin:AuthorizeOAuth2Access and signin:CreateOAuth2Token, which the AWS managed policy AWSMCPSignInOAuthAccessPolicy provides.
  • Okta or Ping federation: Confirm whether the identity reaches AWS through Identity Center or directly, and who owns MFA, session length and deprovisioning in that provider.
  • IAM users: Long-lived user credentials sit outside your central lifecycle, so ask whether this path is limited to named exceptions.
  • Sign-in restriction: Use signin:OAuthClientId, signin:OAuthRedirectUri and signin:OAuthGrantType in IAM policies or SCPs to fix which clients, redirect URIs and flows each identity path can use.

Confirm which system holds the authoritative offboarding step, then test that a removed user cannot obtain a new token.

Where the AWS MCP server leaves gaps for SSO and audit requirements

The supplied AWS documentation covers OAuth, IAM controls and CloudTrail logging, but it does not settle every question an SSO or audit review will ask. The cards below name each gap, the reason it matters, and the usual way to close it before an agent reaches production data.

Confirm SSO entitlement with AWS

The supported sign-in paths are OAuth through AWS Sign-in and SigV4 through the MCP Proxy for AWS. The supplied facts do not describe a separate SSO or audit feature tier for the AWS MCP Server, so the reviewer should not assume that IAM Identity Center sign-in carries extra controls. Ask AWS in writing which features apply to the account and Region in use, and record the answer in the approval file.

OAuth 2.1 docs

Verify the OAuth client in CloudTrail

AWS states that all API calls through the server are logged by CloudTrail. A security reviewer still needs to confirm that each logged call identifies the OAuth client and the signed-in principal, so that one agent session can be traced to one person and one approved client. Run a controlled test call, pull the event, and check which identity fields appear before the rollout is approved.

Plan around fixed token lifetimes

Access tokens are valid for 1 hour and refresh tokens for up to 12 hours, and the client credentials flow for headless agents issues no refresh token. The supplied facts do not show a customer setting that shortens these lifetimes. Where policy requires shorter sessions, the reviewer should record that gap, ask AWS whether a setting exists, and document compensating controls such as revoking the approved client.

Decide on cross-Region data flow

The server is generally available in US East (N. Virginia) and Europe (Frankfurt). A team with data residency commitments should decide which Region an agent may call, document that choice, and confirm that the endpoint in use matches it. The endpoint for us-east-1 is listed in the AWS user guide, and each Region's endpoint should be checked against the policy before rollout.

Generally available at launch
2 Regions

Keep community servers out of scope

The aws/agent-toolkit-for-aws repository is the official, AWS-supported source. The awslabs/mcp repository is a separate open-source collection under Apache-2.0. Community servers from that collection are not covered by the AWS MCP Server controls described here, so the approval should name the exact server, and any other MCP server should go through its own review before agents use it.

awslabs/mcp repository

Own log retention and alerting

CloudTrail records are only useful if they are kept and watched. Retention periods, trail configuration, log storage location and alert rules are set in the customer's own AWS accounts, not by AWS on the customer's behalf. Before go-live, confirm which trail captures the calls, how long the logs are kept under the organization's policy, who can read or change them, and which events trigger an alert to the security team.

Rollout order for AWS MCP server sign-in and admin controls

This sequence moves the AWS MCP Server from a pilot to a governed rollout by confirming who can sign in, which OAuth clients are approved, what the principals may do, and what CloudTrail records. It ends with a dated evidence file that a security reviewer can check before staff connect agents broadly.

  1. Confirm the identity path and IAM principals

    Identity and cloud administrators decide whether people sign in with IAM users, IAM Identity Center or a third-party provider such as Okta or Ping, and list which IAM principals will hold the signin:AuthorizeOAuth2Access and signin:CreateOAuth2Token actions. The AWS managed policy AWSMCPSignInOAuthAccessPolicy provides those actions, so confirm whether your team will attach it directly or copy its actions into a narrower customer managed policy. Done means each principal has a named owner and a documented sign-in path, and no principal holds the actions by accident through a broader group.

  2. Define approved clients, redirect URIs and grant types

    Security engineers write the condition keys that limit OAuth use: signin:OAuthClientId for approved clients, signin:OAuthRedirectUri for trusted redirect URIs and signin:OAuthGrantType for allowed flows. Choose whether interactive authorization code with PKCE, the client credentials flow for headless agents, or both are permitted, because the client credentials flow issues no refresh token. Done means a written allowlist exists for every client, redirect address and grant type, and each entry has a business owner who approved it.

  3. Restrict permissions and apply SCP guardrails

    Cloud governance staff attach the condition keys to IAM policies and, where the organization uses AWS Organizations, to service control policies so that member accounts cannot widen the OAuth settings. Review what the principals can do through the tools the server exposes, including the script runner and pre-signed S3 URL generation, and remove permissions that the use case does not need. Done means a policy review shows the restrictions are in effect in a test account and in the target account, and the SCP attachment is recorded.

  4. Confirm CloudTrail captures calls and client identity

    Logging owners confirm that CloudTrail records the API calls made through the AWS MCP Server and that the entries identify the calling principal and the OAuth client in use. Check that trails cover the Regions where the server runs, that logs are delivered to a central account or bucket with access restricted, and that the retention period meets your policy. Also confirm that CloudWatch metrics are visible to the team that watches for unusual activity. Done means a test call appears in the log store with the expected identity fields.

  5. Test interactive sign-in and headless client credentials

    Test engineers run one interactive sign-in through the authorization code with PKCE flow and one headless run through the client credentials flow, using a pilot group. Confirm that an unapproved client, an unlisted redirect URI and a disallowed grant type are each refused, and that access tokens expire as documented. Verify that the headless path works only for the principal and client intended for automation. Done means each test has a recorded result, including the refusals, and any failure is closed or accepted by the owner.

  6. Record evidence before broad rollout

    The security owner assembles a dated evidence file with the principal list, the approved client and redirect allowlist, the policy and SCP versions, the CloudTrail configuration and the test results. The file is reviewed by identity, security and the business owner, who sign off before any group outside the pilot receives access. Ask the same questions of any partner doing this work, and confirm the final review date and owner in writing. Done means the evidence file is stored where auditors and reviewers can access it, and the rollout is approved in writing.

What a security reviewer asks to see for AWS MCP server sign-in and logging

This table lists the evidence a security reviewer should request for OAuth, identity, guardrails and logging on the AWS MCP Server, with what each item shows and where it comes from. Read each row as a question to answer from the customer's own AWS account and identity provider, not from vendor documentation alone. The main takeaway is that sign-in limits, token lifetimes and audit trails each need separate proof.

Evidence requestWhat it showsWhere it comes from
IAM policy granting signin:AuthorizeOAuth2Access and signin:CreateOAuth2TokenWhich principals can start the OAuth flow and mint tokens for the server. Confirm whether the AWS managed policy AWSMCPSignInOAuthAccessPolicy is attached or whether a custom policy grants the same actions.IAM console or policy export for each user, role or group that connects agents
Condition keys limiting OAuth clientsWhether signin:OAuthClientId restricts sign-in to approved clients only, so unknown agent software cannot obtain tokens.IAM policies and SCPs, checked against the client list the organization approved
Condition keys limiting redirect URIs and grant typesWhether signin:OAuthRedirectUri limits where authorization codes can be sent and whether signin:OAuthGrantType limits flows, such as blocking client credentials for interactive users.IAM policies and SCPs, with a test showing a non-approved redirect or grant is refused
SCP guardrails across accountsWhether an organization-level service control policy blocks OAuth sign-in actions in accounts that should not use agents, and cannot be overridden by account administrators.AWS Organizations SCP list, attachment map per organizational unit and a sample denied request
Identity provider configuration for sign-inWhich sign-in path is used: IAM users, IAM Identity Center, or a third-party provider such as Okta or Ping through federation. Confirm MFA, session length and group mapping in that provider.IAM Identity Center or federation settings, plus the identity provider's application and policy configuration
Token lifetime settings as documented by AWSAccess tokens are documented as valid for 1 hour and refresh tokens for up to 12 hours, and the client credentials flow issues no refresh token. Confirm these match what the team observes and that headless agent credentials are rotated.AWS user guide for OAuth 2.1 authentication, plus token behavior tested in a non-production account
CloudTrail trail covering the server's API callsWhether a trail records the API calls made through the server, with the principal identity needed to attribute each action. Confirm the trail is multi-region, delivered to a protected log store and retained per policy.CloudTrail trail configuration, event history export and log file integrity settings in the account
CloudWatch metrics for server activityWhether usage and error metrics are available for monitoring unusual volume or repeated denied sign-ins. Confirm alarms exist and who receives them.CloudWatch metric namespace for the server, alarm definitions and notification targets

Questions buyers and reviewers ask about AWS MCP server SSO, cost and effort

Does using SSO with the AWS MCP Server cost extra?

The AWS MCP Server itself is available at no additional charge, according to AWS's general availability announcement, and customers pay only for the AWS resources their agents use. Sign-in through AWS Sign-in and IAM Identity Center is part of the AWS-native setup, so no separate AWS server fee applies. Your identity provider, such as Okta or Entra ID, is licensed by its vendor under your existing contract, and that licensing is not covered by the supplied facts. Ask your identity provider account team whether any SSO features you need carry extra licensing, and ask AWS to confirm in writing how charges appear on your bill for agent activity.

How much effort does AWS MCP Server SSO configuration take?

Effort depends mostly on three things: how many MCP clients you must approve, which identity provider you federate, and how mature your existing IAM and service control policy design is. A small set of approved clients with IAM Identity Center already in place is a narrow job. Many clients, several identity providers or a loosely structured IAM model adds policy design, testing and review time. Because no duration is supplied for this work, ask any partner or internal team to break the effort into policy design, client approval, identity provider setup, logging validation and security review, and to tie each step to a written scope.

Can our team configure the AWS MCP Server OAuth setup alone?

Yes, for the AWS-native parts, a team with IAM and identity administration skills can usually do the work without outside help. The principal needs the signin:AuthorizeOAuth2Access and signin:CreateOAuth2Token actions, which the AWS managed policy AWSMCPSignInOAuthAccessPolicy provides, and admins can restrict clients with signin:OAuthClientId, signin:OAuthRedirectUri and signin:OAuthGrantType. Even when your own team does the build, have a second reviewer check the policies, especially the conditions that limit approved clients and grant types, before any agent reaches production data. DeployOpen can run a security review of the finished setup if you want an independent check.

Which people must be involved in an AWS MCP Server rollout?

A rollout usually needs four groups working from a shared plan:

  • AWS account owners, who confirm the account structure, Regions and any service control policies
  • IAM administrators, who write the policies, condition keys and approved client lists
  • Identity provider administrators, who connect IAM Identity Center or a third-party provider and manage user groups
  • Security and compliance reviewers, who approve the allowed actions, the logging setup and the retention of audit records

Assign one owner for the approved client list, since that list controls which tools staff can reach. Confirm early which of these roles sit in your organization and which need an outside partner.

Does the AWS MCP Server support SigV4 if OAuth is not possible?

Yes, the AWS MCP Server supports two sign-in methods: OAuth through AWS Sign-in, or SigV4 request signing through the MCP Proxy for AWS. Use SigV4 when a client cannot complete the OAuth flow, but review that path separately, because it relies on IAM credentials that must be issued, rotated and scoped like any other workload identity. Confirm with your AWS account team which client types your staff tools support before you choose a method, and document the reason for each choice in your approval record.

How do we confirm entitlements and logging with AWS before approval?

Before approval, put your questions to AWS in writing and keep the answers in your security file. Ask AWS to confirm the Regions where the server is offered for your account, the charges that apply to agent activity, and the exact CloudTrail events that record calls through the server. AWS states that all API calls through the server are logged by CloudTrail and that CloudWatch metrics are available, so test that claim in a non-production account by making a sample call and checking the trail yourself. Also confirm which IAM condition keys your identity provider flow can evaluate, so your policy design matches real behavior. The AWS setup guide is the natural starting point for these checks.

What changes the cost and effort of an AWS MCP Server rollout?

The main cost drivers are the scope of the work and the amount of outside review you need, not a server fee. Agent usage drives the AWS resource charges, so limit the tools and accounts an agent can reach to keep those charges predictable. Effort rises with the number of approved clients, the number of identity providers, the complexity of your existing service control policies and the depth of the logging and retention review. When you request a quote from any partner, ask for a fixed scope in writing, the deliverables, the roles each party fills and the retest steps, so you can compare proposals on the same basis.

How DeployOpen helps teams approve AWS MCP server access

DeployOpen plans, implements, tests and documents the controls an organization needs before staff connect AI agents to the AWS MCP Server. The work covers the OAuth and SSO setup, the IAM and admin guardrails, and the CloudTrail evidence that security and compliance reviewers ask for, delivered inside the client's own AWS accounts.

How we scope

  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
  • The written scope names which AI clients, identity providers and IAM principals are in and out of the review.
  • We confirm which AWS MCP Server sign-in path applies: OAuth through AWS Sign-in or SigV4 through the MCP Proxy for AWS.
  • The scope lists the admin condition keys and CloudTrail evidence the client wants reviewed before approval.

How we build

  • We configure AWS Sign-in OAuth, IAM Identity Center sign-in or federation through the client's identity provider.
  • We set signin:OAuthClientId, signin:OAuthRedirectUri and signin:OAuthGrantType restrictions in IAM policies and SCPs.
  • We test how the setup handles approved clients, trusted redirect URIs and the client credentials flow used by headless agents.
  • We check that CloudTrail records and CloudWatch metrics reach the logging destinations the client's security team monitors.

How we hand over

  • Findings report covers each control tested, the gap found, the fix applied and the residual risk for the approver.
  • Documentation records the sign-in, token lifetime, admin policy and logging configuration for security and compliance review.
  • A retest confirms that fixes hold, and the client receives the evidence set in the agreed format.
  • Official AWS sources and the awslabs/mcp repository are separated in the handover so approvers know which server they are reviewing.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers when AWS changes the server or policies.
  • Retainers can cover periodic review of IAM policies, SCPs and CloudTrail retention as the number of connected clients grows.
  • Support can be scoped to re-test the setup after new AI clients, new Regions or new identity providers are added.
  • Questions about quotes, costs and retainer terms are answered from the written scope rather than a published price list.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.