updsts
updsts is a local MCP server for managing AWS STS credentials in an AWS credentials file.
Obtain and update temporary AWS STS credentials for a specified profile using a TOTP token, with optional STS profile name, credentials file path, and token duration.
Retrieve registered AWS credential information for a specified profile, with sensitive fields masked.
List registered AWS credential information for all profiles, with sensitive fields masked.
Click on "Deploy 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., "@updsts update STS credentials for profile dev using TOTP 123456"
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.
updsts
A simple CUI tool and local MCP server for reflecting AWS STS credentials into the credentials file
English | 日本語
1. Overview
updsts is a command-line tool that retrieves AWS STS (Security Token Service) credentials using the credentials already registered in an existing credentials file (~/.aws/credentials), and reflects them in the file as a separate profile.
It also works as a local MCP server, so common Agent tools can read and update the STS profile.
This makes it easier to automate AWS operations that use STS credentials.
Related MCP server: Aws Claw
2. Features
Obtain temporary AWS STS credentials using MFA authentication
Update the STS profile in the credentials file
Support for TOTP-based MFA devices
List all AWS profiles in the credentials file (confidential information is masked)
Leave profiles other than the one being updated untouched
Can be operated from common Agent tools when running as a local MCP server
(Confidential information such as secret keys and session tokens is returned masked and is never passed to the LLM.)Support for proxy environments (reads the
http_proxy/https_proxyenvironment variables)
3. Runtime Environment
This project uses uv as the package manager.
Using uv allows you to reproduce the runtime environment automatically.
Python 3.12 or later is required (uv installs a suitable Python automatically if needed).
For how to install uv, see:
4. Installation/Usage
Use updsts with uv or uvx.
4-1. Install as a uv tool
# Install from PyPI
uv tool install updstsAfter installation, you can run the updsts command directly.
updsts --help4-2. Using uvx
Without installing it, start updsts directly from PyPI with the uvx command.
uvx updsts --help
# Add @latest to always use the latest version
uvx updsts@latest --help4-3. Registering as an MCP server
By registering updsts as an MCP server, you can operate it from common Agent tools.
For how to register an MCP server, refer to the manual of the Agent tool you use.
{
// Example configuration for registering as an MCP server
//
// (Note)
// Registration keys differ depending on the Agent tool.
"mcpServers": {
// Configuration for starting updsts as an MCP server using uvx
"updsts-uv": {
"type": "stdio",
"command": "uvx",
"args": [
"updsts@latest", // To pin the version, specify it like "updsts@0.10.1"
"mcp",
"--mcp-server"
],
"env": {}
}
}
}4-4. Installing the MCP server as a Claude plugin
updsts can be installed as a Claude plugin.
# Add the marketplace
/plugin marketplace add zv-louis/zv-plugin-marketplace
# Install from the marketplace
/plugin install updsts-mcp@zv-plugins5. CUI Tool Command Options
5-1. Common Options
-v, --verbose LEVEL: Set the output verbosity (0: normal, 1: verbose, 2: debug)-c, --credential_file FILE: Path to the credentials file (default: ~/.aws/credentials)
5-2. get Command
Get and update the STS credentials for the specified AWS profile.
updsts get -n <profile_name> -t <totp_token>-n, --profile_name: AWS profile name to get the STS token for (required)-t, --totp_token: TOTP token generated by the MFA device (required)-sn, --sts_profile_name: STS profile name to create in the credentials file (optional, default: AWS profile name + "_sts")-d, --duration: Token duration in seconds (optional, default: 3600)-c, --credential_file: Path to the credentials file (optional, default: ~/.aws/credentials)
5-3. list Command
Display all AWS profiles in the credentials file.
Confidential information (aws_access_key_id, aws_secret_access_key, aws_session_token) are displayed masked.
updsts list5-4. mcp Command
Start updsts as a local MCP server.
You can operate updsts from Agent tools.
updsts mcp --mcp-serverIf the --mcp-server option is not specified, the MCP tool list is output.
updsts mcp6. Credentials File
6-1. Credentials File Format
updsts works with the standard AWS CLI credentials file format.
It preserves existing profiles while updating only the specified section.
Example credentials file:
[default]
# Access Key ID (required)
aws_access_key_id = AKIAIOSFODNN7EXAMPLE
# Secret Access Key (required)
aws_secret_access_key = wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLE
# IAM user's MFA device ARN (required. The user must add this)
mfa_device_arn = arn:aws:iam::123456789012:mfa/user
# TOTP secret name managed by the mktotp MCP server (optional. The user can add this)
# If this is set and the `mktotp` MCP server is available, the Agent will automatically generate and use the TOTP token.
totp_secret_name = my_totp_secret
# The section enclosed by the following tags is automatically created/updated by updsts.
# ${{{ key=<name of the profile that requested STS> [auto update by updsts]
[default_sts]
aws_access_key_id=ASIAIOSFODNN7EXAMPLE
aws_secret_access_key=wJalrXUtnFEMI/K7MDENG/bPxRfiCYtempKEY
aws_session_token=IQoJb3JpZ2luX2VjE...
expiration_datetime=2025-10-05T15:30:00+09:00
# $}}} [auto update by updsts]updsts automatically manages the section between the special tags and leaves other profiles intact.
The tags are added automatically on the first run, so there is no need to add them manually.
6-2. Credentials File Location
By default, the credentials file is stored in the following location.
※ This is the same file used by the AWS CLI.
~/.aws/credentialsYou can specify a different location with the -c option.
7. Available MCP Tools
When started as an MCP server, the following tools are available from Agent tools.
updsts_update_sts_credential
Get the STS credentials for the specified AWS profile and create/update the STS profile in the credentials file.
Parameters:
profile_name(str): AWS profile name to update (required)totp_token(str): TOTP token from the MFA device (required)sts_profile_name(str): STS profile name to create in the credentials file (optional)If an empty string,
<profile_name>_stsis used (default: empty string)
cred_file(str): Path to the credentials file (optional)If an empty string, the default location (~/.aws/credentials) is used (default: empty string)
duration(int): STS token duration in seconds (optional, default: 3600)
Returns (
dict[str, str]): A dictionary containing the update resultupdated_profile_name: Name of the STS profile that was updatedaws_access_key_id: Access key ID of the retrieved STS credentials (masked)aws_token_expiration: Expiration of the STS credentials (ISO 8601 format in the local time zone)The secret access key and the session token are not returned
On failure, an error (
ValueError) is raised instead of a return value
updsts_get_credential_status
Get the information of the specified AWS profile in the credentials file.
For security reasons, aws_access_key_id, aws_secret_access_key and aws_session_token are returned masked.
Parameters:
profile_name(str): AWS profile name to retrieve (required)cred_file(str): Path to the credentials file (optional)If an empty string, the default location (~/.aws/credentials) is used (default: empty string)
Returns (
dict[str, str] | None): A dictionary containing the credential details, orNoneif not found
updsts_get_credential_status_list
Get the information of all AWS profiles in the credentials file.
For security reasons, aws_access_key_id, aws_secret_access_key and aws_session_token are returned masked.
Parameters:
cred_file(str): Path to the credentials file (optional)If an empty string, the default location (~/.aws/credentials) is used (default: empty string)
Returns (
list[dict[str, str]]): A list of dictionaries containing the credential details, or an empty list if no profiles are found
8. Security Notes
The credentials file contains sensitive information, so protect it with appropriate permissions (recommended: 600)
When updating, updsts writes a temporary file readable only by the owner, then replaces the credentials file with it and keeps the original file's permissions
Secret keys and session tokens are never written to the log or returned to the Agent in raw form
9. License
This project is licensed under the MIT License.
See the LICENSE file for details.
Available Tools
3 toolsupdsts_get_credential_infoUpdsts Get Credential InfoB
Get registerd AWS credential information for the specified profile.
This tool retrieves the registerd AWS credentials for the specified profile name from the AWS credentials file.
Inputs: profile_name (required), cred_file. Returns: result
updsts_get_credential_info_listUpdsts Get Credential Info ListC
Get registerd AWS credential information list for all profiles.
This tool retrieves the all AWS credentials in the cred_file.
Inputs: cred_file. Returns: result
updsts_update_sts_credentialUpdsts Update Sts CredentialB
Get and update AWS credentials for the specified profile using TOTP token.
This tool obtains temporary STS credentials using MFA authentication and updates the AWS credentials file with the new session token and keys.
Inputs: totp_token (required), profile_name (required), duration, cred_file, +1 more. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
The three tools are largely distinct: one updates STS credentials, one gets info for a single profile, and one lists info for all profiles. The get_credential_info vs get_credential_info_list pair could be momentarily confused, but the singular/plural distinction is clear enough.
All names share the updsts_ prefix and follow a verb_noun snake_case pattern (update_sts_credential, get_credential_info, get_credential_info_list). Minor redundancy in the prefix and the trailing _list is a slight deviation, but overall predictable.
Three tools is a focused, well-scoped set for a narrow STS credential task (get single, get all, update). It is slightly thin, but each tool earns its place with no obvious padding.
The set covers the core lifecycle of viewing credential info and refreshing/updating STS credentials. A delete or explicit refresh/validation operation is absent, but agents can work around this for the stated purpose.
Related MCP Connectors
Credential broker for AI agents: scoped, revocable API access with policy enforcement and audit.
Encrypted secret store and rotation for autonomous agent credentials
AWS cloud security scanners for AI agents — S3, IAM, EC2, EKS, RDS, CloudTrail, CloudWatch Logs
AI SRE for AWS teams: your agent reads security, cost and reliability findings, read-only by default
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceConnects AI assistants to AWS infrastructure through AWS IAM Identity Center for secure, natural language management of cloud resources across multiple accounts. It enables users to execute AWS CLI commands, monitor resources, and run remote shell commands on EC2 instances via Systems Manager.748 npm15ISC
- AlicenseNot gradedqualityCmaintenanceProvides a comprehensive suite of tools for interacting with AWS services like S3, EC2, and Lambda using natural language commands. It enables AI assistants to inspect, manage, and operate AWS resources directly through the Model Context Protocol using your local credentials.1Apache 2.0
- FlicenseNot gradedqualityAmaintenanceEnables AI assistants to analyze AWS cloud costs, audit for waste, monitor budgets, and generate FinOps reports using natural language across multiple AWS profiles and regions, while keeping credentials on the local machine.-
- FlicenseNot gradedqualityAmaintenanceEnables AI assistants to analyze AWS cloud costs, audit for waste, monitor budgets, and query multiple profiles and regions using natural language while keeping credentials local.-