Cover image
Try Now
2025-03-24

3 years

Works with Finder

1

Github Watches

1

Github Forks

0

Github Stars

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

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

  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):
AWS_COGNITO_USER_POOL_ID=your-user-pool-id
AWS_COGNITO_USER_POOL_CLIENT_ID=your-app-client-id

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.

  1. Go to: Settings > Developer > Edit Config

  2. Add the following to your 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"
      }
    }
  }
}

Using with Claude Code

Claude Code is a command-line interface for Claude. To use this MCP server with Claude Code:

  1. Install Claude Code by following the instructions at Claude Code Documentation

  2. Add the MCP server to Claude Code:

claude mcp add "aws-cognito-mcp" npx tsx index.ts
  1. Verify it's been added:
claude mcp list
  1. Run Claude with your MCP server:
claude

Development

For development with auto-rebuild:

npm run watch

Debugging

Since MCP servers communicate over stdio, debugging can be challenging. Use the MCP Inspector for better visibility:

npm run inspector

Now you can use the AWS Cognito authentication tools with Claude!

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Bora Yalcin
  • Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Lists Tailwind CSS classes in monospaced font

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • Yasir Eryilmaz
  • AI scriptwriting assistant for short, engaging video content.

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • huahuayu
  • 统一的API网关,用于将多个Etherscan样区块链Explorer API与对AI助手的模型上下文协议(MCP)支持。

  • deemkeen
  • 用电源组合控制您的MBOT2:MQTT+MCP+LLM

  • jae-jae
  • MCP服务器使用剧作《无头浏览器》获取网页内容。

    Reviews

    5 (1)
    Avatar
    user_uJWvOVVA
    2025-04-16

    Http Rquest by xxxbrian is an outstanding tool for managing HTTP requests efficiently. Its intuitive design and robust functionality make it a must-have for developers looking to streamline their server communication processes. The easy-to-navigate interface and comprehensive features ensure a seamless experience for both novice and advanced users. Highly recommended! Check it out here: https://mcp.so/server/http-rquest/xxxbrian