Skip to content
Cloud InfrastructureAuto-generatedScore: 46

AWS Security Token Service MCP Server

AWS Security Token Service (STS) is a foundational web service from Amazon Web Services (AWS) that enables you to request temporary, limited-privilege security credentials for identity and access management.

Quick Start Summary

The AWS Security Token Service MCP server is a Model Context Protocol bridge that connects AI assistants — including Claude Desktop, Cursor, Windsurf, and VS Code Copilot — to the AWS Security Token Service API through natural language. It exposes 10 API endpoints as callable tools, such as GET_AssumeRole, POST_AssumeRole, GET_AssumeRoleWithSAML, and more. No authentication is required — setup takes approximately 30 seconds. The server uses STDIO transport and can be installed by running npx -y @mcp/amazonaws-com-sts. This integration is sourced from the auto AWS Security Token Service OpenAPI specification (v2011-06-15) and has a quality score of 46/99 (fair documentation coverage).

10Endpointstools mapped
NoneAuthopen access
46/99Qualityfair
~30 secSetupno auth

Server Details

Category
Cloud Infrastructure
Authentication
None
Endpoints
10 operations
Transport
STDIO
Spec Version
v2011-06-15
Install Command
npx -y @mcp/amazonaws-com-sts

Environment Variables

AWS_SECURITY_TOKEN_SERVICE_API_KEY

Example: your_aws_security_token_service_api_key

Top Endpoints

GET
/#Action=AssumeRole

GET_AssumeRole

POST
/#Action=AssumeRole

POST_AssumeRole

GET
/#Action=AssumeRoleWithSAML

GET_AssumeRoleWithSAML

POST
/#Action=AssumeRoleWithSAML

POST_AssumeRoleWithSAML

GET
/#Action=AssumeRoleWithWebIdentity

GET_AssumeRoleWithWebIdentity

Own this API?

Verify ownership of this listing to control the description, configuration details, and documentation links. Choose between free manual verification or instant premium placement.

Option 1: Free Verification

Slow manual review. Requires creating a GitHub issue with verified documentation or domain verification.

  • • Verified badge on page
  • • Standard search sorting
  • • 2-3 business days review
Start Free Claim →
Instant & Boosted

Option 2: Featured Upgrade($9/mo)

Instant verification plus premium styling, featured badges, and directory placement boost.

  • • ★ Featured star & amber highlight border
  • • Top of directory search placement
  • • Instant activation via claim token

📖 Detailed MCP Integration Guide

A technical breakdown of capabilities, agent workflows, and security/configuration best practices.

Capabilities & Use Cases
AWS Security Token Service (STS) is a foundational web service from Amazon Web Services (AWS) that enables you to request temporary, limited-privilege security credentials for identity and access management. These credentials, which consist of an access key, a secret key, and a security token, are valid for a specified duration—typically ranging from minutes to hours—and are automatically invalidated upon expiration. STS is the central mechanism for enabling identity federation and cross-account access within the AWS ecosystem. It serves a critical role in enterprise environments by allowing administrators to grant users from external identity providers (like corporate Active Directory via SAML or identity pools via web identity) secure, on-demand access to AWS resources without creating permanent IAM users in each account. Common use cases include providing temporary access for mobile applications via Cognito, enabling single sign-on (SSO) for enterprise users, and allowing developers or automated systems to assume roles for specific, time-bound tasks in other AWS accounts or regions.
🤖AI Agent Value
Exposing the AWS STS API as a toolset through the Model Context Protocol (MCP) provides an exceptionally powerful capability for AI coding assistants and development agents. By integrating STS actions like AssumeRole, AssumeRoleWithSAML, and AssumeRoleWithWebIdentity, the AI gains the ability to dynamically and securely interact with a multi-account, multi-environment AWS infrastructure. This transforms the assistant from a static code generator into an active participant in the cloud development lifecycle. The value lies in enabling the AI to perform context-aware, identity-aware operations. For instance, instead of just generating a script to list EC2 instances, the AI could first use MCP to programmatically assume the appropriate cross-account role, obtain temporary credentials, and then execute the necessary AWS CLI or SDK commands. This allows the assistant to handle complex scenarios like debugging permissions across account boundaries, deploying infrastructure changes to a specific environment, or auditing resources that reside in different AWS accounts, all while adhering to the principle of least privilege by leveraging short-lived tokens.
💬Example Workflows
In a practical development workflow, a developer could instruct their AI agent to perform a series of dynamic, security-conscious tasks. For example: "Use the STS tool to assume the 'DevOpsReadOnly' role in our staging account, then query all running EC2 instances and their tags to generate a cost report." The AI would invoke the AssumeRole endpoint, capture the temporary credentials, and use them for the subsequent EC2 API calls. Another scenario might be: "Help me debug this deployment failure; the IAM policy might be wrong. Please assume the 'DeployService' role in production and run this CLI command to check the effective permissions." The AI can facilitate this by obtaining the role's credentials and executing the command, providing immediate feedback. Furthermore, for federated users, a developer could ask, "I need to test our SAML-based login flow. Use the STS tool with our Identity Provider's assertion to simulate an AssumeRoleWithSAML call and show me the resulting role session details." This allows the AI to be an active partner in testing and validating complex identity federation setups.
🛡️Security & Auth
When setting up an MCP server for the STS API, security must be the paramount concern. The authentication method for the API calls themselves is typically handled via IAM roles or users whose credentials are configured on the host machine, not embedded in the MCP server. The principle of least privilege is critical: the IAM entity (user or role) that the MCP server uses to call STS must only have the explicit permission (sts:AssumeRole) on the specific target roles it needs to assume, and nothing more. Developers should enforce conditions in IAM policies, such as requiring Multi-Factor Authentication (MFA) for sensitive role assumptions and specifying the externalId parameter for cross-account roles to prevent confused deputy attacks. It is also a best practice to configure the MCP server to use role chaining judiciously and to set very short session durations (e.g., 15 minutes) for the temporary credentials it requests. All configuration should use secure, non-plaintext methods for storing any required parameters, and access to the server itself should be tightly controlled within the development team's environment.

Similar APIs

Other APIs in the Cloud Infrastructure category.

Related MCP Server Integrations

Supabase API MCP Setup

Manage Supabase projects, databases, authentication, and storage through your AI agent.

Cloud InfrastructureConfigure →

Cloudflare API MCP Setup

Manage Cloudflare DNS, CDN, Workers, and security settings through your AI agent.

Cloud InfrastructureConfigure →

Vercel API MCP Setup

Deploy projects, manage domains, and monitor deployments through your AI agent.

Cloud InfrastructureConfigure →

DigitalOcean API MCP Setup

The DigitalOcean API is a comprehensive, RESTful interface provided by DigitalOcean, a leading cloud infrastructure provider focused on simplifying cloud computing for developers, startups, and enterprises. It serves as the programmatic backbone for managing the entire DigitalOcean ecosystem, enabling users to provision, configure, and control cloud resources such as Droplets (virtual private servers), Kubernetes clusters, managed databases, networks, storage volumes, and application platforms. Core capabilities include full lifecycle management of these resources, from creation and scaling to monitoring and deletion, mirroring the functionality available in the DigitalOcean control panel. Its primary use cases range from automating infrastructure setup for CI/CD pipelines and enabling infrastructure-as-code practices to supporting dynamic application scaling and resource optimization for SaaS products, e-commerce sites, and development environments. The API is designed for both developers seeking to automate their cloud operations and businesses that require programmable, scalable cloud infrastructure without the complexity of larger hyperscale providers.

Cloud InfrastructureConfigure →

Access Analyzer MCP Setup

The AWS Identity and Access Management Access Analyzer API provides a powerful, policy-as-code service that automatically identifies resources accessible from outside your AWS account or organization. At its core, the service continuously evaluates resource-based policies—such as Amazon S3 bucket policies, AWS Identity and Access Management (IAM) roles, Amazon KMS key policies, and AWS Lambda function policies—using logic-based reasoning to determine which resources grant access to unknown external principals. Its primary use case is for security and compliance teams within enterprises to proactively detect unintended data exposure, enforce least privilege principles, and audit cross-account and cross-service access. The API endpoints allow programmatic control to create, configure, and query analyzers, manage archive rules for storing findings, and generate custom policy documents, making it a foundational tool for automating cloud security posture management at scale.

Cloud InfrastructureConfigure →