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
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 |
---|---|---|
sign_up | Register a new user | email : string, password : string |
sign_up_confirm_code_from_email | Verify account with confirmation code | username : string, confirmationCode : string |
sign_in | Authenticate a user | username : string, password : string |
sign_out | Sign out the current user | None |
getCurrentUser | Get the current signed-in user | None |
reset_password_send_code | Request password reset code | username : string |
reset_password_veryify_code | Reset password with verification code | username : string, code : string, newPassword : string |
change_password | Change password for signed-in user | oldPassword : string, newPassword : string |
refresh_session | Refresh the authentication tokens | None |
update_user_attributes | Update user profile attributes | attributes : Array of {name: string, value: string} |
delete_user | Delete the current signed-in user | None |
resend_confirmation_code | Resend account verification code | username : string |
verify_software_token | Verify TOTP for MFA | username : string, totpCode : 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!
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Una implementación de servidor de protocolo de contexto de modelo que se conecta a AWS Cognito para la autenticación y la gestión de usuarios, y proporciona herramientas para los flujos de usuarios, incluido el registro, el inicio de sesión y la gestión de contraseñas.
Related MCP Servers
- AsecurityAlicenseAqualityThis server implements the Model Context Protocol to facilitate meaningful interaction and understanding development between humans and AI through structured tools and progressive interaction patterns.Last updated -54MIT License
- -securityAlicense-qualityA Model Context Protocol server that enables LLMs to interact with databases (currently MongoDB) through natural language, supporting operations like querying, inserting, deleting documents, and running aggregation pipelines.Last updated -MIT License
- AsecurityFlicenseAqualityA Model Context Protocol server implementation that provides endpoints for wallet-based authentication, cluster management, and name registration services.Last updated -1
- -securityFlicense-qualityA Model Context Protocol server that requires user authentication via Auth0 before enabling secure API access on behalf of the authenticated user.Last updated -