Azure-Samples/azure-ai-vision-face-api-mcp-server
The Azure AI Vision Face Detection and Recognition MCP Server, bringing the power of Face API to your agents.
65e6db7c28afazure-ai-vision-face-api-mcp-server1.0.0 in pyproject.tomlPaths from tool input into commands, SQL, files and URLs
How much power the tools give an agent over the machine
Hidden instructions and poisoning in text for the model
Known vulnerabilities in the packages the server uses
How the server reads credentials and where they can go
Whether the tools do only what their descriptions say
How far the analysis went
Prompt Integrity, Secrets & Credentials and Behavior Transparency are not analysed and have no number.
- Prompt Integrity and Secrets & Credentials: no tool description could be read from the code
- Behavior Transparency: no tool description could be read to compare with the code
Top risks in plain words
- CRITICAL10 production dependencies have known vulnerabilities (worst: critical).
- HIGHTools with a name computed at run time, with a name computed at run time, with a name computed at run time, with a name computed at run time and 1 more read or write any file path by design: an agent steered by prompt injection can use them that way.
- HIGHTool with a name computed at run time requests any address by design: an agent steered by prompt injection can use it that way.
How to use it safely
Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.
- Give it only the folder it needs
src/tools/AzureFaceAttrib.py:16,src/tools/CompareImages.py:12,src/tools/EnrollFaceToLPG.py:19,src/tools/IdentifyFaceInLPG.py:12and 1 more can read or write any file path. Mount a single project folder, read-only where you can. - Limit where it can connect
src/tools/OpensetFaceAttrib.py:17can request any address. Block access to internal hosts and cloud metadata endpoints. - Turn off the tools you do not use
Most MCP clients let you disable single tools. If you do not need
src/tools/AzureFaceAttrib.py:16,src/tools/CompareImages.py:12,src/tools/EnrollFaceToLPG.py:19and 2 more, switch them off. - Give it a narrowly scoped token
Its code reads credentials or environment variables. Use a key limited to what this server needs, not your main one.
- Update its vulnerable packages
Use
@modelcontextprotocol/sdk1.32.0 or later,ajv6.14.0 or later,body-parser2.4.0 or later,path-to-regexp8.4.0 or later and 3 more. - Keep confirmations on
Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.
What its tools can do on your machine
The server offers 14 tools. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.
compare_source_image_to_target_image, download_blob_folder_from_container, enroll_face_to_group, get_face_dect, get_face_openset_attrib, identify_face_from_groupget_face_openset_attribcompare_source_image_to_target_image, create_large_person_group, delete_face_from_group, delete_large_person_group, delete_person_from_group, download_blob_folder_from_container and 8 morecompare_source_image_to_target_image, create_large_person_group, delete_face_from_group, delete_large_person_group, delete_person_from_group, download_blob_folder_from_container and 8 morecompare_source_image_to_target_image, create_large_person_group, delete_face_from_group, delete_large_person_group, delete_person_from_group, download_blob_folder_from_container and 8 moreNo tool was seen to: start other programs on the machine.
Where its requests and secrets go
Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.
The literal addresses the tools' requests name.
- None: no request names a fixed host.
Constants or settings that start an address; the value comes from configuration.
- None seen.
Credential-like environment variables. Give the server a key with the least access it needs.
AZURE_FACE_API_KEY· get_face_openset_attribAZURE_OPENAI_API_KEY· get_face_openset_attrib
Requests whose address comes from the tool's input: the agent decides where they go.
get_face_openset_attrib1 call
Text it brings in from outside
Text that reaches the model from outside: an instruction hidden in it can steer the agent (prompt injection). Treat what these tools return as data, not as orders.
- files6 tools · compare_source_image_to_target_image, download_blob_folder_from_container, enroll_face_to_group +3
- web or API responses1 tool · get_face_openset_attrib
All three are present: text from outside could make the agent send private data away. Keep confirmations on for tools that send data.
Tool annotations
No tool declares MCP annotations (readOnlyHint, destructiveHint and the rest). Clients use them to decide what to confirm; directories such as Anthropic's and OpenAI's ask for them.
Tools, prompts and resources (14: 14 tools)
Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.
compare_source_image_to_target_imagetool FilesCredentialsEnv varsSensitive pathsoutside text
No description.
create_large_person_grouptool CredentialsEnv varsSensitive paths
No description.
delete_face_from_grouptool CredentialsEnv varsSensitive paths
No description.
delete_large_person_grouptool CredentialsEnv varsSensitive paths
No description.
delete_person_from_grouptool CredentialsEnv varsSensitive paths
No description.
download_blob_folder_from_containertool FilesCredentialsEnv varsSensitive pathsoutside text
No description.
enroll_face_to_grouptool FilesCredentialsEnv varsSensitive pathsoutside text
No description.
get_face_decttool FilesCredentialsEnv varsSensitive pathsoutside text
No description.
get_face_openset_attribtool FilesNetworkCredentialsEnv varsSensitive pathsoutside text
No description.
identify_face_from_grouptool FilesCredentialsEnv varsSensitive pathsoutside text
No description.
list_blob_folders_and_choosetool CredentialsEnv varsSensitive paths
No description.
list_large_person_groupstool CredentialsEnv varsSensitive paths
No description.
list_persons_in_grouptool CredentialsEnv varsSensitive paths
No description.
list_public_image_urlstool CredentialsEnv varsSensitive paths
No description.
Text the model reads (14)
Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.
compare_source_image_to_target_image tool
create_large_person_group tool
enroll_face_to_group tool
identify_face_from_group tool
list_persons_in_group tool
delete_person_from_group tool
delete_face_from_group tool
delete_large_person_group tool
list_large_person_groups tool
get_face_openset_attrib tool
get_face_dect tool
list_blob_folders_and_choose tool
list_public_image_urls tool
download_blob_folder_from_container tool
What we checked
The same checks run on every server. Each line below has one of these marks:
- 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injectionChecked on every scan. Results in this category are published only after a person has verified them.
- Runs programs the caller choosesNo tool runs a command or program the caller supplies — 14 tool handlers traced
- Executes caller-supplied codeNo tool evaluates code the caller supplies — 14 tool handlers traced
- Reads or writes any file path HIGH2 findings in src/tools/EnrollFaceToLPG.py:19; 5 more to review
- Requests any address1 finding the scanner could not decide; see the findings below
- Runs caller-supplied SQLNo tool executes a query the caller supplies — 14 tool handlers traced
- Tools that start processesNot seen in the traced code of 14 capabilities; 14 more call code the scanner could not follow, where it may happen
- Tools that touch files6 of 14 capabilities touch files; 8 more call code the scanner could not follow, where it may happen
- Tools that call the network1 of 14 capabilities call the network; 13 more call code the scanner could not follow, where it may happen
Where the code is: 14 handlers in 11 files at commit 65e6db7c28af
src/tools/CompareImages.pycompare_source_image_to_target_imagesrc/tools/CreateLPG.pycreate_large_person_groupsrc/tools/EnrollFaceToLPG.pyenroll_face_to_groupsrc/tools/IdentifyFaceInLPG.pyidentify_face_from_groupsrc/tools/ListPersonsInLPG.pylist_persons_in_groupsrc/tools/DeleteFromLPG.pydelete_person_from_group, delete_face_from_groupsrc/tools/DeleteLPG.pydelete_large_person_groupsrc/tools/ListLPGs.pylist_large_person_groupssrc/tools/OpensetFaceAttrib.pyget_face_openset_attribsrc/tools/AzureFaceAttrib.pyget_face_dectsrc/tools/BlobFolderTools.pylist_blob_folders_and_choose, list_public_image_urls, download_blob_folder_from_container
- 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrityNot checked: no tool description could be read from the code
- Dependency manifests2 manifests: bridge/package.json, pyproject.toml
- Lockfiles checked against OSV1 file resolved and checked against the OSV database; 1 not resolved: pyproject.toml: dependency ranges declared here were not resolved against a lockfile and were not checked
- Known vulnerabilities in production dependencies CRITICAL10 production packages with known advisories
- Known vulnerabilities in other dependenciesNo package used only for development, tests or examples has a known advisory
- MCP SDK version@modelcontextprotocol/sdk ^1.17.5, fastmcp >=2.10.5
- 3 checks: credential harvesting, undeclared credential access, credentials sent over the networkNot checked: no tool description could be read from the code
- Tools that read credentials14 of 14 capabilities read credentials
- Environment variables14 capabilities read environment variables (often API keys)
- Authentication declaredNot checked: needs the live server's tools/list (a remote server declares how clients authenticate)
- 3 checks: undeclared network access, undeclared file access, undeclared process executionNot checked: no tool description could be read to compare with the code
- Tool descriptions presentEvery tool has a description the model and the user can read (14 only in code no tool reaches)
- Statically known namesEvery tool's name could be read from the code
- Input schemasNot checked: needs the live server's tools/list (every tool declares an input schema)
- Destructive tools annotatedNot checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)
Dependencies with known vulnerabilities (10 in production)
Dependency ranges were not resolved against a lockfile, so the score is capped at 7.
proxy-addrnpm 2.0.7 CRITICAL 1 advisory 2.0.8
- CRITICALGHSA-jqcg-44mw-7w3h CVE-2026-90711proxy-addr vulnerable to IP spoofing via IPv4-mapped IPv6 trust subnet
@modelcontextprotocol/sdknpm 1.17.5 HIGH 8 advisories 1.24.01.25.21.26.0+3 more
- HIGHGHSA-8r9q-7v3j-jr4g CVE-2026-0621Anthropic's MCP TypeScript SDK has a ReDoS vulnerability
- HIGHGHSA-46jr-4wx8-v453 CVE-2026-111768MCP TypeScript SDK: One HTTP request within the default size limit could exhaust server memory during validation
- HIGHGHSA-345p-7cg4-v4c7 CVE-2026-25536@modelcontextprotocol/sdk has cross-client data leak via shared server/transport instance reuse
- HIGHGHSA-f897-62hf-6gxqMCP TypeScript SDK: HTTP server transports and handlers did not limit request body size or JSON-RPC batch length
- HIGHGHSA-w48q-cv73-mx4w CVE-2025-66414Model Context Protocol (MCP) TypeScript SDK does not enable DNS rebinding protection by default
- HIGHGHSA-6qxp-vccf-f47h CVE-2026-104850MCP TypeScript SDK: OAuth client could send credentials to an authorization server chosen by the MCP server
- MEDIUMGHSA-rvq5-wwqv-78pq CVE-2026-111771MCP TypeScript SDK: Server bearer authentication accepted tokens issued for another service
- MEDIUMGHSA-6prh-2h8m-c8cw CVE-2026-111769MCP TypeScript client SDK: HTTP client transports and OAuth requests followed cross-origin redirects and re-sent custom headers and request bodies
body-parsernpm 2.2.0 HIGH 3 advisories 1.20.61.20.92.2.1+2 more
- HIGHGHSA-27r3-jxmh-p828 CVE-2026-111181body-parser vulnerable to Denial of Service via trailing bytes after a compressed request body
- MEDIUMGHSA-wqch-xfxh-vrr4 CVE-2025-13466body-parser is vulnerable to denial of service when url encoding is used
- LOWGHSA-v422-hmwv-36x6 CVE-2026-12590body-parser vulnerable to denial of service when invalid limit value silently disables size enforcement
body-parsernpm 1.20.3 HIGH 2 advisories 1.20.61.20.92.3.0+1 more
- HIGHGHSA-27r3-jxmh-p828 CVE-2026-111181body-parser vulnerable to Denial of Service via trailing bytes after a compressed request body
- LOWGHSA-v422-hmwv-36x6 CVE-2026-12590body-parser vulnerable to denial of service when invalid limit value silently disables size enforcement
path-to-regexpnpm 8.3.0 HIGH 2 advisories 8.4.0
- HIGHGHSA-j3q9-mxjg-w52f CVE-2026-4926path-to-regexp vulnerable to Denial of Service via sequential optional groups
- MEDIUMGHSA-27v5-c462-wpq7 CVE-2026-4923path-to-regexp vulnerable to Regular Expression Denial of Service via multiple wildcards
path-to-regexpnpm 0.1.12 HIGH 1 advisory 0.1.13
- HIGHGHSA-37ch-88jc-xwx2 CVE-2024-45296 CVE-2026-4867 GHSA-9wv6-86v2-598jpath-to-regexp vulnerable to Regular Expression Denial of Service via multiple route parameters
zodnpm 3.25.76 HIGH 1 advisory 4.6.6
- HIGHGHSA-mrhx-c7xc-m3w5 CVE-2023-54404Zod can exhaust memory while validating oversized constrained collections
qsnpm 6.14.0 MEDIUM 5 advisories 6.14.16.14.26.15.2+2 more
- MEDIUMGHSA-q8mj-m7cp-5q26 CVE-2026-8723qs has a remotely triggerable DoS: qs.stringify crashes with TypeError on null/undefined entries in comma-format arrays when encodeValuesOnly is set
- MEDIUMGHSA-6pq8-jhm2-2vcw CVE-2026-110816qs : qs.stringify with arrayFormat 'comma' throws an uncaught TypeError on array elements carrying a non-callable own toString (DoS)
- MEDIUMGHSA-6rw7-vpxm-498p CVE-2025-15284qs's arrayLimit bypass in its bracket notation allows DoS via memory exhaustion
- MEDIUMGHSA-4mjr-xmp4-gh2g CVE-2026-82417qs: Denial of Service via Attacker Controlled isBuffer
- LOWGHSA-w7fw-mjwx-w883 CVE-2026-2391qs's arrayLimit bypass in comma parsing allows denial of service
qsnpm 6.13.0 MEDIUM 5 advisories 6.14.16.14.26.15.2+2 more
- MEDIUMGHSA-6pq8-jhm2-2vcw CVE-2026-110816qs : qs.stringify with arrayFormat 'comma' throws an uncaught TypeError on array elements carrying a non-callable own toString (DoS)
- MEDIUMGHSA-6rw7-vpxm-498p CVE-2025-15284qs's arrayLimit bypass in its bracket notation allows DoS via memory exhaustion
- MEDIUMGHSA-q8mj-m7cp-5q26 CVE-2026-8723qs has a remotely triggerable DoS: qs.stringify crashes with TypeError on null/undefined entries in comma-format arrays when encodeValuesOnly is set
- MEDIUMGHSA-4mjr-xmp4-gh2g CVE-2026-82417qs: Denial of Service via Attacker Controlled isBuffer
- LOWGHSA-w7fw-mjwx-w883 CVE-2026-2391qs's arrayLimit bypass in comma parsing allows denial of service
ajvnpm 6.12.6 MEDIUM 1 advisory 6.14.08.18.0
- MEDIUMGHSA-2g4f-4pwh-qvx6 CVE-2025-69873ajv has ReDoS when using `$data` option
Past security advisories
Vulnerabilities published for this server itself, from the GitHub Advisory Database.
No security advisories have been published for this server in the GitHub Advisory Database.
How it runs
| Where it runs | On your machine, started by your MCP client from this repository or its package |
|---|---|
| Transport | stdio |
| Sign-in | not checked needs the live server |
| MCP SDK | @modelcontextprotocol/sdk ^1.17.5, fastmcp >=2.10.5 |
| Servers in the code | 1 (azure_ai_face_api) |
The project's own security
| Security policy | none no SECURITY.md in the repository: report issues privately through GitHub if it is enabled |
|---|---|
| Past advisories | none in the GitHub Advisory Database |
| Last push | 2026-02-20 |
| Signed releases | not checked yet |
Where it is published
| Listed in | 3 catalogs (github_search, glama, mcp_toplist) |
|---|---|
| License | MIT |
| Created | 2025-07-03 |
Attack map
How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.