Yaw Labs AWS MCP

v2.7.5
io.github.YawLabs/aws-mcp Checked 3 hours ago Published 1 day ago

AWS MCP server — call any AWS API from AI assistants, with first-class SSO re-login

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

aws_whoami

Show the current AWS identity (account, role ARN, user ID) plus SSO token status and time remaining. Use this first to verify auth before running other AWS operations. Returns a structured fix-it message if SSO is expired.

ParameterTypeDescription
profilestringAWS profile name. Defaults to $AWS_PROFILE or 'default'.
regionstringAWS region. Defaults to $AWS_REGION or us-east-1.

aws_login_start

Start an AWS SSO login via the device-code flow (no browser spawned from this process). Returns a verification URL and short code -- surface these to the user so they can open the URL in their own browser and paste the code. After they auth, call aws_login_complete with the returned sessionId to confirm completion. For a user with NO profile yet, pass ssoSession plus startUrl and ssoRegion instead of profile: this writes a managed [sso-session] block to the AWS config file (never touching one the user wrote) and logs in to IAM Identity Center directly; then use aws_sso_list_assignments and aws…

ParameterTypeDescription
profilestringAWS profile configured for SSO. Defaults to $AWS_PROFILE or 'default'. Mutually exclusive with ssoSession.
ssoRegionstringRegion of the Identity Center instance, e.g. us-east-1. Only with ssoSession.
ssoSessionstringLog in to an IAM Identity Center sso-session directly, without any profile. Use with startUrl + ssoRegion to create the [sso-session] block on first use; omit them to log in to an existing block.
startUrlstringIdentity Center start URL (https://...). Only with ssoSession.

aws_login_complete

Block until the SSO login started by aws_login_start finishes (user completed auth in browser, or subprocess exited with error). Returns the new identity on success, or a structured error. For an ssoSession login there is no profile yet, so it returns the token status and points to aws_sso_list_assignments instead of an identity.

ParameterTypeDescription
sessionId *stringThe sessionId returned by aws_login_start.
profilestringProfile to verify identity against after login. Defaults to the profile the login was started for, else the session profile / $AWS_PROFILE / 'default'.
regionstringRegion for the post-login identity check.

aws_refresh_if_expiring_soon

Proactive SSO token check. If the cached token has fewer than `thresholdMinutes` left (default 10), this kicks off aws_login_start and returns the verification URL + code in one round-trip. If plenty of time remains, returns `status: 'ok'` with the minutes left. Use at the start of a multi-step AWS workflow to avoid mid-session expiry. `status: 'ok'` is a point-in-time reading of the cache, not a lease: nothing re-checks afterwards, so a token that lapses mid-workflow still surfaces as an sso_expired error from the next aws_call / aws_whoami. Raise `thresholdMinutes` to cover the expected leng…

ParameterTypeDescription
profilestringAWS profile configured for SSO. Defaults to $AWS_PROFILE or 'default'.
thresholdMinutesintegerTrigger refresh when the token has fewer than this many minutes left. Default 10.

aws_session_set

Set the default AWS profile and/or region for the rest of this MCP session. Subsequent calls to aws_whoami, aws_login_*, and other AWS tools will use these values unless they override explicitly. Use when the user says 'switch to prod', 'use us-west-2', 'look at the staging account', etc. Both params are optional; pass whichever changed. Returns the resulting session state.

ParameterTypeDescription
profilestringAWS profile name to use as default. Omit to leave unchanged.
regionstringAWS region to use as default (e.g. 'us-west-2'). Omit to leave unchanged.

aws_session_get

Show the current session's default AWS profile and region, and where each value came from ('session' = set by aws_session_set, 'env' = AWS_PROFILE/AWS_REGION env var, 'default' = built-in fallback). Useful for confirming state before running operations or debugging why a call hit the wrong account.

aws_session_clear

Remove session-set profile and/or region overrides so subsequent calls fall back to env vars / defaults. No args clears both. Pass `profile: true` or `region: true` to clear just one. Use when the user says 'go back to the default profile,' 'unset the region,' or 'reset session.'

ParameterTypeDescription
profilebooleanIf true, clear the session profile override. Default false.
regionbooleanIf true, clear the session region override. Default false.

aws_call

Run an arbitrary AWS API operation via the aws CLI. Use kebab-case service and operation names as in `aws help` (service='s3api', operation='list-buckets'). Pass params as a JSON object using the AWS API's PascalCase keys (e.g. {Bucket: 'foo'}); they go through --cli-input-json. Session profile/region (from aws_session_set) are used by default; override per-call when needed. Hand-written CLI commands (aws s3 cp/ls/sync, aws logs tail) and operations that stream their response to an output file (s3api get-object, bedrock-runtime invoke-model, bedrock-agentcore invoke-agent-runtime, lambda invok…

ParameterTypeDescription
operation *stringOperation name in kebab-case: 'list-buckets', 'describe-instances', 'get-caller-identity', 'put-object'.
service *stringAWS service name in kebab-case: 's3api', 'ec2', 'iam', 'lambda', 'dynamodb', 'logs', 'sts', 'cloudformation', etc.
outputFormatstringOutput format. Default 'json' (parsed into structured data when possible).
paramsobjectOperation parameters as a JSON object (AWS API schema, PascalCase keys). E.g. {Bucket: 'foo', Key: 'bar'}.
profilestringOverride session profile for this call.
querystringJMESPath expression to extract a subset of the response (passed as --query). E.g. 'Buckets[].Name', 'Reservations[].Instances[].{Id:InstanceId,State:State.Name}'. Dramatically reduces output size; rea…
regionstringOverride session region for this call.
timeoutMsintegerTimeout in milliseconds. Default 60000 (60s). Raise for slow ops; lower to fail fast.

aws_list_profiles

List AWS profiles configured in the AWS config file (AWS_CONFIG_FILE, else ~/.aws/config). Returns profile name, region, and SSO metadata (start URL, region, session name) where set, plus an `isSso` flag. Use when the user hasn't named a profile, when they ask to switch profiles, or when an SSO-expired error mentions a profile you haven't seen.

aws_sso_list_assignments

List the AWS accounts and roles an IAM Identity Center login can use, after aws_login_start + aws_login_complete with ssoSession. Read-only. Each role shows `profile`: the existing config profile that already points at it (generated or hand-written), or null. Per-account failures come back as `rolesError` while the other accounts still list. If the token is missing or expired the error says to run aws_login_start with ssoSession again. Follow with aws_sso_generate_profiles to write profiles.

ParameterTypeDescription
ssoSession *stringsso-session name logged in via aws_login_start.
accountIdsarrayOnly these 12-digit account IDs. Default: every assigned account.
includeRolesbooleanDefault true. false returns accounts only (one AWS call).

aws_sso_generate_profiles

Write [profile ...] sections into the AWS config file for IAM Identity Center account/role assignments (after aws_login_start with ssoSession). Default: every assignment, capped at 200 (the rest are returned as `dropped`); or pass `selection`. Names default to '{accountName}-{roleName}', with the account ID inserted on a clash ('prod-111111111111-Admin'). Each section carries a `managed-by: aws-mcp` marker; a section without it is never modified -- a name clash with one is reported in `skipped`. `region` is written only when a profile is created. Use dryRun to preview. Selections are checked a…

ParameterTypeDescription
ssoSession *stringsso-session name logged in via aws_login_start.
dryRunbooleanReport what would be written without touching the file.
nameTemplatestringProfile name template. Placeholders: {accountName} {accountId} {roleName} {ssoSession}. Default '{accountName}-{roleName}'.
regionstringDefault region written into each new profile. Default: the sso-session's sso_region.
selectionarrayWhich account/role pairs to write. Default: every assignment (capped at 200; pass a selection beyond that).

aws_paginate

Fetch one page of a paginated AWS list/describe operation. Takes aws_call's inputs (output is always JSON) plus `maxItems` (page size) and `startingToken` (resume cursor). Only for operations the CLI paginates: a non-paginated one (sts get-caller-identity) rejects --max-items, so call it with aws_call. When `query` is supplied it is wrapped server-side as {NextToken, items: <query>} so pagination survives a projection that would otherwise drop NextToken; the handler unwraps `items` before returning. Returns the parsed response, a `nextToken` (null when the list is exhausted), and `hasMore`. Ca…

ParameterTypeDescription
operation *stringPaginated operation: 'list-objects-v2', 'describe-instances', 'list-roles', etc.
service *stringAWS service in kebab-case: 's3api', 'ec2', 'iam', 'logs', etc.
maxItemsintegerItems per page (1-10000). Default 100. Lower this if hitting the 5 MB output cap.
paramsobjectOperation parameters (PascalCase keys) passed via --cli-input-json.
profilestringOverride session profile for this call.
querystringJMESPath expression to extract fields from each page (--query). The query is wrapped server-side as {NextToken, items: <query>} so pagination still works even when the projection drops NextToken; the…
regionstringOverride session region for this call.
startingTokenstringResume cursor from the previous call's `nextToken`. Omit for the first page.
timeoutMsintegerTimeout in milliseconds. Default 60000.

aws_assume_role

Call STS AssumeRole and stash the returned temporary credentials as a named profile in the shared credentials file ($AWS_SHARED_CREDENTIALS_FILE when set, otherwise ~/.aws/credentials; the resolved path is returned as credentialsPath). Subsequent calls to aws_call / aws_whoami / aws_paginate can use profile='mcp-<sessionName>' (or your overridden targetProfile name). The raw secret key / session token are NOT returned to the caller — only the profile name, expiration, and assumed identity. Use for cross-account access: a source profile (your SSO identity) assumes a role in another account. D…

ParameterTypeDescription
roleArn *stringTarget role ARN, e.g. 'arn:aws:iam::123456789012:role/CrossAccountAdmin'.
sessionName *stringRole session name (shows up in CloudTrail). Alphanumeric + +=,.@- only.
durationSecondsintegerSession duration in seconds (900-43200). Default 3600.
externalIdstringExternal ID (only required if the role's trust policy demands it).
regionstringRegion for the STS call. Defaults to session region / $AWS_REGION.
sourceProfilestringProfile to use as the assuming identity. Defaults to session profile / $AWS_PROFILE / 'default'.
targetProfilestringProfile name to write the temp creds under. Default 'mcp-<sessionName>'. Auto-prefixed with 'mcp-' if missing.
timeoutMsintegerTimeout in milliseconds for the underlying STS AssumeRole CLI call. Default 120000 (120s) -- gives cold-start SAML / credential_process setups headroom over runAwsCall's 60s default. Raise further for…

aws_logs_tail

Fetch the newest CloudWatch Logs events for one log group over the last `since` (default 10m), via FilterLogEvents ('aws logs filter-log-events'). Returns events oldest first as {timestamp (ISO 8601 UTC), logStreamName, message (verbatim)}; any of the three is null on an event that arrived without it, which is kept rather than dropped. At most `maxEvents` come back (default 500, max 10000); when the window held more, the OLDEST are dropped and `truncated` is true. On AWS CLI 2.35.8+ the read goes newest-first and stops once it has enough, so a busy group costs a page or two -- and a truncated…

ParameterTypeDescription
logGroupName *stringLog group name, e.g. '/aws/lambda/my-fn' or '/aws/ecs/my-service' (no leading 'logs/'). A full log-group ARN ('arn:aws:logs:us-east-1:123456789012:log-group:/aws/lambda/my-fn', with or without a trail…
filterPatternstringCloudWatch Logs filter pattern. E.g. 'ERROR', '"stack trace"', '[timestamp, request_id, level = ERROR, ...]'.
logStreamNamePrefixstringRestrict to streams with this prefix. Mutually exclusive with logStreamNames.
logStreamNamesarrayRestrict to specific stream names. Overrides the default (all streams in the group).
maxEventsintegerMaximum events to return (1-10000). Default 500. Events come back oldest-first; when the window held more than this, the OLDEST are dropped, the newest are kept and truncated=true. On AWS CLI 2.35.8+…
profilestringOverride session profile for this call.
regionstringOverride session region for this call.
sincestringWindow to tail: '<number><s|m|h|d|w>'. Default '10m'. Example: '30m', '1h', '3d'. Must be greater than zero and at most 30 days.
timeoutMsintegerTimeout in milliseconds per aws CLI call (at most two per tool call). Default 60000 (60s). Raise for large windows.

aws_logs_query

Run a CloudWatch Logs Insights query and wait for it to finish -- StartQuery, poll GetQueryResults until the query reaches a terminal status, return the rows -- in ONE call, replacing the three-step start/poll/interpret-status dance you would otherwise write with aws_call. `logGroupNames` takes 1-50 bare group names ('/aws/lambda/my-fn'); a log-group ARN is accepted and its NAME extracted, which DISCARDS the ARN's account, so a cross-account ARN queries the same-named group in your own account -- real cross-account queries need logGroupIdentifiers, which this tool does not send. An ARN whose r…

ParameterTypeDescription
logGroupNames *array1-50 log group names, e.g. ['/aws/lambda/my-fn'] -- StartQuery caps a query at 50. A full log-group ARN is accepted and its name extracted; that discards the ARN's account, so a cross-account ARN quer…
queryString *stringCloudWatch Logs Insights query, max 10000 chars. E.g. 'fields @timestamp, @message | filter @message like /ERROR/ | sort @timestamp desc | limit 20', or 'stats count(*) by bin(5m)'.
endTimestringSame forms as startTime: relative shorthand, 'now', or ISO 8601 with an explicit offset. Default 'now'.
limitintegerMaximum rows the query RETURNS (it still scans, and bills for, the whole window). Default 1000. StartQuery's own ceiling is 100000, but a single GetQueryResults call returns at most 10000 rows and the…
maxWaitMsintegerTotal time to wait for the query, in ms (range 1000-900000). Default 120000. On timeout the query is NOT stopped -- the error returns the queryId and results stay retrievable for 7 days.
pollIntervalMsintegerDelay between GetQueryResults polls, in ms (range 500-30000). Default 2000. The floor keeps one call inside the 10/sec account quota for this API.
profilestringOverride session profile for this call.
queryLanguagestringQuery language. Default CWLI (Logs Insights QL -- what the queryString examples use). 'PPL' is OpenSearch Piped Processing Language. OpenSearch SQL is deliberately not offered: it expects the log grou…
regionstringOverride session region for this call.
startTimestringRelative shorthand ('15m', '1h', '1d', '1w'), 'now', or an ISO 8601 timestamp with an explicit offset ('2026-05-16T10:00:00Z', '2026-05-16T10:00:00-04:00'). A date-only '2026-05-16' is read as UTC mid…
timeoutMsintegerTimeout for each individual aws CLI call, in ms. Default 60000. Bounds one start-query or one get-query-results, not the whole wait -- that is maxWaitMs.

aws_metrics_query

Query CloudWatch metrics via GetMetricData (the modern multi-metric / expression-capable API, not the legacy get-metric-statistics). Pass `queries` as a flat array of {id, namespace, metricName, dimensions?, statistic?, period?, expression?, label?}; the tool shapes them into MetricDataQueries for you. `startTime`/`endTime` accept relative shorthand ('15m', '1h', '1d', '1w'), 'now', or ISO 8601 WITH an explicit offset ('2026-05-16T10:00:00Z' / '...-04:00' -- an offset-less date-time is rejected rather than silently read in the host's local zone; a date-only '2026-05-16' is read as UTC midnight…

ParameterTypeDescription
queries *array1-100 queries. Each is either a metric-stat (namespace + metricName) or an expression.
endTimestringSame forms as startTime: relative shorthand, 'now', or ISO 8601 with an explicit offset. Default 'now'.
maxDataPointsintegerPage size: the most datapoints one response returns before CloudWatch paginates (default and ceiling ~100,800). It does NOT coarsen the period -- the remainder comes back behind `nextToken` / `hasMore…
nextTokenstringResume cursor from a previous call's `nextToken`. Omit for the first page. Forwarded as CloudWatch's NextToken; only meaningful when a prior call returned `hasMore: true`.
profilestringOverride session profile for this call.
regionstringOverride session region for this call.
scanBystringSort order for returned datapoints. Default 'TimestampDescending' (matches CloudWatch's default).
startTimestringRelative shorthand ('15m', '1h', '1d', '1w'), 'now', or an ISO 8601 timestamp with an explicit offset ('2026-05-16T10:00:00Z', '2026-05-16T10:00:00-04:00'). A date-only '2026-05-16' is read as UTC mid…
timeoutMsintegerTimeout in milliseconds. Default 60000 (60s).

aws_resource_get

Read a single AWS resource via Cloud Control API. Covers hundreds of resource types with a CloudFormation schema. `typeName` is '<Namespace>::<Service>::<Resource>' (e.g. 'AWS::Lambda::Function'); `identifier` is the primary key for that type (function name, bucket name, IAM role name, ARN, or composite id). Returns parsed Properties. For resources not covered by CCAPI or for data-plane operations, use aws_call.

ParameterTypeDescription
identifier *stringPrimary identifier for the resource (function name, bucket name, ARN, or composite id).
typeName *stringCloudFormation type name, e.g. 'AWS::Lambda::Function', 'AWS::S3::Bucket', 'AWS::IAM::Role'.
profilestringOverride session profile for this call.
regionstringOverride session region for this call.
timeoutMsintegerTimeout in milliseconds. Default 60000.

aws_resource_list

List resources of a given type via Cloud Control API, paginated. Returns an array of {identifier, properties}, a `nextToken` (null when exhausted), and `hasMore`. Some types need parent identifiers (e.g. nested resources under a cluster); pass those as `resourceModel`.

ParameterTypeDescription
typeName *stringCloudFormation type name, e.g. 'AWS::Lambda::Function'.
maxResultsintegerPage size (1-100). Default 100.
nextTokenstringResume cursor from the previous call's `nextToken`. Omit (or pass an empty string) for the first page.
profilestringOverride session profile for this call.
regionstringOverride session region for this call.
resourceModelobjectParent identifier properties for nested types, e.g. {ClusterArn: '...'}.
timeoutMsintegerTimeout in milliseconds. Default 60000.

aws_resource_create

Create an AWS resource via Cloud Control API. Async by default: returns a ProgressEvent with OperationStatus=IN_PROGRESS and a `requestToken` (top-level) -- poll aws_resource_status with that token, or pass `awaitCompletion: true` to have the server poll for you and return the terminal event. `desiredState` is the resource properties JSON matching the CloudFormation schema for `typeName`. `ok: true` means the call succeeded (the request was accepted, or a terminal state was observed); whether the change applied is `operationStatus` -- FAILED or CANCEL_COMPLETE means it did NOT apply (see `erro…

ParameterTypeDescription
desiredState *objectResource properties matching the CFN schema. E.g. for AWS::SSM::Parameter: {Name: '/my/param', Type: 'String', Value: 'hello'}.
typeName *stringCloudFormation type name, e.g. 'AWS::SSM::Parameter'.
awaitCompletionbooleanIf true, poll get-resource-request-status until the operation reaches SUCCESS / FAILED / CANCEL_COMPLETE and return the final ProgressEvent. Default false (returns immediately with IN_PROGRESS, caller…
clientTokenstringIdempotency token (max 128 chars). Prevents duplicate creation on retry.
maxWaitMsintegerMaximum total wait in ms when awaitCompletion is true (range 1000-1800000). Default 300000. On timeout, returns the last seen status with a hint to keep polling.
pollIntervalMsintegerPoll interval in ms when awaitCompletion is true (range 500-30000). Default 2000. ProgressEvent.RetryAfter overrides when CCAPI returns one.
profilestringOverride session profile for this call.
regionstringOverride session region for this call.
timeoutMsintegerTimeout in milliseconds. Default 60000.

aws_resource_update

Update an AWS resource via Cloud Control API using RFC 6902 JSON Patch. Async by default: returns a ProgressEvent with OperationStatus=IN_PROGRESS and a top-level `requestToken`. Pass `awaitCompletion: true` to have the server poll until terminal. Typical patch: [{op: 'replace', path: '/MemorySize', value: 512}]. `ok: true` means the call succeeded (the request was accepted, or a terminal state was observed); whether the change applied is `operationStatus` -- FAILED or CANCEL_COMPLETE means it did NOT apply (see `errorCode` / `statusMessage`).

ParameterTypeDescription
identifier *stringPrimary identifier for the resource.
patchDocument *arrayRFC 6902 JSON Patch document (array of operations). At least one entry. 'add', 'replace' and 'test' must carry a `value`; 'move' and 'copy' must carry a `from`.
typeName *stringCloudFormation type name.
awaitCompletionbooleanIf true, poll get-resource-request-status until the operation reaches SUCCESS / FAILED / CANCEL_COMPLETE and return the final ProgressEvent. Default false (returns immediately with IN_PROGRESS, caller…
clientTokenstringIdempotency token (max 128 chars).
maxWaitMsintegerMaximum total wait in ms when awaitCompletion is true (range 1000-1800000). Default 300000. On timeout, returns the last seen status with a hint to keep polling.
pollIntervalMsintegerPoll interval in ms when awaitCompletion is true (range 500-30000). Default 2000. ProgressEvent.RetryAfter overrides when CCAPI returns one.
profilestringOverride session profile for this call.
regionstringOverride session region for this call.
timeoutMsintegerTimeout in milliseconds. Default 60000.

aws_resource_delete

Delete an AWS resource via Cloud Control API. Async by default: returns a ProgressEvent with OperationStatus=IN_PROGRESS and a top-level `requestToken`. Pass `awaitCompletion: true` to have the server poll until terminal. Destructive -- double-check `identifier` before calling. `ok: true` means the call succeeded (the request was accepted, or a terminal state was observed); whether the change applied is `operationStatus` -- FAILED or CANCEL_COMPLETE means it did NOT apply (see `errorCode` / `statusMessage`).

ParameterTypeDescription
identifier *stringPrimary identifier for the resource.
typeName *stringCloudFormation type name.
awaitCompletionbooleanIf true, poll get-resource-request-status until the operation reaches SUCCESS / FAILED / CANCEL_COMPLETE and return the final ProgressEvent. Default false (returns immediately with IN_PROGRESS, caller…
clientTokenstringIdempotency token (max 128 chars).
maxWaitMsintegerMaximum total wait in ms when awaitCompletion is true (range 1000-1800000). Default 300000. On timeout, returns the last seen status with a hint to keep polling.
pollIntervalMsintegerPoll interval in ms when awaitCompletion is true (range 500-30000). Default 2000. ProgressEvent.RetryAfter overrides when CCAPI returns one.
profilestringOverride session profile for this call.
regionstringOverride session region for this call.
timeoutMsintegerTimeout in milliseconds. Default 60000.

aws_resource_status

Poll the status of an async Cloud Control API request (create/update/delete). Pass the `requestToken` returned by those tools. Returns the current ProgressEvent with OperationStatus: PENDING | IN_PROGRESS | SUCCESS | FAILED | CANCEL_IN_PROGRESS | CANCEL_COMPLETE. `ok: true` means the status was read; FAILED or CANCEL_COMPLETE means the mutation did NOT apply.

ParameterTypeDescription
requestToken *stringRequestToken from a previous create/update/delete call.
profilestringOverride session profile for this call.
regionstringOverride session region for this call.
timeoutMsintegerTimeout in milliseconds. Default 60000.

aws_resource_diff

Dry-run a CCAPI update: fetch the current resource state, simulate applying a JSON Patch in memory, and return before/after plus a flat list of changed paths. No mutation is sent to AWS. Use this before aws_resource_update to verify the patch does what you expect. Supports the add/remove/replace subset of RFC 6902 (covers the vast majority of CCAPI updates); 'move'/'copy'/'test' are rejected at schema validation -- use aws_resource_update directly if you need those (CCAPI accepts them, this preview tool just doesn't simulate them locally).

ParameterTypeDescription
identifier *stringPrimary identifier for the resource.
patchDocument *arrayRFC 6902 JSON Patch (add/remove/replace subset); 'add' and 'replace' must carry a `value`. For move/copy/test, use aws_resource_update directly.
typeName *stringCloudFormation type name, e.g. 'AWS::Lambda::Function'.
profilestringOverride session profile for this call.
regionstringOverride session region for this call.
timeoutMsintegerTimeout in milliseconds. Default 60000.

aws_multi_region

Run the same AWS API operation across multiple regions in parallel. Same shape as aws_call (service, operation, params?, query?, outputFormat?, timeoutMs?) but takes `regions: string[]` instead of `region`, up to 64 per call with at most 32 in flight. Returns an array of `{region, ok, data?, command?, commandArgv?, error?, errorKind?}` -- partial failure is expected (services aren't everywhere, perms may be region-scoped). Duplicate regions in the input are collapsed (first occurrence wins), so `results.length` may be less than `regions.length`; use the returned `regionCount` for the actual co…

ParameterTypeDescription
operation *stringOperation in kebab-case: 'describe-instances', 'list-buckets', etc.
regions *arrayRegion IDs (e.g. ['us-east-1','us-west-2','eu-west-1']). 1-64. Validated for argv-safety; a bad region name yields a clear per-region error and skips its CLI spawn (per-region isolation comes from eac…
service *stringAWS service in kebab-case: 's3api', 'ec2', 'iam', etc.
concurrencyintegerMax regions in flight at once (1-32). Default 8.
outputFormatstringOutput format. Default 'json'.
paramsobjectOperation parameters (PascalCase keys) -- same shape as aws_call.
profilestringOverride session profile for the batch.
querystringJMESPath expression for --query (server-side trimming per region).
timeoutMsintegerTimeout in ms applied PER region. Default 60000.

aws_multi_account

Run the same AWS API operation across multiple ACCOUNTS in parallel by assuming the same role name in each. Same shape as aws_call (service, operation, params?, query?, outputFormat?, region?, timeoutMs?) plus `accounts: string[]` of 12-digit account IDs and `roleName`. This is fan-out in one call, not new access: it is exactly what aws_assume_role in a loop would reach, minus the credentials-file churn -- each account's session is held in memory for the one subprocess that uses it and is NEVER written to ~/.aws/credentials, so a sweep that dies halfway leaves nothing on disk. If your org alre…

ParameterTypeDescription
accounts *arrayTarget AWS account IDs, 12 digits each (e.g. ['111111111111','222222222222']). 1-32. A malformed ID fails only its own entry and does not spawn a CLI call.
operation *stringOperation in kebab-case: 'describe-instances', 'get-caller-identity', 'list-buckets', etc.
roleName *stringName of the role to assume in EVERY target account (e.g. 'OrganizationAccountAccessRole', 'ReadOnlyAuditor'). Combined with each account ID into arn:<partition>:iam::<account>:role/<roleName>, where t…
service *stringAWS service in kebab-case: 's3api', 'ec2', 'iam', etc.
concurrencyintegerMax accounts in flight at once (1-32). Default 8.
outputFormatstringOutput format. Default 'json'.
paramsobjectOperation parameters (PascalCase keys) -- same shape as aws_call.
profilestringProfile to assume FROM -- your own identity, used for every sts:AssumeRole in the batch. Defaults to the session profile / $AWS_PROFILE. The target accounts never use a profile at all.
querystringJMESPath expression for --query (server-side trimming per account).
regionstringRegion for BOTH the sts:AssumeRole call and the operation. Defaults to the session region.
sessionNamestringRole session name recorded in each target account's CloudTrail. Default 'aws-mcp-multi-account'. Alphanumeric + +=,.@- only, 2-64 chars.
timeoutMsintegerTimeout in ms applied PER aws CLI spawn. Each account makes two: the sts:AssumeRole and the operation. Unset, the assume gets 120000 ms (headroom for cold-start SAML / credential_process) and the oper…

aws_iam_simulate

Simulate IAM permissions for a principal: can principal X do actions Y on resources Z? Wraps `iam simulate-principal-policy`. Returns one entry per (action, resource) pair -- one per action, with resource '*', when `resources` is omitted -- with `decision` (allowed / explicitDeny / implicitDeny / unknown -- unknown is the malformed-response fallback when the decision is missing or unrecognised), `matchedStatementIds` (which IAM statements decided), `missingContextValues` (context keys the policy needed but you didn't provide -- common for tag-based policies), `permissionsBoundaryDecision`, and…

ParameterTypeDescription
actions *arrayIAM action names to test, e.g. ['lambda:CreateFunction', 's3:GetObject']. 1-50 entries. Wildcards (e.g. 's3:*', 's3:Get?bject') are accepted.
principalArn *stringARN of the principal whose policies you want to evaluate, e.g. 'arn:aws:iam::123456789012:user/jeff' or 'arn:aws:iam::123456789012:role/my-role'. Must be the IAM user, group or role ARN -- not the STS…
contextEntriesarrayContext keys for policies that depend on request context -- 'aws:RequestTag/Project' = 'foo', etc. Provide when the policy you're testing references condition keys; the response's `missingContextValue…
markerstringResume cursor from a previous call's `marker`. Omit it normally: on a first call the CLI already follows IAM's pagination and returns every page, so `hasMore` is false. Forwarded as IAM's Marker, whic…
profilestringOverride session profile for this call.
regionstringOverride session region for this call (IAM is global; affects API endpoint).
resourcesarrayResource ARNs to test against, e.g. ['arn:aws:s3:::my-bucket/*']. Up to 50 entries of at most 2048 chars each -- the simulator evaluates every action against every resource and this tool returns one e…
timeoutMsintegerTimeout in milliseconds. Default 60000.

aws_lambda_invoke

Invoke a Lambda function synchronously (RequestResponse) and return its response payload plus the DECODED tail of its execution log in one call. Use this instead of aws_call for Lambda invokes: `aws lambda invoke` needs a positional output file and rejects --cli-input-json, so aws_call structurally cannot reach it. The returned `logTail` is the last ~4 KB of the function's own log output, already base64-decoded, which removes the usual invoke -> find the log group -> tail it -> hope the window caught it loop. Functions on Lambda Managed Instances do not support the log tail; read their logs wi…

ParameterTypeDescription
functionName *stringFunction name, name:alias, partial ARN ('123456789012:function:my-fn'), or full ARN. E.g. 'my-function', 'my-function:PROD'.
invocationTypestringOnly 'RequestResponse' (synchronous) is supported. Async 'Event' and permission-check 'DryRun' are deliberately not implemented — 'Event' returns no payload or logs and needs its own result shape. F…
payloadThe event to pass to the function. Any JSON value (usually an object); it is JSON-encoded and sent as the request body. Omit for a function that takes no input — this sends no payload at all rather…
profilestringOverride session profile for this call.
qualifierstringVersion number or alias to invoke, e.g. '3' or 'PROD'. Omit for the service default: $LATEST for a standard function, $LATEST.PUBLISHED for one on Lambda Managed Instances. Durable functions need an e…
regionstringOverride session region for this call.
timeoutMsintegerHow long to wait for the function to respond, in milliseconds. Default 60000. Set it to at least the function's own configured timeout; a synchronous invoke runs at most 15 minutes, so values above 90…

aws_docs_read

Fetch an AWS documentation page and return it as markdown. `url` must be an https://docs.aws.amazon.com/...html page (typically one returned by aws_docs_search). Long pages are paginated: pass `startIndex` (default 0) and `maxLength` (default 5000 chars); the response includes `hasMore` and `nextStartIndex` -- call again with nextStartIndex to continue. Strips nav/cookie-banner/feedback chrome before converting.

ParameterTypeDescription
url *stringAWS docs page URL: https://docs.aws.amazon.com/<...>.html. Usually from an aws_docs_search result.
maxLengthintegerMax characters of markdown to return. Default 5000; max 1000000.
startIndexintegerCharacter offset to start from (for paginated reads). Default 0.

aws_script

Run a short JavaScript snippet that orchestrates other aws-mcp tools (aws.call, aws.paginate, aws.paginateAll (stops at maxPages, default 50 -- check its hasMore), aws.resource.*, aws.logsTail, aws.metricsQuery, aws.iamSimulate, aws.multiRegion, aws.assumeRole, aws.docs.{search,read}) and returns a combined result. Best for batched read+filter+aggregate workflows that would otherwise need N tool round-trips: 'list all Lambdas, fetch each one's config, return those with memory > 1024'. Use `return <value>` at the end to surface a result; console.log lines are captured and returned alongside. He…

ParameterTypeDescription
code *stringJavaScript snippet evaluated inside `(async () => { ... })()`. Use `return <value>` to surface a result. Bound globals: aws.call, aws.paginate, aws.paginateAll, aws.resource.{get,list,create,update,de…
timeoutMsintegerWall-clock timeout in milliseconds. Default 60000; max 300000. Best-effort: it fires on synchronous spin BEFORE the first await, and on async wall-clock once the script has yielded. It does NOT fire o…