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.
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: MCP Database Server
Installation
AWS 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):
Available Tools
Tool Name | Description | Parameters |
| Register a new user |
: string,
: string |
| Verify account with confirmation code |
: string,
: string |
| Authenticate a user |
: string,
: string |
| Sign out the current user | None |
| Get the current signed-in user | None |
| Request password reset code |
: string |
| Reset password with verification code |
: string,
: string,
: string |
| Change password for signed-in user |
: string,
: string |
| Refresh the authentication tokens | None |
| Update user profile attributes |
: Array of
|
| Delete the current signed-in user | None |
| Resend account verification code |
: string |
| Verify TOTP for MFA |
: string,
: string |
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:
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:
Verify it's been added:
Run Claude with your MCP server:
Development
For development with auto-rebuild:
Debugging
Since MCP servers communicate over stdio, debugging can be challenging. Use the MCP Inspector for better visibility:
Now you can use the AWS Cognito authentication tools with Claude!