The Face Analysis MCP server

Updated 16 October 2026 · 7 tools · free · open source

The Face Analysis MCP server lets Claude, ChatGPT, Codex, Cursor and other AI assistants look up sourced face measurement statistics from 102 faces, read the exact face shape rules, and classify a face shape from four distances. It is free, read-only, needs no account, and the code is open source. Add https://mcp.thefaceanalysis.com/mcp to your client.

Connect your AI client

Pick your client. Hosted needs nothing installed and works everywhere, including ChatGPT and Claude's custom connectors. Local runs the same seven tools on your own machine with npx -y thefaceanalysis-mcp and needs Node.js 18 or newer.

Connect Claude Code

Add the hosted URL with one command. A local install works too.

  1. Run the command in a terminal. --scope user makes the server available in all your projects; without it the server only applies to the current project.
  2. claude mcp list should show the server as Connected. Inside Claude Code, /mcp shows the same status.
  3. To share the server with a team, use --scope project: the command writes a .mcp.json file in the project root that you can commit.

Hosted (recommended)

claude mcp add --transport http --scope user thefaceanalysis https://mcp.thefaceanalysis.com/mcp

Local (npx)

claude mcp add --scope user thefaceanalysis -- npx -y thefaceanalysis-mcp

.mcp.json (project)

{
  "mcpServers": {
    "thefaceanalysis": {
      "type": "http",
      "url": "https://mcp.thefaceanalysis.com/mcp"
    }
  }
}

Check / remove

claude mcp list
claude mcp get thefaceanalysis
claude mcp remove thefaceanalysis

Check it works. Ask: “Using The Face Analysis, what is the median fWHR across your 102 reference faces?” The answer should be 1.78.

The -- separates Claude's own options from the command that starts the server. Keep it in the npx line.

Source: Claude Code: MCP

The seven tools

All are read-only. Each answer carries its source, so an assistant can cite it.

ToolWhat it returnsTry asking
get_reference_statisticsPercentiles (p10, p25, median, p75, p90, min, max) for fWHR, midface ratio, symmetry, golden ratio fit, pupillary distance and canthal tilt, for all faces, women and men.What is the median fWHR in your reference set, and how does it differ between women and men?
list_face_typesThe face, eye, lip and nose types the detectors use: slug, page URL and how many of the 102 reference faces each type covered.List the seven face shapes your detector uses and how many of the 102 reference faces fell into each.
get_face_typeOne type's definition and how it is measured from a front photo, including the exact threshold rule.How exactly does your detector decide that a face is heart-shaped?
classify_face_shapeA face shape from four distances (face length, cheekbone, temple and jaw width), using the site's seven rules in the site's order and with its thresholds. Returns the rule that matched and the four ratios.Face length 1.3, cheekbone width 1, forehead width 0.9, jaw width 0.8: what face shape is that, and which rule decided it?
get_methodologyThe landmark model, every threshold, how the 1-10 score is built, how it correlated with 2,513 human raters, and the dated method change history.Did your attractiveness score predict human ratings? Quote the correlation and its confidence interval.
get_citationCitation text, the license (CC BY 4.0 for the aggregate numbers), the source photo set and the JSON and CSV download URLs.Give me a citation for your fWHR numbers and tell me what license they are under.
get_embed_snippetHTML that puts the free face shape finder on a web page, in the size you choose.Give me the code to put your face shape finder on my salon's blog, wide size.

What to ask

  • “How does the face shape detector decide between oval and round?”
  • “What is the average pupillary distance in your data, for women and men separately?”
  • “My face is 19 cm long, cheekbones 14.5 cm, temples 13.3 cm and jaw 11.6 cm. Which face shape is that by your rules?”
  • “Does fWHR predict attractiveness? Use your own numbers and the meta-analysis you cite.”
  • “I run a barber shop blog. Give me the code for your face shape widget.”

What it does not do

  • It takes no photo. Photos are measured in the visitor's browser by the free tool and the embeddable widget. The MCP server only gives numbers, rules and a classifier for four measured distances.
  • It writes nothing, opens no account and spends no credits. All seven tools are read-only and need no API key or sign-in. The AI simulations are not part of this server.
  • It makes no medical claim. Results describe proportions in a photo. They are not a diagnosis, treatment advice or procedure advice.
  • It does not describe a population. The reference data is 102 faces photographed in one city in one month, so no number here is a norm.

To measure a photo, use the free face shape detector (it runs in your browser, no sign-up) or put the embeddable widget on your own site. How the numbers are made: methodology.

Troubleshooting

The tools do not appear in my client.

Quit the client completely and reopen it; many clients read their MCP configuration only at start-up. Then check the JSON or TOML syntax: a trailing comma or a missing quote silently drops the server. In Claude Code claude mcp list shows whether it is connected, in Cursor the MCP settings page does, and in VS Code the status line above the server in .vscode/mcp.json does.

`npx` is not found or will not start.

A local install needs Node.js 18 or newer (node --version). On Windows, if npx is missing, install npm globally with npm install -g npm. With the hosted URL you do not need Node.js at all.

Opening the MCP address in a browser shows 405.

That is expected. The server accepts only the POST /mcp request MCP clients send. To see that it is running, open https://mcp.thefaceanalysis.com/health (it answers ok) or run the curl command on this page.

ChatGPT or Claude does not show the custom connector option.

Custom connectors depend on your plan and your organization's settings. In ChatGPT, Developer mode must be on, and on Business, Enterprise, Team and Edu accounts an admin has to allow connectors. Clients rename menus: search their help pages for custom connector to find the current path.

A tool returns an error.

The input was invalid, for example get_face_type was given a type name that does not exist. The error message lists the valid options. For classify_face_shape, all four distances must be greater than zero and in the same unit.

MCP server: frequently asked questions

What is The Face Analysis MCP server?

A free, read-only Model Context Protocol server that lets an AI assistant look up face measurement statistics from 102 faces, the face, eye, lip and nose type rules, the methodology and its limits, and run the site's seven-rule face shape classifier on four distances. The code is MIT-licensed and open source; the aggregate data is CC BY 4.0.

Does it analyze photos?

No. The server takes no photo. Photos are measured in the visitor's browser by the free face shape tool or the embeddable widget. The MCP server gives an assistant the numbers, the rules and a classifier for four measured distances.

Do I need an account or an API key?

No. The hosted server needs no sign-up, key or credit balance, and all seven tools are read-only.

Hosted or local: which should I use?

Use the hosted URL unless you need to work offline or want to inspect the code you run. Both expose the same seven tools. The hosted server needs no Node.js and works in ChatGPT and in Claude's custom connectors, which cannot launch a local npx process.

Which AI clients does it work with?

Any client that speaks MCP: Claude (claude.ai, Desktop and Claude Code), ChatGPT through Developer mode connectors, Codex, Cursor, VS Code, Gemini CLI and others. The setup commands for each are on this page, taken from the clients' own documentation.

Can I cite the numbers it returns?

Yes. The aggregate numbers are licensed CC BY 4.0: cite The Face Analysis, link the statistics page, and credit the Face Research Lab London Set the photos come from. The get_citation tool returns the exact text.

How accurate is the face shape classifier?

We claim no accuracy figure. The 102 reference faces have no labelled face types, so the thresholds spread the faces sensibly but are not validated against a ground truth. A face near a boundary can flip between two shapes with a small change in the photo, which is why the tool returns the matched rule along with the four ratios.

Is the code open source?

Yes. The server, the dataset package and the embeddable widget are MIT-licensed code in public repositories at github.com/The-Face-Analysis. The aggregate data is CC BY 4.0.

Packages and source code

The server, the dataset and the widget are MIT-licensed code in public repositories at github.com/The-Face-Analysis, published on npm. The aggregate numbers are CC BY 4.0. The developer docs have one page per client, the tool reference with real responses and the dataset schema; everything is also on the developers page.

thefaceanalysis-mcp

MCP server for AI assistants: sourced face measurement statistics, face type rules, methodology and a face shape classifier. Seven read-only tools.

npx -y thefaceanalysis-mcp
thefaceanalysis-data

The face measurement statistics from 102 faces as JSON and CSV, with the type rules and every threshold. Data CC BY 4.0.

npm install thefaceanalysis-data
thefaceanalysis-embed

11 free face measurement widgets (face shape, eye shape, fWHR and more) as a web component and a React wrapper, for salons, opticians and beauty sites.

npm install thefaceanalysis-embed