MCPSERV.CLUB
gitCarrot

AWS Cognito MCP Server

MCP Server

Secure user authentication via AWS Cognito

Stale(50)
2stars
1views
Updated Sep 8, 2025

About

Provides a set of tools for managing users and authentication flows—sign‑up, sign‑in, password reset, MFA, and profile updates—using AWS Cognito as the backend.

Capabilities

Resources
Access data sources
Tools
Execute functions
Prompts
Pre-built templates
Sampling
AI model interactions

AWS Cognito MCP Server

The AWS Cognito MCP server bridges the gap between AI assistants and secure user management by exposing a rich set of authentication tools directly through the Model Context Protocol. It allows Claude (or any MCP‑compatible client) to perform common identity operations—sign‑up, sign‑in, password resets, MFA verification, and profile updates—without leaving the assistant’s environment. For developers building conversational agents that need to authenticate users or manage accounts, this server eliminates the need for custom integration code and provides a consistent API surface.

At its core, the server connects to an existing Amazon Cognito User Pool. Once configured with the pool’s ID and app client ID, it offers a collection of tools that mirror Cognito’s capabilities. Developers can register new users, confirm email codes, authenticate sessions, and refresh tokens—all through simple tool calls. The server also supports password management flows such as sending reset codes, verifying them, and changing passwords for the current user. MFA is handled via TOTP verification, giving agents the ability to enforce two‑factor authentication when necessary.

Key features include:

  • User lifecycle management – create, confirm, update, and delete accounts.
  • Session handling – sign‑in/out, token refresh, and retrieval of the current authenticated user.
  • Security controls – password reset workflows, MFA verification, and attribute updates.
  • Developer ergonomics – no need for SDK wrappers; the MCP interface already handles JSON serialization and error propagation.

Typical use cases span a wide spectrum. A customer support chatbot can authenticate a user, fetch their profile attributes, and tailor responses based on account status. A sales assistant can securely store a user’s preferences after sign‑in, while an internal HR bot can reset passwords or update employee data on demand. Because the server exposes Cognito’s full feature set, it scales from simple sign‑ups in a prototype to enterprise‑grade identity management with fine‑grained access controls.

Integrating the AWS Cognito MCP server into an AI workflow is straightforward: add it to Claude Desktop or Claude Code, and then invoke the relevant tool during a conversation. The assistant can prompt for an email and password, call , and receive an authentication token that the agent can use for subsequent API calls. The server’s stateless design means each tool call is independent, making it easy to chain operations—such as confirming a sign‑up and immediately signing in the new user.

In summary, this MCP server gives developers a powerful, low‑overhead way to add secure authentication and user management to AI agents. By leveraging AWS Cognito’s proven infrastructure, it delivers robust security while keeping the developer experience lightweight and consistent across platforms.