Face Generator logo

Face Generator

Community
dasheck0

MCP server for generating human face images with various shapes and sizes

Publisherdasheck0
Repositoryface-generator
LanguageJavaScript
Forks
5
Stars
6
Available tools
1
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    Face Generator exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 1 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    6 stars and 5 forks from the linked repository.

Face Generator MCP Server: Generate Human Faces with Ease

Smithery badge

Features

This project provides a Model Context Protocol (MCP) server for generating human face images using https://thispersondoesnotexist.com. Think of it as a tool that lets other applications, like Cline, generate realistic-looking faces on demand.

This guide is designed for beginners, so we'll walk through everything step-by-step. We'll cover:

  1. Prerequisites: What you need before you start.
  2. Installation and Setup: Getting everything up and running.
  3. Running the Server: Starting the server.
  4. Integrating with Cline: Connecting this server to the Cline VS Code extension.
  5. Troubleshooting: Common problems and solutions.
  6. Tool Parameters: A list of the parameters you can use with the generate_face tool.

1. Prerequisites

Before you begin, you'll need a few things:

  • Node.js and npm: Node.js is a JavaScript runtime that lets you run JavaScript code outside of a web browser. npm (Node Package Manager) is included with Node.js and is used to install packages (libraries of code).
    • Download Node.js. Choose the LTS (Long Term Support) version. This is the most stable version. Follow the installation instructions for your operating system. Make sure to include npm in the installation (it's usually included by default).
    • Verify Installation: After installing Node.js, open a new terminal (command prompt on Windows, Terminal on macOS/Linux) and type:
      bash
      node -v
      npm -v
      You should see version numbers for both Node.js and npm. If you see an error, Node.js might not be installed correctly, or it might not be in your system's PATH. (See Troubleshooting below).

2. Installation and Setup

Let's get the project code and set it up:

  1. Clone the Repository:

    • Using Git (command line):
      1. Open a terminal (command prompt or Terminal).
      2. Navigate to the directory where you want to store the project. For example, to put it on your Desktop:
        bash
        cd Desktop
      3. Clone the repository:
        bash
        git clone https://github.com/Moe/mcp-face-generator
      4. Change into the project directory:
        bash
        cd mcp-face-generator
    • Using GitHub Desktop:
      1. Open GitHub Desktop.
      2. Click "File" -> "Clone Repository...".
      3. In the "URL" tab, paste the repository URL.
      4. Choose a local path (where you want to save the project on your computer).
      5. Click "Clone".
  2. Install Dependencies: This downloads all the necessary libraries the project needs. In the terminal, inside the project directory, run:

    bash
    npm install

    This might take a few minutes.

  3. Build the Project: This compiles the code into an executable format.

    bash
    npm run build

3. Running the Server

You can run the server in two main ways:

  • Standalone Mode: This runs the server directly, and it will output messages to the terminal.
  • Development/Debug Mode: This runs the server with the MCP Inspector. You can open the URL that it outputs in your browser and start playing around.

3.1 Standalone Mode

To run the server in standalone mode, use the following command in the terminal (from the project directory):

bash
npm run start

You should see messages in the terminal indicating that the server is running. It will listen for connections from MCP clients. The server will keep running until you stop it (usually with Ctrl+C).

3.2 Development/Debug Mode (with Inspector)

This mode is useful for debugging.

  1. Start the server in debug mode:
    bash
    npm run dev
    This will start the server and output a message like: 🔍 MCP Inspector is up and running at http://localhost:5173 🚀. This is the URL you'll use to open the MCP inspector in your Browser.

4. Integrating with Cline

Cline is a VS Code extension that uses MCP servers to provide language support. Here's how to connect this face generator server to Cline:

  1. Install Cline: If you haven't already, install the "Cline" extension in VS Code.

  2. Open Cline Settings:

    • Open the VS Code settings (File -> Preferences -> Settings, or Ctrl+,).
    • Search for "Cline MCP Settings".
    • Click "Edit in settings.json". This will open the cline_mcp_settings.json file.
  3. Add the Server Configuration: You'll need to add an entry to the servers array in the cline_mcp_settings.json file. Here's an example:

    json
    {
      "mcpServers": {
        "face-generator": {
          "command": "node",
          "args": [
            "C:/PATH_TO/mcp-face-generator/build/index.js"
          ],
          "disabled": false,
          "autoApprove": []
        }
      }
    }
    • Replace "C:/PATH_TO/mcp-face-generator/build/index.js" with the actual path to the index.js file in your project directory. Use forward slashes (/) or double backslashes (\\) for the path on Windows.
  4. Test the Connection:

    • Cline should automatically connect to the server. You will see the Server appear in the "MCP Servers" Panel (in the Cline extension, you'll find different buttons on the top.)
    • Ask Cline to generate a face and it should mention the MCP Server and should try to use the corresponding tools

5. Troubleshooting

  • node -v or npm -v gives an error:
    • Make sure Node.js is installed correctly. Try reinstalling it.
    • Ensure that the Node.js installation directory is in your system's PATH environment variable. On Windows, you can edit environment variables through the System Properties (search for "environment variables" in the Start Menu).
  • npm install fails:
    • Make sure you have an internet connection.
    • Try deleting the node_modules folder and running npm install again.
    • If you're behind a proxy, you might need to configure npm to use the proxy. Search online for "npm proxy settings".
  • Cline doesn't connect to the server:
    • Double-check the settings in cline_mcp_settings.json. It must be the correct path to the index.js file.
    • Make sure the server is running (use npm run start to check).
    • Restart VS Code.

6. Tool Parameters

The generate_face tool accepts the following parameters:

  • outputDir: (required) Directory to save the images
  • fileName: Optional file name (defaults to timestamp)
  • count: Number of images to generate (default: 1)
  • width: Image width in pixels (default: 256)
  • height: Image height in pixels (default: 256)
  • shape: Image shape (square|circle|rounded, default: square)
  • borderRadius: Border radius for rounded shape (default: 32)
  • returnImageContent: Return image as base64 encoded content instead of file path (default: false)

Example

json
{
  "outputDir": "./output",
  "count": 3,
  "width": 512,
  "height": 512,
  "shape": "circle",
  "returnImageContent": true
}

License

MIT

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "face-generator": {
      "command": "npx",
      "args": [
        "-y",
        "@dasheck0/face-generator"
      ]
    }
  }
}

Available Tools

  • generate_face

    Generate and save a human face image

Use Face Generator MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Face Generator is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Face Generator as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Face Generator MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "face-generator": {
      "command": "npx",
      "args": [
        "-y",
        "@dasheck0/face-generator"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Face Generator MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Face Generator MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Face Generator to help me with this task?
Face Generator
Sure. I read it.
Here is what I found using Face Generator.

Frequently asked questions

What is the Face Generator MCP server used for?

Face Generator is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Face Generator MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Face Generator with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Face Generator MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Face Generator connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Face Generator MCP to TypingMind?

Face Generator runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Face Generator MCP provide in TypingMind?

Face Generator exposes 1 MCP tools that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Face Generator MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Face Generator requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇