Skip to main content

OTP-MCP-Server

Build Status PyPI version Python 3.11+ License: MIT Code style: black Imports: isort

otp-mcp-server 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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iflow_mcp_andreax79_otp_mcp_server-0.3.0.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file iflow_mcp_andreax79_otp_mcp_server-0.3.0.tar.gz.

File metadata

File hashes

Hashes for iflow_mcp_andreax79_otp_mcp_server-0.3.0.tar.gz
Algorithm Hash digest
SHA256 239664ca6049bd744d234c09fddf4873de44708762303253357770970706e5b6
MD5 d994bbc2fb9c669495846330efb83a2c
BLAKE2b-256 1332e57e979d83c87112e50e51c06548308be8dfa4b95c2a04a84333d548aa0b

See more details on using hashes here.

File details

Details for the file iflow_mcp_andreax79_otp_mcp_server-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for iflow_mcp_andreax79_otp_mcp_server-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 225e332a7fda89a790d449d45e734e9060acd11e1395fe231fa660e174a28dfd
MD5 189e24dcb58a98464e79e63173dc8bd5
BLAKE2b-256 e9223c1aec04e22be9bb70f9ba20ba40d9c5d2e895a34499757f8bff72eac43f

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page