otp-mcp-server
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 "Deploy 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-server generate 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 |
Available Tools
5 toolsadd_tokenC
Add a new OTP token.
Args:
secret: Base32 encoded secret key
issuer: Issuer of the OTP token
account: Accout for the OTP token
type: Type of the OTP token (TOTP or HOTP) (default is TOTP)
algorithm: Hashing algorithm to use (SHA1, SHA256, SHA512, MD5) (default is SHA1)
counter: Counter value for HOTP tokens (default is 0)
digits: Number of digits in the OTP code (default is 6)
period: Time period for TOTP tokens in seconds (default is 30)
Inputs: secret (required), issuer (required), account (required), type, +4 more.
calculate_otp_codesC
Calculate the OTP code for all tokens matching the pattern.
Args:
pattern: Token pattern (part of the name or token number)
Inputs: pattern (required).
delete_tokenC
Delete an OTP token matching the pattern.
Args:
pattern: Token pattern (part of the name or token number)
Inputs: pattern (required).
get_detailsC
Get the details of all the OTP tokens matching the pattern
Args:
pattern: Token pattern (part of the name or token number)
Inputs: pattern (required).
list_otp_tokensA
Returns the list of OTP tokens. Use this to understand which tokens are available before trying to generate code.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool has a clearly distinct purpose: add_token creates tokens, calculate_otp_codes generates codes, delete_token removes tokens, get_details retrieves token metadata, and list_otp_tokens enumerates available tokens. There is no functional overlap between these operations.
Four tools follow a consistent verb_noun pattern (add_token, delete_token, get_details, list_otp_tokens), but calculate_otp_codes uses a verb_object format that slightly deviates from the pattern. The naming is still highly readable and predictable.
With 5 tools, this server is well-scoped for OTP management. It covers the essential CRUD operations (add, delete, list, get details) plus code calculation, which is the core functionality. No tool feels redundant or missing for the domain.
The toolset provides complete coverage for OTP token management: creation (add_token), retrieval (list_otp_tokens, get_details), usage (calculate_otp_codes), and deletion (delete_token). There are no obvious gaps in the lifecycle or functionality for this domain.
Maintenance
Related MCP Connectors
Tiny devtools MCP server: slugs, timestamps, case conversion, hashing, base64, UUIDs.
Demo banking MCP server: accounts, transactions and payments. OAuth 2.1 with DPoP.
An MCP server that provides read access to your cloud storage providers, bank accounts and more.
Related MCP Servers
- AlicenseAqualityDmaintenanceA simple MCP server that provides current time in Korean timezone (KST) with multiple format options and generates random numbers within customizable ranges.2MIT
- AlicenseNot gradedqualityDmaintenanceA secure MCP server with authentication, rate limiting, and tools for querying records and managing integrations.1,498 npmMIT
- AlicenseNot gradedqualityCmaintenanceA simple PHP MCP server that auto-discovers tool classes via reflection and authenticates requests via static bearer token or rotating TOTP codes.1MIT
- AlicenseNot gradedqualityDmaintenanceComprehensive MCP server offering password generation, QR code creation, Base64 encoding/decoding, UUID generation, and color palette tools with secure API key authentication.ISC