Get the FREE Ultimate OpenClaw Setup Guide →

opgen

A MCP server implementation for password generation, based on 1Password/spg/cmd/opgen

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio syumai-opgen-mcp-server opgen-mcp-server

How to use

The opgen MCP server provides password generation capabilities via the MCP interface. It exposes two main tools: generate_password_characters and generate_password_words. The generate_password_characters tool lets you configure password length, include or exclude character sets (uppercase, lowercase, digits, symbols, and ambiguous characters), and enforce required sets. The generate_password_words tool creates passwords from word-based patterns, offering options for the number of words, word source (words or syllables), separators (hyphen, space, comma, period, underscore, digit, none), and capitalization schemes (none, first, all, random, one). The server copies the resulting password to the clipboard automatically, making it convenient for quick usage in secure workflows. To use it, run the MCP server and configure clients to request either tool with the desired options. You can configure either the generated password by characters or by words depending on your security requirements or user preference.

How to install

Prerequisites:

  • Go (Golang) installed and available on PATH
  • Internet access to fetch the MCP server binary

Install the MCP server:

go install github.com/syumai/opgen-mcp-server@latest

Run the MCP server (one of the following options): Option 1: Run the installed binary directly

opgen-mcp-server

Option 2: Run via Go run (from the latest module)

# This mirrors the alternative configuration in the README
go run github.com/syumai/opgen-mcp-server@latest

By default, the server will listen for MCP requests on the standard port configured by the binary (check logs for the exact port). Ensure your MCP client is configured to point to the server address/port.

Additional notes

Notes:

  • The server copies generated passwords to the clipboard automatically; ensure clipboard access is permitted in your environment.
  • If you run in a restricted environment, verify that the clipboard tool used by the server is available on your OS.
  • The MCP configuration supports two invocation modes: using the built binary (opgen-mcp-server) or running via go run with the module path. Choose the method that fits your deployment workflow.
  • For security, consider restricting access to the MCP server and logging requests for auditing.
  • If you modify character sets or word lists, ensure they are updated in accordance with your organization's password policy.

Related MCP Servers

Sponsor this space

Reach thousands of developers