Skip to main content
Glama

AWS Cognito MCP Server

by gitCarrot

AWS Cognito MCP 服务器

一个模型上下文协议 (MCP) 服务器实现,用于连接到 AWS Cognito 进行身份验证和用户管理。该服务器提供了一组用于用户身份验证流程的工具,包括注册、登录、密码管理等。

先决条件

  • 配置了 Cognito 用户池的 AWS 账户

  • Node.js 18 或更高版本

安装

# 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 build

AWS Cognito 配置

  1. 登录您的 AWS 控制台并导航到 Amazon Cognito

  2. 创建用户池或使用现有用户池

  3. 记下您的用户池 ID 和应用程序客户端 ID

  4. 将这些值设置为环境变量或 .env 文件(仅当您使用 claude 代码而不是 claude 桌面时才需要 .env 文件):

AWS_COGNITO_USER_POOL_ID=your-user-pool-id AWS_COGNITO_USER_POOL_CLIENT_ID=your-app-client-id

可用工具

工具名称

描述

参数

sign_up

注册新用户

email

:字符串,

password

:字符串

sign_up_confirm_code_from_email

使用确认码验证帐户

username

:字符串,

confirmationCode

:字符串

sign_in

验证用户身份

username

:字符串,

password

:字符串

sign_out

退出当前用户

没有任何

getCurrentUser

获取当前登录用户

没有任何

reset_password_send_code

请求密码重置代码

username

:字符串

reset_password_veryify_code

使用验证码重置密码

username

:字符串,

code

:字符串,

newPassword

:字符串

change_password

更改登录用户的密码

oldPassword

:字符串,

newPassword

:字符串

refresh_session

刷新身份验证令牌

没有任何

update_user_attributes

更新用户个人资料属性

attributes

{name: string, value: string}

数组

delete_user

删除当前登录用户

没有任何

resend_confirmation_code

重新发送账户验证码

username

:字符串

verify_software_token

验证 MFA 的 TOTP

username

:字符串,

totpCode

:字符串

检查器将提供一个 URL 来访问浏览器中的调试工具。

与 Claude Desktop 一起使用

开始之前,请确保您的桌面上安装了Node.js ,以使npx能够正常工作。

  1. 前往:设置 > 开发者 > 编辑配置

  2. 将以下内容添加到您的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" } } } }

与 Claude 代码一起使用

Claude Code 是 Claude 的命令行界面。要将此 MCP 服务器与 Claude Code 配合使用:

  1. 按照Claude Code 文档中的说明安装 Claude Code

  2. 将 MCP 服务器添加到 Claude 代码:

claude mcp add "aws-cognito-mcp" npx tsx index.ts
  1. 验证是否已添加:

claude mcp list
  1. 使用您的 MCP 服务器运行 Claude:

claude

发展

对于使用自动重建的开发:

npm run watch

调试

由于 MCP 服务器通过 stdio 进行通信,调试起来可能比较困难。使用 MCP 检查器可以更好地了解情况:

npm run inspector

现在您可以将 AWS Cognito 身份验证工具与 Claude 一起使用!

-
security - not tested
F
license - not found
-
quality - not tested

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.

模型上下文协议服务器实现,连接到 AWS Cognito 进行身份验证和用户管理,为用户流程提供工具,包括注册、登录和密码管理。

  1. 先决条件
    1. 安装
      1. AWS Cognito 配置
        1. 可用工具
          1. 与 Claude Desktop 一起使用
            1. 与 Claude 代码一起使用
              1. 发展
                1. 调试

              Related MCP Servers

              • A
                security
                A
                license
                A
                quality
                This 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 -
                54
                MIT License
              • -
                security
                A
                license
                -
                quality
                A 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
                • Apple
              • A
                security
                F
                license
                A
                quality
                A Model Context Protocol server implementation that provides endpoints for wallet-based authentication, cluster management, and name registration services.
                Last updated -
                1
              • -
                security
                F
                license
                -
                quality
                A Model Context Protocol server that requires user authentication via Auth0 before enabling secure API access on behalf of the authenticated user.
                Last updated -

              View all related MCP servers

              MCP directory API

              We provide all the information about MCP servers via our MCP API.

              curl -X GET 'https://glama.ai/api/mcp/v1/servers/gitCarrot/mcp-server-aws-cognito'

              If you have feedback or need assistance with the MCP directory API, please join our Discord server