Password Generator MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Password Generator MCP Servergenerate a strong password for my email"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Password Generator MCP Server
A simple Model Context Protocol (MCP) server built using the Python MCP SDK to demonstrate the three core MCP Primitives:
š ļø Tools ā Generate a secure password.
š Resources ā Expose a password policy.
š” Prompts ā Provide a reusable prompt template for generating secure passwords.
This project accompanies my Medium article on MCP Inspector and MCP Primitives, providing a hands-on example to help you understand how these concepts work together.
Project Structure
MCP-INSPECTOR/
ā
āāā prompts/
ā āāā __init__.py
ā āāā password_prompt.py
ā
āāā resources/
ā āāā __init__.py
ā āāā password_resource.py
ā
āāā tools/
ā āāā __init__.py
ā āāā password_tool.py
ā
āāā .gitignore
āāā .python-version
āāā app.py
āāā pyproject.toml
āāā README.md
āāā server.py
āāā uv.lockProject Overview
app.py ā Creates the FastMCP server instance.
server.py ā Entry point that registers all MCP primitives and starts the server.
tools/password_tool.py ā Implements the Password Generator Tool.
resources/password_resource.py ā Exposes the Password Policy Resource.
prompts/password_prompt.py ā Defines the reusable Prompt template.
pyproject.toml ā Project configuration and project dependencies.
uv.lock ā Lock file generated by UV.
README.md ā Project documentation.
Clone the Repository
Clone the repository to your local machine.
git clone <YOUR_GITHUB_REPOSITORY_LINK>Navigate to the project directory.
cd MCP-INSPECTORSynchronize and install all project dependencies.
uv syncActivate the virtual environment.
Windows
.venv\Scripts\activateRunning the MCP Server with MCP Inspector
Start the MCP server using:
mcp dev server.pyThis command starts the MCP server and automatically launches MCP Inspector in your browser.
Using MCP Inspector you can:
View all registered MCP primitives.
Execute Tools.
Read Resources.
Test Prompt templates.
Validate your MCP server before integrating it with an MCP client.
Screenshot: MCP Inspector Home Page
Testing the Tool
Open the Tools section inside MCP Inspector.
Select generate_password and provide the required inputs such as:
Password Length
Include Special Characters
Execute the Tool to generate a secure password.
Screenshot: Password Generator Tool
Screenshot: Generated Password Output
Testing the Resource
Open the Resources section.
Select the password://policy resource.
The server returns the password policy and security recommendations exposed by the MCP server.
Screenshot: Password Policy Resource
Testing the Prompt
Navigate to the Prompts section.
Select create_secure_password_prompt.
Provide an account type such as:
Banking
Email
Social Media
The Prompt generates a reusable instruction template for creating a secure password.
Screenshot: Prompt Execution
Installing the MCP Server in Claude Desktop
Open a new terminal and run:
mcp install server.pyOnce the installation is complete, restart Claude Desktop if it is already running.
Claude Desktop will automatically discover the MCP server and its registered primitives.
You can now interact with the server using natural language.
For example:
Generate a strong password for my email.
or
Show me the password policy.
Claude Desktop Detecting the MCP Server
Claude Desktop Invoking the Password Generator Tool
Creating an MCP Project from Scratch
If you'd like to build your own MCP server from scratch, follow these steps.
1. Initialize a UV Project
uv init2. Create a Virtual Environment
uv venv3. Activate the Virtual Environment
Windows
.venv\Scripts\activate4. Install the MCP SDK
uv add "mcp[cli]"5. Start MCP Inspector
mcp dev server.py6. Install the MCP Server in Claude Desktop
Open a new terminal and run:
mcp install server.pyMCP Primitives Included
š ļø Tool
generate_password()
Generates a secure password with configurable length and optional special characters.
š Resource
password://policy
Returns the password generation policy and recommended password security practices.
š” Prompt
create_secure_password_prompt()
Creates a reusable prompt template for generating a secure password for a specified account type.
Medium Article
If you're new to MCP and would like a detailed explanation of MCP Inspector and MCP Primitives, check out my accompanying Medium article.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceEnables users to manage tasks with priorities, perform calculations with history, generate secure passwords, and analyze text, all through MCP tools, resources, and prompts.Last updated1
- Flicense-qualityCmaintenanceEnables AI agents and MCP clients to securely store, retrieve, and manage encrypted credentials without hardcoding API keys.Last updated
- Alicense-qualityBmaintenanceProvides MCP tools for AI agents to securely access approved 1Password logins via encrypted handles, resolving secrets locally through the 1Password CLI without exposing plaintext passwords.Last updatedMIT
- Flicense-qualityCmaintenanceMCP server for the Nextcloud Passwords app, enabling reading and managing password entries (list, search, create, update, delete) with strong security guarantees.Last updated
Related MCP Connectors
Secure password generator MCP.
Hash passwords with bcrypt and issue/verify JWT session tokens over A2A + MCP.
Production-grade cryptography toolkit with 31 MCP tools for classical, PQC, and KMS workflows.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/raki0230/mcp-inspector-and-primitives'
If you have feedback or need assistance with the MCP directory API, please join our Discord server