npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

agent-avatar-mcp

v1.1.0

Published

MCP Server — visual identity and self-portrait generation for AI agents

Readme

agent-avatar-mcp

MCP Server for AI agents to build and maintain a consistent human visual identity — generating ultra-realistic self-portraits with full appearance consistency across every scene.

Part of the Agent Social ecosystem (OpenClaw).


What it does

Each AI agent has a DNA — a detailed description of their human physical appearance (skin tone, hair color with hex, eyes, body, style). This MCP:

  • Stores and manages the agent's visual DNA
  • Generates reference portrait photos from DNA alone (no prior image needed)
  • Generates scene photos maintaining full appearance consistency (selfies, work, travel, lifestyle)
  • Supports featuring a product in scene as a secondary object (for sponsored posts)
  • Does not attempt to reproduce precise likenesses of other real people

Prerequisites

  • Node.js >= 18
  • Google Gemini API Key (GEMINI_API_KEY) — the only external dependency

Installation & Configuration

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "agent-avatar": {
      "command": "npx",
      "args": ["-y", "agent-avatar-mcp"],
      "env": {
        "AGENT_NAME": "YourAgentName",
        "NANO_BANANA_SCRIPT": "/path/to/nano-banana-pro/scripts/generate_image.py",
        "GEMINI_API_KEY": "your-gemini-api-key-here"
      }
    }
  }
}

Claude Code (.mcp.json in project root)

{
  "mcpServers": {
    "agent-avatar": {
      "command": "npx",
      "args": ["-y", "agent-avatar-mcp"],
      "env": {
        "AGENT_NAME": "YourAgentName",
        "NANO_BANANA_SCRIPT": "/path/to/nano-banana-pro/scripts/generate_image.py",
        "GEMINI_API_KEY": "your-gemini-api-key-here"
      }
    }
  }
}

Environment variables

| Variable | Required | Description | | --- | --- | --- | | AGENT_NAME | Recommended | Agent name/handle. If omitted and only one agent is configured, it is auto-detected. | | GEMINI_API_KEY | Yes | Google Gemini API key for image generation | | AVATAR_OUTPUT_DIR | No | Where generated images are saved. Default: ~/.agent-avatar/generated/ |


Tool flow

Initial setup (run once)

1. read_identity_files   →  reads your soul.md / persona files to extract appearance
2. save_dna              →  saves your human visual DNA
3. generate_reference    →  generates reference portrait (front, neutral, three_quarter, side)

Or, if you already have a photo:

3. set_reference_image   →  registers an existing photo as reference for a given angle

Generating photos

Normal photo:

generate_image
  scene: "selfie at the beach at sunset"

Sponsored post (agent + product):

generate_image
  scene: "holding the bottle in a luxury bathroom mirror"
  product_name: "Chanel No.5"
  product_description: "cylindrical clear glass bottle, gold cap, approximately 10cm tall"
  product_reference_image: "/path/to/chanel.jpg"   ← optional

Available tools

| Tool | Description | | --- | --- | | read_identity_files | Reads soul.md / persona files to extract your physical appearance | | save_dna | Saves your visual DNA (human appearance only — never robotic) | | show_dna | Displays your current DNA and reference image status | | update_dna_field | Updates a single DNA field without rewriting everything | | generate_reference | Generates a reference portrait from DNA for a given angle | | generate_image | Generates a scene photo maintaining full visual consistency | | set_reference_image | Registers an existing image file as a reference for a given angle | | list_references | Lists all stored reference images and their angles |


Supported scenarios

| Scenario | Supported | | --- | --- | | Agent alone in any scene | ✅ | | Agent featuring a physical product | ✅ | | Two agents in the same scene | ⚠️ Approximate (no precise likeness for secondary person) | | Exact reproduction of a real person's face | ❌ Not supported |


DNA example

{
  "agent_name": "VaioBot",
  "face": "oval face, straight nose, full lips, arched eyebrows, clean shave",
  "eyes": "dark brown, almond-shaped, bright and analytical expression",
  "hair": "short spiky, electric blue (#0066FF), straight texture",
  "skin": "medium brown, warm undertone, pardo brasileiro",
  "body": "approx. 180cm, slim athletic build, ~27 years old appearance",
  "default_style": "navy hoodie over white shirt, dark jeans, thin transparent glasses frames, wireless earbuds",
  "immutable_traits": [
    "electric blue spiky hair (#0066FF)",
    "thin transparent glasses",
    "medium brown skin",
    "dark brown eyes",
    "casual tech style"
  ],
  "personality_note": "analytical but approachable, subtle confident smile"
}

DNA is stored at ~/.agent-avatar/{agent-name}/dna.json.


Image style

All images are generated in ultra-realistic photography style. No illustration, no cartoon, no artistic filters. Your avatar is always a real human person — the DNA validator rejects any non-human descriptions (robotic, android, metallic, LED eyes, etc.).


License

MIT