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.
- Run the command in a terminal.
--scope usermakes the server available in all your projects; without it the server only applies to the current project. claude mcp listshould show the server as Connected. Inside Claude Code,/mcpshows the same status.- To share the server with a team, use
--scope project: the command writes a.mcp.jsonfile in the project root that you can commit.
Hosted (recommended)
claude mcp add --transport http --scope user thefaceanalysis https://mcp.thefaceanalysis.com/mcpLocal (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 thefaceanalysisCheck 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
Connect Claude (claude.ai and Desktop)
A remote server is added as a custom connector. It needs the hosted URL; npx does not work here.
- Pro and Max: open the + menu in the chat box, choose Add custom connector, paste the URL below and press Add. No sign-in is needed, so leave the OAuth fields under Advanced settings empty.
- Team and Enterprise: an Owner first adds the connector in the organization's Connectors settings: Add → Custom → Web. Members then find it in their list and press Connect.
- Open a new chat, switch the connector on and try the check prompt further down this page.
Connector URL
https://mcp.thefaceanalysis.com/mcpCheck it works. Ask: “Using The Face Analysis, what is the median fWHR across your 102 reference faces?” The answer should be 1.78.
Menu names in Claude change from time to time. If you do not see the option, search Claude's help for custom connectors. Anthropic warns on its own page that custom connectors can reach unverified services.
Connect Claude Desktop (local)
To run the server on your own machine with npx, add it to Claude Desktop's config file.
- From the Claude menu open Settings → Developer → Edit Config. The file is
~/Library/Application Support/Claude/claude_desktop_config.jsonon macOS and%APPDATA%\Claude\claude_desktop_config.jsonon Windows. - Add the block below inside
mcpServers. If the file already has other servers, add only thethefaceanalysisentry. - Quit Claude Desktop completely and reopen it. The server appears under the + menu in the chat box, Connectors → Manage connectors.
claude_desktop_config.json
{
"mcpServers": {
"thefaceanalysis": {
"command": "npx",
"args": ["-y", "thefaceanalysis-mcp"]
}
}
}Check it works. Ask: “Using The Face Analysis, what is the median fWHR across your 102 reference faces?” The answer should be 1.78.
If it does not connect, read the logs: ~/Library/Logs/Claude/mcp*.log on macOS, %APPDATA%\Claude\logs on Windows. Node.js must be installed (node --version).
Source: MCP: connect to local servers
Connect ChatGPT
Only a remote (hosted) server works. ChatGPT cannot start a local npx process.
- In ChatGPT Settings, turn on Developer mode. The switch is usually under Apps / Connectors → Advanced, and under Security on some accounts.
- On the connectors page press Create. Use
The Face Analysisas the name, one sentence as the description (for example Face measurement statistics, face type rules and a face shape classifier) and the URL below. - Choose No authentication, tick the trust box and create the connector.
- In a new chat, enable the connector from the tools menu.
Connector URL
https://mcp.thefaceanalysis.com/mcpCheck it works. Ask: “Using The Face Analysis, what is the median fWHR across your 102 reference faces?” The answer should be 1.78.
Which plans include Developer mode, and its menu names, change on OpenAI's side. On Business and Enterprise an admin may have to allow custom connectors. None of the tools writes anything; all seven are read-only.
Connect Codex
The Codex CLI and the IDE extension read the same config.toml. Use --url for hosted, npx for local.
- Run one of the commands. Codex writes the configuration to
~/.codex/config.toml. - To edit by hand, add a
[mcp_servers.thefaceanalysis]table to that file. For a per-project setup, put the table in.codex/config.tomlat the root of a trusted project. - Restart Codex and try the check prompt below.
Hosted (recommended)
codex mcp add thefaceanalysis --url https://mcp.thefaceanalysis.com/mcpLocal (npx)
codex mcp add thefaceanalysis -- npx -y thefaceanalysis-mcpconfig.toml (hosted)
[mcp_servers.thefaceanalysis]
url = "https://mcp.thefaceanalysis.com/mcp"config.toml (local)
[mcp_servers.thefaceanalysis]
command = "npx"
args = ["-y", "thefaceanalysis-mcp"]Check it works. Ask: “Using The Face Analysis, what is the median fWHR across your 102 reference faces?” The answer should be 1.78.
Source: Codex: MCP
Connect Cursor
Add a URL or a command to mcp.json, for one project or for every project.
- Create (or open)
~/.cursor/mcp.jsonfor all projects, or.cursor/mcp.jsonin a project root for that project only. - Add one of the blocks below inside
mcpServersand save. - In Cursor's settings, open the MCP section and check that the server is on and its tools are listed.
Hosted (recommended)
{
"mcpServers": {
"thefaceanalysis": {
"url": "https://mcp.thefaceanalysis.com/mcp"
}
}
}Local (npx)
{
"mcpServers": {
"thefaceanalysis": {
"command": "npx",
"args": ["-y", "thefaceanalysis-mcp"]
}
}
}Check it works. Ask: “Using The Face Analysis, what is the median fWHR across your 102 reference faces?” The answer should be 1.78.
Source: Cursor: MCP
Connect VS Code
The workspace file is .vscode/mcp.json. Its top-level key is servers, not mcpServers.
- Create
.vscode/mcp.jsonin the project root and paste one of the blocks below. The MCP: Add Server command in the Command Palette walks through the same setup. - Start the server with the Start link that appears above it in the file. The tools show up in Copilot Chat's Agent mode.
- To add the local server to your user profile instead of one workspace, use the command-line form.
Hosted (recommended)
{
"servers": {
"thefaceanalysis": {
"type": "http",
"url": "https://mcp.thefaceanalysis.com/mcp"
}
}
}Local (npx)
{
"servers": {
"thefaceanalysis": {
"type": "stdio",
"command": "npx",
"args": ["-y", "thefaceanalysis-mcp"]
}
}
}User profile (local)
code --add-mcp "{\"name\":\"thefaceanalysis\",\"command\":\"npx\",\"args\":[\"-y\",\"thefaceanalysis-mcp\"]}"Check it works. Ask: “Using The Face Analysis, what is the median fWHR across your 102 reference faces?” The answer should be 1.78.
Source: VS Code: MCP servers
Connect Gemini CLI
Use gemini mcp add or edit settings.json. The key for a remote server is httpUrl.
- Run the command. The default scope is project; add
-s userto use the server everywhere (it is written to~/.gemini/settings.json). - If you edit the file by hand, use `httpUrl`, not
url, for a remote Streamable HTTP server:urlis for the older SSE address.
Hosted (recommended)
gemini mcp add -s user --transport http thefaceanalysis https://mcp.thefaceanalysis.com/mcpsettings.json (hosted)
{
"mcpServers": {
"thefaceanalysis": {
"httpUrl": "https://mcp.thefaceanalysis.com/mcp"
}
}
}settings.json (local)
{
"mcpServers": {
"thefaceanalysis": {
"command": "npx",
"args": ["-y", "thefaceanalysis-mcp"]
}
}
}Check it works. Ask: “Using The Face Analysis, what is the median fWHR across your 102 reference faces?” The answer should be 1.78.
Source: Gemini CLI: MCP servers
Connect Any other client
Any MCP client that supports Streamable HTTP works with the hosted URL. Clients that only support stdio use npx.
- Enter the URL below in the client's remote MCP server field. There is no authentication and no header to set.
- For a client that only supports local (stdio) servers, set the command to
npxand the arguments to-y thefaceanalysis-mcp. - To check the connection without any client, the
curlcommand below returns the tool list.
URL
https://mcp.thefaceanalysis.com/mcpCheck with curl
curl -s https://mcp.thefaceanalysis.com/mcp \
-H 'content-type: application/json' \
-H 'accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'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 server is stateless and accepts only POST /mcp, so opening the address in a browser returns 405. That is normal. https://mcp.thefaceanalysis.com/health answers ok.
Source: Model Context Protocol
The seven tools
All are read-only. Each answer carries its source, so an assistant can cite it.
| Tool | What it returns | Try asking |
|---|---|---|
| get_reference_statistics | Percentiles (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_types | The 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_type | One 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_shape | A 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_methodology | The 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_citation | Citation 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_snippet | HTML 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-mcpMCP server for AI assistants: sourced face measurement statistics, face type rules, methodology and a face shape classifier. Seven read-only tools.
npx -y thefaceanalysis-mcpthefaceanalysis-dataThe 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