The OTP-MCP server is a Model Context Protocol server that provides secure OTP (One-Time Password) generation and management for integration with AI assistants and applications.
Core Capabilities:
List OTP tokens - View all available tokens in your database
Search tokens - Retrieve detailed information for tokens matching a specific pattern (name or token number)
Generate OTP codes - Calculate one-time password codes for matching tokens
Add new tokens - Register tokens with customizable settings:
TOTP (Time-based) and HOTP (HMAC-based) algorithms
Multiple hashing algorithms (SHA1, SHA256, SHA512, MD5)
Configurable secret key, issuer, account, code length (digits), time period, and counter values
Delete tokens - Remove tokens from your database by pattern matching
Integration & Configuration:
Multiple transport protocols: STDIO (for Claude Desktop), HTTP Stream, and SSE
Flexible configuration via command-line arguments or environment variables for database, host, port, transport, and logging
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@otp-mcp-servergenerate a TOTP for my GitHub account"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
OTP-MCP-Server
Model Context Protocol (MCP) server that provides OTP (One-Time Password) generation
A Model Context Protocol (MCP) server built with FastMCP that provides secure OTP (One-Time Password) generation. Supports TOTP (Time-based) and HOTP (HMAC-based) algorithms and multiple transport options including stdio, SSE, and HTTP Stream for seamless integration with AI assistants and applications.
Quick Start
Installation
# Use uvx for isolated execution
uvx otp-mcp-server
# Or install from PyPI
pip install otp-mcp-serverBasic Usage
# Run with STDIO (default, for Claude Desktop)
otp-mcp-server
# Run with HTTP Stream transport
otp-mcp-server --http-stream --host 127.0.0.1 --port 8000
# Run with SSE transport
otp-mcp-server --sse --host 127.0.0.1 --port 8000Using with Claude Desktop
Add to your Claude Desktop configuration:
{
"mcpServers": {
"otp": {
"command": "uvx",
"args": ["otp-mcp-server"]
}
}
}Configuration
You can configure the server using command-line arguments or environment variables.
Environment Variable | Description |
| Path to the tokens database file |
| Host to bind the server to |
| Port to bind the server to |
| Transport protocol to use |
| Path for HTTP transport |
| Logging level |
Resources
Looking for Admin?
Admins can modify the Dockerfile, update the server description, and track usage metrics. If you are the server author, to access the admin panel.