# Otp Ai MCP

> Otp Ai MCP is an open-source MCP server for security. MCP server that generates and verifies TOTP/HOTP one-time codes for AI assistants. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, self-hosted
- **Repository:** https://github.com/csoai-org/otp-ai-mcp
- **MCP Registry name:** io.github.CSOAI-ORG/otp-ai-mcp
- **Categories:** [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-11-18

## About

The README says this MCP server handles time-based and counter-based one-time passwords, the TOTP and HOTP schemes used for two-factor authentication. It exposes tools such as generate_otp, verify_otp and generate_secret, which an MCP-compatible assistant can call during a task.

It installs from PyPI as otp-ai-mcp and runs over stdio, so it can be wired into Claude Desktop or another MCP client with a short JSON config. Installation via Smithery is also documented.

The project is aimed at developers and operators who want an assistant to produce or check OTP codes for testing or automation. The source is MIT-licensed and can be self-hosted at no cost.

## Features

- **Generate OTP codes:** Produces TOTP or HOTP one-time codes from a secret through the generate_otp tool.
- **Verify OTP codes:** Checks a submitted code against a secret using the verify_otp tool.
- **Create secrets:** Generates a new shared secret with the generate_secret tool.
- **Stdio transport:** Runs as a local stdio server that MCP clients can launch directly.
- **Easy installation:** Available on PyPI and installable through Smithery.

## Good for

- Testing two-factor login flows during application development
- Letting an assistant verify a one-time code during an automated check
- Generating a fresh secret for a new TOTP-enabled account in a test environment

## Install

### Claude Code (Terminal)

```sh
claude mcp add otp-ai-mcp -- uvx otp-ai-mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "otp-ai-mcp": {
      "command": "uvx",
      "args": [
        "otp-ai-mcp"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "otp-ai-mcp": {
      "command": "uvx",
      "args": [
        "otp-ai-mcp"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "otp-ai-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "otp-ai-mcp"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "otp-ai-mcp": {
      "command": "uvx",
      "args": [
        "otp-ai-mcp"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "otp-ai-mcp": {
      "command": "uvx",
      "args": [
        "otp-ai-mcp"
      ]
    }
  }
}
```

## Tools

- `generate_otp`: Generate a one-time password code.
- `verify_otp`: Verify a one-time password code.
- `generate_secret`: Generate a new OTP secret.

## FAQ

### Is this MCP server free to use?

The README says the source is MIT-licensed and free to self-host. It also describes a pay-per-job service from MEOK without a public price list.

### How is it installed?

The README gives pip install otp-ai-mcp or npx installation via Smithery, and a JSON config for Claude Desktop using uvx.

### What tools does it expose?

The README lists generate_otp, verify_otp and generate_secret as example tools.

### Is Otp Ai MCP free?

Yes. Otp Ai MCP is open source, so you can use and self-host it for free.

### How do I add Otp Ai MCP to Claude Code?

Run this command in your terminal: claude mcp add otp-ai-mcp -- uvx otp-ai-mcp

### What are the best alternatives to Otp Ai MCP?

The closest alternatives to Otp Ai MCP are Password Ai MCP, MyOTP.App, Proofof Ai MCP, MCP Server Auth Template and Authn8.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Password Ai MCP](https://ai-powered.com/mcp/password-ai-mcp): Password Ai MCP is an open-source MCP server for security.
- [MyOTP.App](https://ai-powered.com/mcp/myotp-app): MyOTP.App is an MCP server for communication.
- [Proofof Ai MCP](https://ai-powered.com/mcp/proofof-ai-mcp): Proofof Ai MCP is an open-source MCP server for security.
- [MCP Server Auth Template](https://ai-powered.com/mcp/mcp-server-auth-template): MCP Server Auth Template is an open-source MCP server for security.
- [Authn8](https://ai-powered.com/mcp/authn8): Authn8 is a freemium MCP server for security.

---
Source: https://ai-powered.com/mcp/otp-ai-mcp
