AWS Cognito MCP Server
Provides user authentication and management capabilities including sign-up, sign-in, password reset/change, session management, user attribute updates, account verification, MFA (TOTP), and user deletion through AWS Cognito User Pools.
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., "@AWS Cognito MCP Server sign up a new user with email john.doe@example.com and password SecurePass123!"
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.
AWS Cognito MCP Server
A Model Context Protocol (MCP) server implementation that connects to AWS Cognito for authentication and user management. This server provides a set of tools for user authentication flows including sign-up, sign-in, password management, and more.
Prerequisites
AWS account with Cognito User Pool configured
Node.js 18 or higher
Related MCP server: Remote MCP Server with GitHub OAuth
Installation
# Clone the repository
git clone https://github.com/yourusername/mcp-server-aws-cognito.git
# Install dependencies
cd mcp-server-aws-cognito
npm install
# Build the server
npm run buildAWS Cognito Configuration
Log in to your AWS Console and navigate to Amazon Cognito
Create a User Pool or use an existing one
Note your User Pool ID and App Client ID
Set these values as environment variables or in a .env file (you need .env file only when you use claude code, not claude desktop):
AWS_COGNITO_USER_POOL_ID=your-user-pool-id
AWS_COGNITO_USER_POOL_CLIENT_ID=your-app-client-idAvailable Tools
Tool Name | Description | Parameters |
| Register a new user |
|
| Verify account with confirmation code |
|
| Authenticate a user |
|
| Sign out the current user | None |
| Get the current signed-in user | None |
| Request password reset code |
|
| Reset password with verification code |
|
| Change password for signed-in user |
|
| Refresh the authentication tokens | None |
| Update user profile attributes |
|
| Delete the current signed-in user | None |
| Resend account verification code |
|
| Verify TOTP for MFA |
|
The Inspector will provide a URL to access debugging tools in your browser.
Using with Claude Desktop
Before starting make sure Node.js is installed on your desktop for npx to work.
Go to: Settings > Developer > Edit Config
Add the following to your
claude_desktop_config.json:
{
"mcpServers": {
"aws-cognito-mcp-server": {
"command": "/path/to/mcp-server-aws-cognito/build/index.js",
"env": {
"AWS_COGNITO_USER_POOL_ID": "your-user-pool-id",
"AWS_COGNITO_USER_POOL_CLIENT_ID": "your-app-client-id"
}
}
}
}Using with Claude Code
Claude Code is a command-line interface for Claude. To use this MCP server with Claude Code:
Install Claude Code by following the instructions at Claude Code Documentation
Add the MCP server to Claude Code:
claude mcp add "aws-cognito-mcp" npx tsx index.tsVerify it's been added:
claude mcp listRun Claude with your MCP server:
claudeDevelopment
For development with auto-rebuild:
npm run watchDebugging
Since MCP servers communicate over stdio, debugging can be challenging. Use the MCP Inspector for better visibility:
npm run inspectorNow you can use the AWS Cognito authentication tools with Claude!
Available Tools
13 toolschange_passwordD
Inputs: oldPassword (required), newPassword (required).
confirm_code_from_email_for_signUpD
Inputs: username (required), confirmationCode (required).
delete_userD
Inputs: no named parameters.
getCurrentUserD
Inputs: no named parameters.
refresh_sessionD
Inputs: no named parameters.
resend_confirmation_codeD
Inputs: username (required).
reset_password_send_codeD
Inputs: username (required).
reset_password_veryify_codeD
Inputs: username (required), code (required), newPassword (required).
sign_inD
Inputs: username (required), password (required).
sign_outD
Inputs: no named parameters.
sign_upD
Inputs: password (required), email (required).
update_user_attributesD
Inputs: attributes (required).
verify_software_tokenD
Inputs: username (required), totpCode (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 13 tools
Most tools have distinct purposes targeting specific Cognito operations like sign_in, sign_up, change_password, and delete_user. However, reset_password_send_code and reset_password_veryify_code could potentially be confused with resend_confirmation_code or confirm_code_from_email_for_signUp due to overlapping 'code' terminology, though their contexts differ.
The naming is mostly snake_case with clear verb_noun patterns (e.g., sign_in, delete_user), but there are inconsistencies: getCurrentUser uses camelCase instead of snake_case, and verify_software_token is less descriptive compared to others. This mixed style reduces predictability.
With 13 tools, this is well-scoped for an AWS Cognito server, covering essential user management and authentication workflows. Each tool appears to serve a specific function without obvious bloat, making the count appropriate for the domain.
The tool set provides good coverage of core Cognito operations, including user lifecycle (sign-up, sign-in, update, delete), password management, and session handling. Minor gaps might include admin functions or multi-factor authentication setup, but basic workflows are well-supported.
Maintenance
Related MCP Connectors
Model Context Protocol server for Studex tools, notifications, and profile integrations
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
A Model Context Protocol server for Wix AI tools
Model Context Protocol server for todo.vu task management and time tracking.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that requires user authentication via Auth0 before enabling secure API access on behalf of the authenticated user.-
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that supports remote connections and authenticates users via GitHub OAuth, allowing them to access tools based on their GitHub identity.-
- AlicenseBqualityDmaintenanceA Model Context Protocol server that enables management of Keycloak users and realms through a standardized interface, providing tools for user creation, deletion, role assignment, and group management.987 npm13MIT
- AlicenseCqualityDmaintenanceA Model Context Protocol server demonstrating user management capabilities with tools for creating, retrieving, and generating random user data.2ISC