Skip to main content

MCP Server for OTP

Project description

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

Project details


Download files

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

Source Distribution

otp_mcp_server-0.3.0.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

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

otp_mcp_server-0.3.0-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: otp_mcp_server-0.3.0.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for otp_mcp_server-0.3.0.tar.gz
Algorithm Hash digest
SHA256 65ee728cd86291d15992c56df1a608b7ce25c962ee7653c6ac322f3320ce1fbd
MD5 441e7b78a7ddd71da118c1305e666be8
BLAKE2b-256 b7410232d0b051a7953c11f5c46ab5711f97f406b55aa9e0a240c44dd75fda3b

See more details on using hashes here.

Provenance

The following attestation bundles were made for otp_mcp_server-0.3.0.tar.gz:

Publisher: release.yml on andreax79/otp-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: otp_mcp_server-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 11.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for otp_mcp_server-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0f52129b4aac4795ebecb87f609297fc57a882d93fd9adba89c2d96376f8ab4b
MD5 1cb9ebf80967e62b4fc4ccca15de0bbd
BLAKE2b-256 9cc22304a297386e683cc927223b9f47b96c6ba9d260a4c67889bbf911836094

See more details on using hashes here.

Provenance

The following attestation bundles were made for otp_mcp_server-0.3.0-py3-none-any.whl:

Publisher: release.yml on andreax79/otp-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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