Skip to main content
Glama

AWS Cognito MCP Server

by gitCarrot

AWS Cognito MCP サーバー

AWS Cognito に接続して認証とユーザー管理を行うモデルコンテキストプロトコル (MCP) サーバー実装。サインアップ、サインイン、パスワード管理など、ユーザー認証フローに必要なツールセットを提供します。

前提条件

  • 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 ファイルで設定します (.env ファイルは、claude デスクトップではなく、claude コードを使用する場合にのみ必要です)。
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_tokenMFAのTOTPを確認するusername : 文字列、 totpCode : 文字列

インスペクターは、ブラウザでデバッグ ツールにアクセスするための URL を提供します。

Claude Desktopでの使用

開始する前に、 npxが動作するためにデスクトップにNode.jsがインストールされていることを確認してください。

  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 Codeと併用

Claude CodeはClaude用のコマンドラインインターフェースです。このMCPサーバーをClaude Codeで使用するには、以下の手順に従ってください。

  1. Claude Codeドキュメントの指示に従ってClaude Codeをインストールします。
  2. Claude Code に MCP サーバーを追加します。
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

これで、Claude で AWS Cognito 認証ツールを使用できるようになりました。

-
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 Codeと併用
              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 -
                13
                51
                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 -
                TypeScript
                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 -
                TypeScript
              • -
                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 -
                TypeScript

              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