by gitCarrot
Provides tools for user authentication and management via AWS Cognito, exposing MCP actions such as sign‑up, sign‑in, password reset, MFA verification, and user profile updates.
Mcp Server Aws Cognito connects a Model Context Protocol (MCP) server to Amazon Cognito, enabling Claude agents to perform user authentication flows, manage user attributes, and handle session lifecycle directly through MCP‑compatible tools.
git clone https://github.com/gitCarrot/mcp-server-aws-cognito.git
cd mcp-server-aws-cognito
npm install
npm run build
.env
file (or set environment variables) with:
AWS_COGNITO_USER_POOL_ID=your-user-pool-id
AWS_COGNITO_USER_POOL_CLIENT_ID=your-app-client-id
{
"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"
}
}
}
}
Or start the inspector for debugging:
npm run inspector
Q: Do I need an AWS account to run this server? A: Yes, a Cognito User Pool must be provisioned and its IDs supplied via environment variables.
Q: Which Node.js version is required? A: Node.js 18 or newer.
Q: Can I run the server without building it first?
A: For development, use npm run watch
to auto‑rebuild and then execute npx tsx index.ts
.
Q: How does Claude interact with this server? A: Claude communicates over stdio using the MCP protocol; each tool appears as an MCP action that Claude can invoke.
Q: Is there a way to debug the server?
A: Run npm run inspector
to launch the MCP Inspector, which provides a web UI for inspecting request/response payloads.
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.
# 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_USER_POOL_ID=your-user-pool-id
AWS_COGNITO_USER_POOL_CLIENT_ID=your-app-client-id
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.
Before starting make sure Node.js is installed on your desktop for npx
to work.
Go to: Settings > Developer > Edit Config
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"
}
}
}
}
Claude Code is a command-line interface for Claude. To use this MCP server with Claude Code:
Install Claude Code by following the instructions at Claude Code Documentation
Add the MCP server to Claude Code:
claude mcp add "aws-cognito-mcp" npx tsx index.ts
claude mcp list
claude
For development with auto-rebuild:
npm run watch
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!
Please log in to share your review and rating for this MCP.
Explore related MCPs that share similar capabilities and solve comparable challenges
by chaitin
A self‑hosted web application firewall and reverse proxy that protects web applications from attacks and exploits by filtering, monitoring, and blocking malicious HTTP/S traffic.
by PortSwigger
Enables Burp Suite to communicate with AI clients via the Model Context Protocol, providing an MCP server and bundled stdio proxy.
by cycodehq
Boost security in the development lifecycle via SAST, SCA, secrets, and IaC scanning.
by ChristophEnglisch
Provides AI‑powered administration of Keycloak users and realms through the Model Context Protocol, enabling automated creation, deletion, and listing of users and realms from MCP clients such as Claude Desktop.
by Spathodea-Network
Provides a Model Context Protocol server that enables querying and retrieving threat intelligence data from OpenCTI through a standardized interface.
by firstorderai
Provides seamless access to two‑factor authentication codes and passwords for AI agents, enabling automated login while maintaining security.
by vespo92
Manage OPNsense firewalls through conversational AI, providing network configuration, device discovery, DNS filtering, HAProxy setup, and backup/restore via simple commands.
by mytechnotalent
Provides an AI-driven interface to Malware Bazaar, delivering real-time threat intelligence and sample metadata for authorized cybersecurity research workflows.
by co-browser
Verify that any MCP server is running the intended and untampered code via hardware attestation.