MCP ScannerCustom audit
All servers

Azure-Samples/remote-mcp-functions-python

Getting Started with Remote MCP Servers using Azure Functions (Python)

PublisherMicrosoft Official
MCP Registrynot listed
Scanned2026-11-25
Scannerv1.3.0
Methodologyv1.2
Stars 125Forks 83Last push 2026-10-13
Python 75.0%TypeScript 25.0%by source files the scanner reads
Code safety10.0Exposure7.7Prompts10.0Supply chain7.0Secrets10.0Transparency10.0
Analysis confidence82%
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 Exposure7.7/10Fair

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 Chain7.0/10Fair

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

Top risks in plain words

  • HIGHTool get_website_preview 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.

  • Limit where it can connect

    get_website_preview can 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 get_website_preview, 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.

  • 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 12 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
get_weather
1 of 12
Read passwords, tokens or keysload secrets such as API keys
hello_tool_with_auth
1 of 12
Read environment variablesoften where API keys are kept
batch_save_snippets, hello_tool_with_auth
2 of 12
Touch sensitive locationssuch as ~/.ssh, cloud credentials or browser data
hello_tool_with_auth
1 of 12

No tool was seen to: start other programs on the machine; connect to the internet or other hosts.

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.

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 · get_weather
Reads private data2 tools
Takes text from outside0 tools
Can send data out0 tools

Not all three are present in the tools the scanner traced.

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

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

get_website_previewtool Demonstrates returning TextContentBlock and ResourceLinkBlock together. Fetches basic metadata from a URL and returns it with a resource link.Requests any address
Demonstrates returning TextContentBlock and ResourceLinkBlock together. Fetches basic metadata from a URL and returns it with a resource link.
batch_save_snippetstool Demonstrates batch tool inputs - saving multiple snippets in one operation.Env vars
Demonstrates batch tool inputs - saving multiple snippets in one operation.

    Accepts an array of snippet objects and saves each one to blob storage. 
    
    This pattern is useful for bulk operations and reduces the number of
    tool invocations needed.
    
    Uses managed identity when deployed to Azure, falls back to connection
    string for local development with Azurite.

    Args:
        snippet_items: List of dicts with 'name' and 'content' keys (or JSON string)

    Returns:
        JSON string with summary of saved snippets
generate_badgetool Demonstrates returning multiple content blocks (List[ContentBlock]). Generates an SVG status badge and returns it alongside a text description.
Demonstrates returning multiple content blocks (List[ContentBlock]). Generates an SVG status badge and returns it alongside a text description.
generate_qr_codetool Demonstrates returning a single ImageContentBlock. Generates a QR code PNG and returns it as a base64-encoded image.
Demonstrates returning a single ImageContentBlock. Generates a QR code PNG and returns it as a base64-encoded image.
get_snippettool Retrieve a snippet by name from Azure Blob Storage.
Retrieve a snippet by name from Azure Blob Storage.
get_snippet_with_metadatatool Demonstrates returning both content blocks and structured metadata via CallToolResult.
Demonstrates returning both content blocks and structured metadata via CallToolResult.

    Returns a CallToolResult with:
    - content: List of ContentBlock objects (for backward compatibility)
    - structured_content: JSON metadata (for clients that support it)

    This pattern allows clients to choose between simple text content or
    richer structured data depending on their capabilities.
get_weathertool Returns current weather for a location via Open-Meteo.Filesoutside text
Returns current weather for a location via Open-Meteo.
hello_mcptool Hello world.
Hello world.
hello_tool_with_authtool Greets the signed-in user by name using the On-Behalf-Of (OBO) flow to call Microsoft Graph.CredentialsEnv varsSensitive paths
Greets the signed-in user by name using the On-Behalf-Of (OBO) flow to call Microsoft Graph.

    In production (with built-in MCP auth), the user's
    token arrives via HTTP headers. This tool exchanges that token for a Graph
    token using the OBO flow, then calls Graph's /me endpoint as that user.

    In local development, falls back to the developer's local identity
    (az login, VS Code, etc.).
save_snippettool Save a snippet with a name to Azure Blob Storage.
Save a snippet with a name to Azure Blob Storage.
save_snippettool Save a snippet with a name to Azure Blob Storage.
Save a snippet with a name to Azure Blob Storage.
save_snippet_structuredtool Demonstrates returning a structured data class (Snippet POCO equivalent).
Demonstrates returning a structured data class (Snippet POCO equivalent).
    
    When a dataclass is returned, it's automatically serialized as structured
    content, providing type information and documentation to MCP clients.
    This is the Python equivalent of the .NET [McpContent] pattern.
    
    Args:
        name: The snippet name
        content: The snippet content
        
    Returns:
        Snippet dataclass instance

Text the model reads (12)

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

save_snippet tool
Save a snippet with a name to Azure Blob Storage.
hello_mcp tool
Hello world.
get_snippet tool
Retrieve a snippet by name from Azure Blob Storage.
save_snippet tool
Save a snippet with a name to Azure Blob Storage.
generate_qr_code tool
Demonstrates returning a single ImageContentBlock. Generates a QR code PNG and returns it as a base64-encoded image.
generate_badge tool
Demonstrates returning multiple content blocks (List[ContentBlock]). Generates an SVG status badge and returns it alongside a text description.
get_website_preview tool
Demonstrates returning TextContentBlock and ResourceLinkBlock together. Fetches basic metadata from a URL and returns it with a resource link.
get_snippet_with_metadata tool
Demonstrates returning both content blocks and structured metadata via CallToolResult.

    Returns a CallToolResult with:
    - content: List of ContentBlock objects (for backward compatibility)
    - structured_content: JSON metadata (for clients that support it)

    This pattern allows clients to choose between simple text content or
    richer structured data depending on their capabilities.
batch_save_snippets tool
Demonstrates batch tool inputs - saving multiple snippets in one operation.

    Accepts an array of snippet objects and saves each one to blob storage. 
    
    This pattern is useful for bulk operations and reduces the number of
    tool invocations needed.
    
    Uses managed identity when deployed to Azure, falls back to connection
    string for local development with Azurite.

    Args:
        snippet_items: List of dicts with 'name' and 'content' keys (or JSON string)

    Returns:
        JSON string with summary of saved snippets
save_snippet_structured tool
Demonstrates returning a structured data class (Snippet POCO equivalent).
    
    When a dataclass is returned, it's automatically serialized as structured
    content, providing type information and documentation to MCP clients.
    This is the Python equivalent of the .NET [McpContent] pattern.
    
    Args:
        name: The snippet name
        content: The snippet content
        
    Returns:
        Snippet dataclass instance
hello_tool_with_auth tool
Greets the signed-in user by name using the On-Behalf-Of (OBO) flow to call Microsoft Graph.

    In production (with built-in MCP auth), the user's
    token arrives via HTTP headers. This tool exchanges that token for a Graph
    token using the OBO flow, then calls Graph's /me endpoint as that user.

    In local development, falls back to the developer's local identity
    (az login, VS Code, etc.).
get_weather tool
Returns current weather for a location via Open-Meteo.

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 Exposure7.7
  • Runs programs the caller chooses
    No tool runs a command or program the caller supplies — 12 tool handlers traced
  • Executes caller-supplied code
    No tool evaluates code the caller supplies — 12 tool handlers traced
  • Reads or writes any file path
    No tool works on a file path the caller supplies without a root check — 12 tool handlers traced
  • Requests any address HIGH
    1 finding in get_website_preview
  • Runs caller-supplied SQL
    No tool executes a query the caller supplies — 12 tool handlers traced
  • Tools that start processes
    Not seen in the traced code of 12 capabilities; 11 more call code the scanner could not follow, where it may happen
  • Tools that touch files
    1 of 12 capabilities touch files; 10 more call code the scanner could not follow, where it may happen
  • Tools that call the network
    Not seen in the traced code of 12 capabilities; 11 more call code the scanner could not follow, where it may happen
Where the code is: 12 handlers in 4 files at commit d6d67a38ac9d
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 Chain7.0
  • Dependency manifests
    6 manifests: pyproject.toml, src/FunctionsMcpPrompts/requirements.txt, src/FunctionsMcpResources/requirements.txt, src/FunctionsMcpTool/requirements.txt, src/McpWeatherApp/app/package.json
  • Lockfiles checked against OSV
    4 files resolved and checked against the OSV database; 6 not resolved: pyproject.toml: dependency ranges declared here were not resolved against a lockfile and were not checked; src/FunctionsMcpPrompts/requirements.txt: 1 dependency line carries no exact version, so the installed version was not checked; pin them or add a lockfile
  • Known vulnerabilities in production dependencies
    No production dependency with a known advisory
  • Known vulnerabilities in other dependencies
    No package used only for development, tests or examples has a known advisory
  • MCP SDK version
    mcp , @modelcontextprotocol/ext-apps ^1.0.0
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
    1 of 12 capabilities read credentials; 10 more call code the scanner could not follow, where it may happen
  • Environment variables
    2 capabilities read environment variables (often API keys)
  • 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)

Dependency ranges were not resolved against a lockfile, so the score is capped at 7.

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
Transportnot stated in the code the scanner read; most local servers talk over stdio
Sign-innot checked needs the live server
MCP SDKmcp , @modelcontextprotocol/ext-apps ^1.0.0

The project's own security

Security policynone no SECURITY.md in the repository: report issues privately through GitHub if it is enabled
Past advisoriesnone in the GitHub Advisory Database
Last push2026-10-13
Signed releasesnot checked yet

Where it is published

Listed in1 catalog (github_search)
LicenseMIT
Created2025-04-03
Topicsazure-functions azure-functions-python mcp mcp-server

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.