AWS SSO MCP Server
About
Node.js/TypeScript MCP server for AWS Single Sign-On (SSO). Enables AI systems (LLMs) with tools to initiate SSO login (device auth flow), list accounts/roles, and securely execute AWS CLI commands using temporary credentials. Streamlines AI interaction with AWS resources.
Explore
- Authenticate via AWS IAM Identity Center
- List accessible AWS accounts and roles
- Execute arbitrary AWS CLI commands
- Run shell commands on EC2 via SSM
- Supports multi‑account AWS environments
- Two transport modes: STDIO and HTTP/SSE
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
AWS SSO MCP ServerCommand (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
Get up and running in 2 minutes:
Set up AWS IAM Identity Center:
1. Enable AWS IAM Identity Center in your AWS account
2. Configure your identity source (AWS directory, Active Directory, or external IdP)
3. Set up permission sets and assign users to AWS accounts
4. Note your AWS SSO Start URL (e.g., https://your-company.awsapps.com/start)
export AWS_SSO_START_URL="https://your-company.awsapps.com/start"
export AWS_REGION="us-east-1"
npx -y @aashari/mcp-server-aws-sso login
Create ~/.mcp/configs.json for system-wide configuration:
{
"aws-sso": {
"environments": {
"AWS_SSO_START_URL": "https://your-company.awsapps.com/start",
"AWS_REGION": "us-east-1",
"DEBUG": "false"
}
}
}
Alternative config keys: The system also accepts "@aashari/mcp-server-aws-sso" or "mcp-server-aws-sso" instead of "aws-sso".
npm run mcp:stdio
Transport Configuration:
- TRANSPORT_MODE: Set to stdio or http (default: http for server mode, stdio for MCP clients)
- PORT: HTTP server port (default: 3000)
- DEBUG: Enable debug logging (default: false)
AWS Configuration:
- AWS_SSO_START_URL: Your AWS IAM Identity Center start URL (e.g., https://your-org.awsapps.com/start)
- AWS_SSO_REGION or AWS_REGION: AWS region for SSO authentication (e.g., us-east-1)
- AWS_PROFILE: AWS profile name (optional, for CLI compatibility)
- aws_sso_login: Initiates AWS SSO device authorization flow
- Parameters: launchBrowser (optional, boolean, default: true)
- Opens browser automatically for authentication
- Handles device authorization code flow
- Caches tokens for subsequent operations
- aws_sso_status: Checks current authentication status
- No parameters required
- Returns session details and expiration time
- Verifies cached token validity
1. Re-authenticate with AWS SSO:
bash
npx -y @aashari/mcp-server-aws-sso login
``
2. Check your AWS SSO configuration:
- Verify your AWS_SSO_START_URL is correct (should be your organization's SSO portal)AWS_REGION
- Ensure your matches your SSO region configuration
3. Verify your SSO setup:
- Make sure you can access the SSO portal in your browser
- Check that your AWS account assignments are active
If you're still having issues:
1. Run a simple test command to verify everything works
2. Check the GitHub Issues for similar problems
3. Create a new issue with your error message and setup details
For aws_sso_exec_command: Yes, AWS CLI v2 is required to execute AWS commands.
For other tools: No, authentication (aws_sso_login), status checking (aws_sso_status), and account listing (aws_sso_ls_accounts) work without AWS CLI.
For aws_sso_ec2_exec_command`: No, this uses the AWS SDK directly via Systems Manager.
npm install
When integrated with AI assistants via MCP, the following tools are available:
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"aws sso mcp server": {
"mcp-server-aws-sso": {
"command": "npx",
"args": [
"-y",
"@aashari/mcp-server-aws-sso",
"login"
]
}
}
}
}
McpServers
{
"mcp-server-aws-sso": {
"command": "npx",
"args": [
"-y",
"@aashari/mcp-server-aws-sso",
"login"
]
}
}
Connect AI to Your AWS Resources
Transform how you manage and access your AWS infrastructure by connecting Claude, Cursor AI, and other AI assistants directly to your AWS accounts through AWS IAM Identity Center (formerly AWS SSO). Get instant access to your cloud resources, execute commands, and manage EC2 instances using natural language.
What You Can Do
✅ Ask AI about your AWS accounts: "Show me all my AWS accounts and available roles"
✅ Execute AWS commands: "List all S3 buckets in my production account"
✅ Manage EC2 instances: "Check the disk usage on server i-123456789"
✅ Access multi-account setups: "Switch to the staging account and describe the VPCs"
✅ Monitor resources: "Get the status of all running EC2 instances"
✅ Run shell commands: "Execute 'df -h' on my web server via SSM"
Perfect For
- DevOps Engineers managing multi-account AWS environments and infrastructure automation
- Cloud Architects needing quick access to resource information across AWS accounts
- Developers who want to check deployments and run AWS CLI commands through AI
- SRE Teams monitoring and troubleshooting AWS resources using natural language
- IT Administrators managing EC2 instances and executing remote commands securely
- Anyone who wants to interact with AWS using conversational AI
Quick Start
Get up and running in 2 minutes:
1. Get Your AWS SSO Setup
Set up AWS IAM Identity Center:
1. Enable AWS IAM Identity Center in your AWS account
2. Configure your identity source (AWS directory, Active Directory, or external IdP)
3. Set up permission sets and assign users to AWS accounts
4. Note your AWS SSO Start URL (e.g., https://your-company.awsapps.com/start)
2. Try It Instantly
# Set your AWS SSO configuration
export AWS_SSO_START_URL="https://your-company.awsapps.com/start"
export AWS_REGION="us-east-1"
Start the authentication flow
npx -y @aashari/mcp-server-aws-sso login
List your accessible accounts and roles
npx -y @aashari/mcp-server-aws-sso ls-accounts
Execute an AWS command
npx -y @aashari/mcp-server-aws-sso exec-command \
--account-id 123456789012 \
--role-name ReadOnly \
--command "aws s3 ls"
Connect to AI Assistants
For Claude Desktop Users
Add this to your Claude configuration file (~/.claude/claude_desktop_config.json):
{
"mcpServers": {
"aws-sso": {
"command": "npx",
"args": ["-y", "@aashari/mcp-server-aws-sso"],
"env": {
"AWS_SSO_START_URL": "https://your-company.awsapps.com/start",
"AWS_REGION": "us-east-1"
}
}
}
}
Restart Claude Desktop, and you'll see "🔗 aws-sso" in the status bar.
For Other AI Assistants
Most AI assistants support MCP. Install the server globally:
npm install -g @aashari/mcp-server-aws-sso
Then configure your AI assistant to use the MCP server with STDIO transport.
Alternative: Configuration File
Create ~/.mcp/configs.json for system-wide configuration:
{
"aws-sso": {
"environments": {
"AWS_SSO_START_URL": "https://your-company.awsapps.com/start",
"AWS_REGION": "us-east-1",
"DEBUG": "false"
}
}
}
Alternative config keys: The system also accepts "@aashari/mcp-server-aws-sso" or "mcp-server-aws-sso" instead of "aws-sso".
Real-World Examples
🔐 Authenticate and Explore
Ask your AI assistant:
- "Log into AWS SSO and show me my authentication status"
- "List all my AWS accounts and the roles I can assume"
- "Check if I'm still authenticated to AWS"
- "Show me which AWS accounts I have access to"
🛠️ Execute AWS Commands
Ask your AI assistant:
- "List all S3 buckets in my production account using the ReadOnly role"
- "Show me all running EC2 instances in the us-west-2 region"
- "Describe the VPCs in my staging AWS account"
- "Get the status of my RDS databases in account 123456789012"
🖥️ Manage EC2 Instances
Ask your AI assistant:
- "Check the disk usage on EC2 instance i-1234567890abcdef0"
- "Run 'uptime' on my web server via Systems Manager"
- "Execute 'systemctl status nginx' on instance i-abc123 in production"
- "Get memory usage from all my application servers"
🔍 Infrastructure Monitoring
Ask your AI assistant:
- "List all Lambda functions in my development account"
- "Show me the CloudFormation stacks in us-east-1"
- "Check the health of my load balancers"
- "Get the latest CloudWatch alarms that are in ALARM state"
🔄 Multi-Account Operations
Ask your AI assistant:
- "Switch to account 987654321098 with AdminRole and list all security groups"
- "Compare the running instances between staging and production accounts"
- "Check backup policies across all my AWS accounts"
- "Audit IAM users in the security account"
<details>
<summary><b>MCP Tool Examples (Click to expand)</b></summary>
aws_sso_login
Basic Login:
{}
Custom Login Options:
{
"launchBrowser": false
}
aws_sso_status
Check Authentication Status:
{}
aws_sso_ls_accounts
List All Accounts and Roles:
{}
aws_sso_exec_command
List S3 Buckets:
{
"accountId": "123456789012",
"roleName": "ReadOnly",
"command": "aws s3 ls"
}
Describe EC2 Instances in a Specific Region:
{
"accountId": "123456789012",
"roleName": "AdminRole",
"command": "aws ec2 describe-instances --query 'Reservations[].Instances[].[InstanceId,State.Name,InstanceType]' --output table",
"region": "us-west-2"
}
aws_sso_ec2_exec_command
Check System Resources:
{
"instanceId": "i-0a69e80761897dcce",
"accountId": "123456789012",
"roleName": "InfraOps",
"command": "uptime && df -h && free -m"
}
</details>
Transport Modes
This server supports two transport modes for different integration scenarios:
STDIO Transport (Default for MCP Clients)
- Traditional subprocess communication via stdin/stdout - Ideal for local AI assistant integrations (Claude Desktop, Cursor AI) - Uses pipe-based communication for direct MCP protocol exchange# Run with STDIO transport (default for AI assistants)
TRANSPORT_MODE=stdio npx @aashari/mcp-server-aws-sso
Using npm scripts (after installation)
npm run mcp:stdio
HTTP Transport (Default for Server Mode)
- Modern HTTP-based transport with Server-Sent Events (SSE) - Supports multiple concurrent connections - Better for web-based integrations and development - Runs on port 3000 by default (configurable via PORT env var) - Endpoint: http://localhost:3000/mcp - Health check: http://localhost:3000/# Run with HTTP transport (default when no CLI args)
TRANSPORT_MODE=http npx @aashari/mcp-server-aws-sso
Using npm scripts (after installation)
npm run mcp:http
Test with MCP Inspector
npm run mcp:inspect
Environment Variables
Transport Configuration:
- TRANSPORT_MODE: Set to stdio or http (default: http for server mode, stdio for MCP clients)
- PORT: HTTP server port (default: 3000)
- DEBUG: Enable debug logging (default: false)
AWS Configuration:
- AWS_SSO_START_URL: Your AWS IAM Identity Center start URL (e.g., https://your-org.awsapps.com/start)
- AWS_SSO_REGION or AWS_REGION: AWS region for SSO authentication (e.g., us-east-1)
- AWS_PROFILE: AWS profile name (optional, for CLI compatibility)
Available Tools
When integrated with AI assistants via MCP, the following tools are available:
Authentication Tools
…
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



