Aws Cognito MCP Server

AWS Cognito authentication server for Model Context Protocol

Local serverstdioGo

What is the Aws Cognito MCP server?

Aws Cognito MCP server exists for a simple reason — assistants are far more useful when they can act on Aws Cognito directly instead of describing what you should do. AWS Cognito authentication server for Model Context Protocol.

What you get

  1. Log in to your AWS Console and navigate to Amazon Cognito 2. Create a User Pool or use an existing one 3. Note your User Pool ID and App Client ID 4. Set these values as environment variables or in a .env file (you need .env file only when you use claude code, not claude desktop):

What the assistant can call

Once Aws Cognito is connected, these are the calls the assistant has available:

  • sign_up — Register a new user
  • sign_up_confirm_code_from_email — Verify account with confirmation code
  • sign_in — Authenticate a user
  • sign_out — Sign out the current user
  • getCurrentUser — Get the current signed-in user
  • reset_password_send_code — Request password reset code
  • reset_password_veryify_code — Reset password with verification code
  • change_password — Change password for signed-in user
  • refresh_session — Refresh the authentication tokens
  • update_user_attributes — Update user profile attributes
  • delete_user — Delete the current signed-in user
  • resend_confirmation_code — Resend account verification code

Setting it up

The server ships on npm as tsx, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.

Configuration and credentials

You will need 2 environment variables: AWS_COGNITO_USER_POOL_ID, AWS_COGNITO_USER_POOL_CLIENT_ID. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

  • AWS account with Cognito User Pool configured - Node.js 18 or higher

Choosing this one

This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Aws Cognito's toolset — sign_up, sign_up_confirm_code_from_email, sign_in and 11 more — is a fair guide to whether it matches your workflow. It is maintained by gitCarrot; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against Aws Cognito's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Before you rely on it

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • With 14 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch Aws Cognito.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the aws cognito mcp server does with a few real requests.

Available tools

ToolWhat it does
sign_upRegister a new user
sign_up_confirm_code_from_emailVerify account with confirmation code
sign_inAuthenticate a user
sign_outSign out the current user
getCurrentUserGet the current signed-in user
reset_password_send_codeRequest password reset code
reset_password_veryify_codeReset password with verification code
change_passwordChange password for signed-in user
refresh_sessionRefresh the authentication tokens
update_user_attributesUpdate user profile attributes
delete_userDelete the current signed-in user
resend_confirmation_codeResend account verification code
verify_software_tokenVerify TOTP for MFA
DebuggingSince MCP servers communicate over stdio, debugging can be challenging. Use the MCP Inspector for better visibility:

How to install the Aws Cognito MCP server

{
  "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"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

  • AWS account with Cognito User Pool configured - Node.js 18 or higher
VariableDescriptionRequired
AWS_COGNITO_USER_POOL_IDConfiguration value read at startup.Optional
AWS_COGNITO_USER_POOL_CLIENT_IDConfiguration value read at startup.Optional

Example prompts to try

  • Use Aws Cognito to sign up.
  • Use Aws Cognito to sign up confirm code from email.
  • Use Aws Cognito to sign in.

Frequently asked questions

It connects Aws Cognito to MCP-compatible AI assistants such as Claude and Cursor, exposing 14 tools (sign_up, sign_up_confirm_code_from_email, sign_in, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Aws Cognito directly.