MCP ScannerCustom audit
All servers

microsoft/MCP-Server-and-PostgreSQL-Sample-Retail

A Model Context Protocol (MCP) server that provides comprehensive customer sales database access for Zava Retail DIY Business. This server enables AI assistants to query and analyze retail sales data through a secure, schema-aware interface.

PublisherMicrosoft Official
MCP Registrynot listed
Scanned2026-11-25
Scannerv1.3.0
Methodologyv1.2
Stars 22Forks 32Last push 2026-11-05
Python 100.0%by source files the scanner reads
Code safety10.0Exposure8.8Prompts10.0Supply chainnot checkedSecrets10.0Transparency10.0
Analysis confidence90%
How much of the server the scanner could read: tools analyzed, files parsed, limits hit.
Code Safetynothing published yet10.0/10

Paths from tool input into commands, SQL, files and URLs

Capability Exposure8.8/10Good

How much power the tools give an agent over the machine

Prompt Integritynothing published yet10.0/10

Hidden instructions and poisoning in text for the model

Supply Chainnot checked—

Known vulnerabilities in the packages the server uses

Secrets & Credentialsnothing published yet10.0/10

How the server reads credentials and where they can go

Behavior Transparencynothing published yet10.0/10

Whether the tools do only what their descriptions say

How far the analysis went

  • Supply Chain: no dependency file the scanner reads was found, so it has no number

Top risks in plain words

  • HIGHTool execute_sales_query runs SQL 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.

  • Connect it with a read-only database user

    execute_sales_query can run any query it is given.

  • Turn off the tools you do not use

    Most MCP clients let you disable single tools. If you do not need execute_sales_query, switch them off.

  • 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 4 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.

Read or write filesopen, create, change or delete files
semantic_search_products
1 of 4
Connect to the internet or other hostssend requests or open connections
execute_sales_query, get_multiple_table_schemas, semantic_search_products
3 of 4

No tool was seen to: start other programs on the machine; read passwords, tokens or keys; read environment variables; touch sensitive locations.

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.

Hosts written in the code

The literal addresses the tools' requests name.

  • None: no request names a fixed host.
Addresses from settings

Constants or settings that start an address; the value comes from configuration.

  • None seen.
Secrets it reads

Credential-like environment variables. Give the server a key with the least access it needs.

  • None: no credential-like variable is read by the tools.

6 request addresses could not be settled from the code (built at run time).

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.

  • files1 tool · semantic_search_products
  • web or API responses3 tools · execute_sales_query, get_multiple_table_schemas, semantic_search_products

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 (4: 4 tools)

Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.

execute_sales_querytool Always fetch and inspect the database schema before generating any SQL using the get_multiple_table_schemas tool; use only exact table and column names, and nevNetworkoutside textRuns SQL
Always fetch and inspect the database schema before generating any SQL using the get_multiple_table_schemas tool; use only exact table and column names, and never invent or infer data, columns, tables, or values—if the information isn't present in the schema or database, clearly state that it cannot be answered. Join related tables for clarity, aggregate results where appropriate, and limit output to 20 rows with a note that the limit is for readability. To identify store types, use the retail.store.is_online boolean: true indicates an online store, false indicates a physical store. **NEVER** return entity IDs or UUIDs in the response, as they are not meaningful to the user. Instead, use descriptive names or values.

    Args:
        postgresql_query: A well-formed PostgreSQL query.

    Returns:
        Query results as a string.
get_current_utc_datetool Get the current UTC date and time in ISO format. Useful for date time relative queries or understanding the current date for time-sensitive analysis.
Get the current UTC date and time in ISO format. Useful for date time relative queries or understanding the current date for time-sensitive analysis.

    Returns:
        Current UTC date and time in ISO format (YYYY-MM-DDTHH:MM:SS.fffffZ)
get_multiple_table_schemastool Retrieve schemas for multiple tables. Use this tool only for schemas you have not already fetched during the conversation.Networkoutside text
Retrieve schemas for multiple tables. Use this tool only for schemas you have not already fetched during the conversation.

    Args:
        table_names: List of table names. Valid table names include 'retail.customers', 'retail.stores', 'retail.categories', 'retail.product_types', 'retail.products', 'retail.orders', 'retail.order_items', 'retail.inventory'.

    Returns:
        Concatenated schema strings for the requested tables.
semantic_search_productstool Search for Zava products using natural language descriptions to find matches based on semantic similarity—considering functionality, form, use, and other attribFilesNetworkoutside text
Search for Zava products using natural language descriptions to find matches based on semantic similarity—considering functionality, form, use, and other attributes.

    Returns:
        Compact success shape:
          {"c":["col1","col2"],"r":[[v11,v12],[v21,v22]],"n":2}
        Empty result adds 'msg':
          {"c":[],"r":[],"n":0,"msg":"No rows"}
        Error shape:
          {"err":"...","q":"SELECT ...","c":[],"r":[],"n":0}

Text the model reads (4)

Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.

semantic_search_products tool
Search for Zava products using natural language descriptions to find matches based on semantic similarity—considering functionality, form, use, and other attributes.

    Returns:
        Compact success shape:
          {"c":["col1","col2"],"r":[[v11,v12],[v21,v22]],"n":2}
        Empty result adds 'msg':
          {"c":[],"r":[],"n":0,"msg":"No rows"}
        Error shape:
          {"err":"...","q":"SELECT ...","c":[],"r":[],"n":0}
get_multiple_table_schemas tool
Retrieve schemas for multiple tables. Use this tool only for schemas you have not already fetched during the conversation.

    Args:
        table_names: List of table names. Valid table names include 'retail.customers', 'retail.stores', 'retail.categories', 'retail.product_types', 'retail.products', 'retail.orders', 'retail.order_items', 'retail.inventory'.

    Returns:
        Concatenated schema strings for the requested tables.
execute_sales_query tool
Always fetch and inspect the database schema before generating any SQL using the get_multiple_table_schemas tool; use only exact table and column names, and never invent or infer data, columns, tables, or values—if the information isn't present in the schema or database, clearly state that it cannot be answered. Join related tables for clarity, aggregate results where appropriate, and limit output to 20 rows with a note that the limit is for readability. To identify store types, use the retail.store.is_online boolean: true indicates an online store, false indicates a physical store. **NEVER** return entity IDs or UUIDs in the response, as they are not meaningful to the user. Instead, use descriptive names or values.

    Args:
        postgresql_query: A well-formed PostgreSQL query.

    Returns:
        Query results as a string.
get_current_utc_date tool
Get the current UTC date and time in ISO format. Useful for date time relative queries or understanding the current date for time-sensitive analysis.

    Returns:
        Current UTC date and time in ISO format (YYYY-MM-DDTHH:MM:SS.fffffZ)

What we checked

The same checks run on every server. Each line below has one of these marks:

FoundA published issue such as a risky tool or a CVE
PassedWe ran the check on this server and found nothing
After reviewChecked; we publish it once a person verifies it
Partly tracedRan, but the scanner could not follow every path to its end
FactWhat the code does, not a judgement either way
Not checkedThe scanner had nothing to read for it, or it needs the live server
Code Safety10.0
  • 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injection
    Checked on every scan. Results in this category are published only after a person has verified them.
Capability Exposure8.8
  • Runs programs the caller chooses
    No tool runs a command or program the caller supplies — 4 tool handlers traced
  • Executes caller-supplied code
    No tool evaluates code the caller supplies — 4 tool handlers traced
  • Reads or writes any file path
    No tool works on a file path the caller supplies without a root check — 4 tool handlers traced
  • Requests any address
    No tool sends a request to an address the caller supplies — 4 tool handlers traced
  • Runs caller-supplied SQL
    1 finding the scanner could not decide; see the findings below
  • Tools that start processes
    Not seen in the traced code of 4 capabilities; 4 more call code the scanner could not follow, where it may happen
  • Tools that touch files
    1 of 4 capabilities touch files; 3 more call code the scanner could not follow, where it may happen
  • Tools that call the network
    3 of 4 capabilities call the network; 1 more call code the scanner could not follow, where it may happen
Where the code is: 4 handlers in 1 file at commit 1b6e188622fe
Prompt Integrity10.0
  • 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrity
    Checked on every scan. Results in this category are published only after a person has verified them.
Supply Chainnot checked
  • Dependency manifests
    No manifest found
  • Lockfiles checked against OSV
    Nothing could be resolved to exact versions
  • MCP SDK version
    No MCP SDK declared in a manifest
Secrets & Credentials10.0
  • 3 checks: credential harvesting, undeclared credential access, credentials sent over the network
    Checked on every scan. Results in this category are published only after a person has verified them.
  • Tools that read credentials
    Not seen in the traced code of 4 capabilities; 4 more call code the scanner could not follow, where it may happen
  • Authentication declared
    Not checked: needs the live server's tools/list (a remote server declares how clients authenticate)
Behavior Transparency10.0
  • 3 checks: undeclared network access, undeclared file access, undeclared process execution
    Checked on every scan. Results in this category are published only after a person has verified them.
  • Tool descriptions present
    Every tool has a description the model and the user can read
  • Statically known names
    Every tool's name could be read from the code
  • Input schemas
    Not checked: needs the live server's tools/list (every tool declares an input schema)
  • Destructive tools annotated
    Not checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)

Dependencies with known vulnerabilities (0 in production)

No known vulnerabilities in the production dependencies that could be checked.

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 runsOn your machine, started by your MCP client from this repository or its package
TransportStreamable HTTP, SSE
Sign-innot checked needs the live server
Servers in the code1 (mcp-zava-sales)

The project's own security

Security policyyes SECURITY.md
Private reportingthe policy does not name a private channel
Past advisoriesnone in the GitHub Advisory Database
Last push2026-11-05
Signed releasesnot checked yet

Where it is published

Listed in1 catalog (github_search)
LicenseMIT
Created2025-09-25

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.

Request a scan or an audit

Tell us about your server. We reply within 5 working days.

What do you need? *

We use these details only to answer you.