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-server
Basic 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 8000
Using 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 |
|---|---|
OTP_MCP_SERVER_DB |
Path to the tokens database file |
OTP_MCP_SERVER_HOST |
Host to bind the server to |
OTP_MCP_SERVER_PORT |
Port to bind the server to |
OTP_MCP_SERVER_TRANSPORT |
Transport protocol to use |
OTP_MCP_SERVER_PATH |
Path for HTTP transport |
OTP_MCP_SERVER_LOG_LEVEL |
Logging level |
Metadata
Release files for otp-mcp-server 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| otp_mcp_server-0.3.0.tar.gz | 8.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| otp_mcp_server-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.5 kB
Release files / otp_mcp_server-0.3.0.tar.gz
| Download URL | otp_mcp_server-0.3.0.tar.gz |
|---|---|
| Size | 8.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
65ee728cd86291d15992c56df1a608b7ce25c962ee7653c6ac322f3320ce1fbd
|
|
BLAKE2b-256 checksum How to use checksums |
b7410232d0b051a7953c11f5c46ab5711f97f406b55aa9e0a240c44dd75fda3b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 27, 2025.
Transparency logRelease files / otp_mcp_server-0.3.0-py3-none-any.whl
| Download URL | otp_mcp_server-0.3.0-py3-none-any.whl |
|---|---|
| Size | 11.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0f52129b4aac4795ebecb87f609297fc57a882d93fd9adba89c2d96376f8ab4b
|
|
BLAKE2b-256 checksum How to use checksums |
9cc22304a297386e683cc927223b9f47b96c6ba9d260a4c67889bbf911836094
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 27, 2025.
Transparency log