@yawlabs/aws-mcp
OfficialProvides tools to interact with Amazon Web Services (AWS), including calling any AWS API via the AWS CLI, managing resources through Cloud Control API (CRUD operations), performing multi-region operations, querying CloudWatch metrics, tailing logs, and handling SSO authentication with device-code flow.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@@yawlabs/aws-mcplist my S3 buckets"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@yawlabs/aws-mcp
A small AWS MCP for AI assistants: one server, one config entry, SSO re-auth baked in, generic CRUD over hundreds of resource types, live docs lookup, server-side scripting for batched workflows.
It's an alternative to AWS's official MCP server, not a complement -- both call any AWS API, so running both just gives the model two redundant tools. Pick one. The honest comparison:
AWS MCP Server -- AWS's hosted server (
uvx mcp-proxy-for-aws). Strong on AWS-team-curated skills, a server-side Python sandbox (run_script), and days-fresh API coverage. Requires Python +uv, routes through a proxy that bridges IAM SigV4 to OAuth, and assumes your local credentials already work.@yawlabs/aws-mcp(this server) -- Node/npm-only, runs locally. Wins on SSO re-login whenaws sso login's browser handoff drops (Windows especially), ergonomic CCAPI CRUD with dry-run diffs, multi-region fan-out, pre-flight IAM permission checks, and a JS scripting sandbox. Live AWS docs search + read is built in too -- parity with the official server'ssearch_documentation/read_documentation, no second server needed either way.
The one MCP that genuinely pairs with either choice is awslabs/mcp -- AWS Labs' fleet of typed per-service servers (Lambda invoke, Bedrock retrieval, DynamoDB with type-marshalling). Those are per-service helpers, no overlap with a general AWS-API server.
Five things this server tries to handle well:
SSO re-login. When your token expires mid-session,
aws sso logintries to open a browser from a subprocess -- on Windows (and sometimes elsewhere) that handoff drops silently. You end up context-switching to a terminal, running the command yourself, then coming back. The--no-browserdevice-code flow fixes this: the assistant surfaces a short URL + code, you click once, done. There's alsoaws_refresh_if_expiring_soonfor proactive top-ups before a long workflow. AWS's hosted server bridges IAM-to-OAuth via a local proxy; it doesn't help with theaws sso loginbrowser-handoff failure.Calling any AWS API.
aws_callproxies theawsCLI directly. One tool covers the full API surface -- including services AWS adds tomorrow -- with no SDK bundling and no service-by-service tool sprawl.aws_paginatehandles paginated list/describe ops,aws_multi_regionfans the same op out across N regions in parallel, and a JMESPathqueryparameter trims responses server-side (useful when adescribe-instancesresult would otherwise blow past the 5 MB output cap).Generic CRUD across services.
aws_resource_*(seven tools, includingaws_resource_difffor dry-run previews) wraps AWS Cloud Control API, so the same lifecycle -- get / list / create / update / delete / status -- works for any control-plane resource with a CloudFormation schema: Lambda functions, S3 buckets, IAM roles, SSM parameters, RDS instances, and a few hundred more. PassawaitCompletion: trueand the server polls the async create/update/delete through to terminal state for you. CCAPI is control-plane only -- for data-plane ops (S3 reads, Lambda invokes, Bedrock inference, DynamoDB GetItem) drop down toaws_callor use a typed AWS Labs server.Live AWS docs.
aws_docs_searchqueries the same backend that powers the docs.aws.amazon.com search box;aws_docs_readfetches a doc page and returns it as paginated markdown. Lets the agent discover new services and look up exact parameter names without a second MCP server installed.Batched workflows in one round-trip.
aws_scriptruns a short JS snippet inside a constrainednode:vmsandbox withaws.call,aws.paginate,aws.paginateAll,aws.resource.*, andaws.logsTailavailable. Best for "list X, fetch Y for each, return Z" pipelines that would otherwise need N tool calls. Same shape as AWS'srun_script(Python, sandboxed server-side) -- yours is JS-native and runs locally.
One click adds this to your local Yaw MCP config so it's available in every Yaw Terminal session. Or install manually below.
Optional companion: AWS Labs per-service servers
For deep work in a single service -- typed lambda_invoke, Bedrock KB retrieval, DynamoDB with type-marshalling -- add the relevant awslabs/mcp server alongside this one. Those are per-service helpers with no tool-name overlap, so they pair cleanly:
{
"mcpServers": {
"aws": {
"command": "npx",
"args": ["-y", "@yawlabs/aws-mcp@latest"]
},
"aws-lambda": {
"command": "uvx",
"args": ["awslabs.lambda-mcp-server@latest"]
}
}
}When to reach for this vs the other AWS MCPs
Need | Best fit |
One config entry covering most of AWS |
|
SSO re-login on Windows / broken browser handoff |
|
Generic CRUD across hundreds of resource types |
|
Dry-run an update before applying it |
|
Multi-region fan-out in one call |
|
Batch N tool calls into one round-trip (JS) |
|
Check IAM permissions before attempting an op |
|
Node/npm-only install (no Python) |
|
Sandboxed Python script execution server-side | AWS MCP Server ( |
AWS-team-curated best-practice skills | AWS MCP Server (skills) |
Days-fresh API coverage via hosted endpoint | AWS MCP Server ( |
Typed per-service helpers (Lambda invoke, Bedrock KB, DynamoDB type-marshalling, ...) |
|
@yawlabs/aws-mcp and AWS's official server are an either/or -- pick the one whose tradeoffs fit. awslabs/mcp per-service servers pair cleanly with whichever you pick.
What this server borrows from AWS's official one
Credit where due -- two features here were shaped by the official AWS MCP Server:
aws_scriptmirrors the official server'srun_script: a sandboxed scripting tool that collapses "list X, fetch Y for each, return Z" pipelines into one round-trip. Theirs is Python, sandboxed server-side; this one is JS-native and runs locally.aws_docs_search/aws_docs_readwere added to match the official server'ssearch_documentation/read_documentation, so you don't need a separate docs MCP regardless of which server you pick.
The rest -- SSO device-code re-login, CCAPI CRUD with dry-run diffs, multi-region fan-out, IAM pre-flight checks -- is this server's own.
Tools
Tool | What it does |
| Current identity (account, ARN) + SSO token expiry countdown. Call this first. |
| Start |
| Block until the SSO subprocess finishes (you auth in your browser), returns the new identity. |
| Check the cached SSO token and auto-start a refresh when < |
| Set the default profile and/or region for the rest of this MCP session. "Switch to prod," "use us-west-2." |
| Show the current session defaults and where each value came from ( |
| Remove session profile/region overrides so env vars / defaults take over again. No args clears both. |
| List profiles configured in |
| Call STS AssumeRole with your current identity and stash the temp creds as a new profile ( |
| Run any AWS API operation. |
| Fetch one page of a paginated list/describe operation. Supports |
| Fetch recent CloudWatch Logs events for a log group. Wraps |
| Query CloudWatch metrics via GetMetricData (the modern multi-metric / expression-capable API). Pass |
| Read an AWS resource via Cloud Control API by |
| List resources of a type via CCAPI, paginated. Returns |
| Create an AWS resource via CCAPI. Async — returns top-level |
| Update an AWS resource via CCAPI using RFC 6902 JSON Patch. Same async + |
| Delete an AWS resource via CCAPI. Same async + |
| Poll an async CCAPI request by |
| Dry-run a CCAPI update: fetches current state, simulates the JSON Patch in memory, returns |
| Run the same AWS operation across N regions in parallel. Same shape as |
| Run a short JS snippet that orchestrates the other tools and returns a combined result. Sandbox exposes |
| Simulate IAM permissions for a principal: can principal X do actions Y on resources Z? Wraps |
| Search live AWS documentation (the backend behind the docs.aws.amazon.com search box). Returns ranked |
| Fetch an |
Install
Add to your MCP client config (e.g. .mcp.json):
{
"mcpServers": {
"aws": {
"command": "npx",
"args": ["-y", "@yawlabs/aws-mcp@latest"]
}
}
}The -y flag is what gives you auto-update on each session load: every time your MCP client spawns the server, npx checks the registry for the latest @yawlabs/aws-mcp and downloads it if newer. The first launch in a fresh cache adds ~100-500 ms; subsequent launches use npm's cache (typical metadata-freshness window: 5 min) and add ~50 ms or less. Once the server is up, tool calls have zero auto-update overhead -- the check fires only on (re-)spawn. No separate install step is needed; -y covers both first-time install and ongoing updates.
If you'd rather pin a specific version (no auto-update, but zero startup overhead), install globally and point the config at the installed binary:
npm install -g @yawlabs/aws-mcp{
"mcpServers": {
"aws": {
"command": "aws-mcp"
}
}
}You'll need to npm install -g @yawlabs/aws-mcp@latest manually when you want a newer version.
Example session
You ask the assistant to check a staging bucket, but your SSO token just expired. What the assistant does (and what you see):
You: "How many objects are in the staging-artifacts bucket right now?"
Claude: (calls aws_whoami) -> SSO session expired for profile 'staging'.
(calls aws_login_start with profile='staging')
"Your SSO token expired. Open
https://device.sso.us-east-1.amazonaws.com/
and enter code: ABCD-EFGH
I'll wait."
You: *click, authenticate in your browser*
Claude: (calls aws_login_complete with the sessionId)
(calls aws_call with service='s3api', operation='list-objects-v2',
params={ Bucket: 'staging-artifacts' },
query='KeyCount')
"There are 4,182 objects in staging-artifacts."The SSO flow took one click. No "the browser didn't open, let me run it in a terminal" context switch.
For a larger list where the response might exceed the 5 MB output cap, the assistant reaches for aws_paginate:
(calls aws_paginate with service='ec2', operation='describe-instances',
maxItems=50,
query='Reservations[].Instances[].{Id:InstanceId,State:State.Name}')
-> returns one page + a nextToken; Claude calls again until hasMore=falsequery (JMESPath) trims the response server-side -- a typical describe-instances result shrinks from megabytes to kilobytes when you only need two fields.
For "create this resource and tell me when it's ready," aws_resource_create with awaitCompletion: true collapses the usual create-then-poll loop into one tool call:
(calls aws_resource_create with
typeName='AWS::SSM::Parameter',
desiredState={Name: '/my/param', Type: 'String', Value: 'hello'},
awaitCompletion: true)
-> server polls get-resource-request-status until SUCCESS / FAILED / CANCEL_COMPLETE
and returns the terminal ProgressEvent in one callSame shape for aws_resource_update and aws_resource_delete. Drop awaitCompletion (or set it false) for the default fire-and-poll behavior -- useful when you want to kick off a long-running update and check back later.
For "preview the patch before applying":
(calls aws_resource_diff with
typeName='AWS::Lambda::Function',
identifier='my-fn',
patchDocument=[{op: 'replace', path: '/MemorySize', value: 1024}])
-> returns { before: {MemorySize: 256, ...}, after: {MemorySize: 1024, ...},
changes: [{op: 'replace', path: '/MemorySize', before: 256, after: 1024}] }No mutation is sent to AWS; the agent can verify the patch before invoking aws_resource_update.
For batched workflows, aws_script collapses N tool calls into one:
(calls aws_script with code=`
const listed = await aws.resource.list({ typeName: "AWS::Lambda::Function" });
const big = [];
for (const r of listed.resources) {
const cfg = await aws.resource.get({
typeName: "AWS::Lambda::Function", identifier: r.identifier });
if (cfg.properties.MemorySize > 1024) {
big.push({ name: cfg.properties.FunctionName, mem: cfg.properties.MemorySize });
}
}
return big;
`)
-> one round-trip; the agent gets the filtered list without N intermediate tool callsFor multi-region reads:
(calls aws_multi_region with
service='ec2', operation='describe-instances',
regions=['us-east-1','us-west-2','eu-west-1'],
query='Reservations[].Instances[].InstanceId')
-> {okCount: 3, errorCount: 0, results: [{region, ok, data}, ...]}Requirements
Node.js 22+
AWS CLI v2 installed and on
PATH(foraws sso login --no-browser)An AWS profile configured for SSO / IAM Identity Center in
~/.aws/config
Environment
Variable | Default | Purpose |
|
| Profile used when a tool call omits |
|
| Region used when a tool call omits |
If you authenticate via SAML (Okta / Azure AD / ADFS) or a custom credential_process, set AWS_PROFILE to that profile. The server passes --profile through to the AWS CLI, so the CLI's standard credential chain -- credential_process, SSO sessions, role chaining, static keys, IMDS -- resolves as usual.
If neither AWS_PROFILE is set nor aws_session_set has been called and there's no [default] section in ~/.aws/config, tools will fail with ProfileNotFound. Set AWS_PROFILE in your MCP config to your usual working profile.
How the SSO login flow works
1. Claude calls aws_login_start({ profile: "prod" })
2. Server spawns: aws sso login --no-browser --profile prod
3. Server parses the URL + code from stdout, returns them to Claude
4. Claude surfaces: "Open https://device.sso.us-east-1.amazonaws.com/ and enter ABCD-EFGH"
5. You click — browser opens in your own user session — auth in ~10 seconds
6. Claude calls aws_login_complete({ sessionId })
7. Tool returns your new identity. Back to work.The token is cached in ~/.aws/sso/cache/<hash>.json the same way a normal aws sso login would, so the AWS CLI, the SDK, and every other tool on your machine pick it up transparently.
Why this server must run locally (not on mcp.hosting)
SSO tokens live in ~/.aws/sso/cache/ on your device. A remote MCP server can't read them. So this is a stdio server, not a hosted one. That's a constraint of AWS SSO, not a limitation of mcp.hosting.
Stability
From 1.0 onward this package follows Semantic Versioning. The 0.x line is the pre-stability tightening phase -- breaking changes are documented in CHANGELOG.md but are not necessarily gated on a major bump.
Stable in 1.x (anything below is a breaking change requiring a major bump):
Tool names -- the 25 tool names listed in the Tools table above will not be renamed or removed.
Tool annotations --
readOnlyHint,destructiveHint,idempotentHint,openWorldHint. These signal to MCP hosts how to gate calls; flipping them silently would break host UIs.Required input fields -- the required fields per tool will not change shape or be removed. New optional fields may be added.
Success envelope shape per tool -- the
dataobject on{ok: true, data}responses, specifically:aws_call->{command, result}aws_paginate->{command, result, nextToken, hasMore}aws_multi_region->{service, operation, regionCount, okCount, errorCount, results: [{region, ok, data?, command?, error?, errorKind?}]}aws_whoami->{account, userId, arn, profile, region, ssoToken: {expiresAt, minutesLeft, startUrl?} | null}(startUrlis omitted when the cached token didn't record one)aws_login_start->{sessionId, profile, verificationUrl, userCode, instructions, reused?}(reused: truewhen re-surfacing an in-flight login for the same profile)aws_login_complete->{loggedIn, account, userId, arn, profile, region, ssoToken}(samessoTokenshape asaws_whoami, including the optionalstartUrl)aws_refresh_if_expiring_soon-> one of two shapes by branch:{status: "ok", minutesLeft, expiresAt, profile}when the cached token has more thanthresholdMinutesleft, or{status: "refreshing", reason, sessionId, profile, verificationUrl, userCode, reused?, instructions}when a refresh is in flight. Discriminate onstatus.aws_assume_role->{profile, credentialsPath, expiration, assumedRoleArn, assumedRoleId, sourceProfile, hint}aws_list_profiles->{configPath, profiles: [{name, region?, ssoStartUrl?, ssoRegion?, ssoSession?, isSso}]}aws_session_get/aws_session_set/aws_session_clear->{profile, region, profileSource, regionSource}where*Sourceis"session" | "env" | "default". All three return the same shape (set/clear return the post-mutation state).aws_resource_get->{command, typeName, identifier, properties, propertiesRaw?}aws_resource_list->{command, typeName, resources: [{identifier, properties}], nextToken, hasMore}aws_resource_create/_update/_delete/_status-> flat-promoted{command, requestToken, operationStatus, identifier, errorCode, statusMessage, retryAfter, progressEvent}plus anawaited: {attempts, elapsedMs}block whenawaitCompletion: truewas passedaws_resource_diff->{command, typeName, identifier, before, after, changes, changeCount}aws_logs_tail->{command, logGroupName, since, eventCount, events}aws_metrics_query->{command, startTime, endTime, periodSeconds, series: [{id, label?, timestamps, values, statusCode?}], messages?: [{code?, value?}]}(messagesis omitted when empty; per-serieslabel/statusCodeare present when CloudWatch returns them)aws_iam_simulate->{command, principalArn, summary: {allowed, denied, total}, results, evaluationResults}aws_script->{result, logs, truncatedLogs, durationMs}whereresultis whatever the scriptreturned (any JSON-serializable value, includingundefined)aws_docs_search->{query, count, results: [{title, url, summary?, excerpt?}]}(summary/excerptare present only when the upstream search backend returns them)aws_docs_read->{url, cached, content, startIndex, endIndex, totalLength, hasMore, nextStartIndex}
Error envelope --
{ok: false, error: string, rawBody?: string}. Theerrorstring is human-readable; its wording is best-effort (see below).errorKindenum onaws_multi_region--"sso_expired" | "no_creds" | "bad_input" | "spawn_failure" | "timeout" | "output_too_large" | "nonzero_exit". New variants may be added (additive); existing ones won't be renamed or repurposed.
Best-effort (may change in a minor or patch):
Error message wording. Strings like "SSO session expired for profile 'X'. Call aws_login_start..." may be retuned for clarity. Anchor on
errorKind(foraws_multi_region) or the structured envelope, not on regex-matchingerrortext.rawBodycontent -- raw stderr/stdout from the underlyingawsCLI for diagnostic purposes. Format follows whatever the CLI emits in your installed version.commandstrings -- the human-readable command shown alongside results. Argv ordering and the exact redaction-stub format (<redacted len=N>) may shift.Tool descriptions -- the prose surfaced to the model. Tightening these is non-breaking.
Deprecation policy: breaking a stable shape requires a major bump. A deprecation lands first in a minor (the old shape continues to work and the new shape becomes available alongside it), with a removal scheduled for the next major. Both the deprecation and the removal show up in CHANGELOG.md.
License
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/YawLabs/aws-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server