• STORAGE
  • SECURITY
  • CLEANUP
  • HUMAN

How to audit Modal storage and secrets with your AI

Connect your agent to your Modal environment to inspect infrastructure state. Once connected, your AI handles the heavy lifting of scanning volumes and secrets.

Ask AI about this page

Short answer

How can I audit my Modal storage and secrets using AI?

Your agent uses Modal tools to pull a list of all existing persistent volumes and secret names. This lets you quickly spot orphaned storage or missing credentials without manual CLI checks. You get a clear view of your environment's footprint.

Audit outcomes

Infrastructure visibility

What your agent produces after scanning.

STORAGE

Volume inventory

The AI lists every persistent volume currently in your Modal account. You'll see exactly what's taking up space.

SECURITY

Secret verification

Your agent checks which secrets are mapped and available. This confirms your compute tasks have the access they need.

CLEANUP

Identify orphans

The AI flags volumes that aren't tied to active workloads. You can use this to decide what to delete manually.

HUMAN

Manual intervention

The AI identifies discrepancies but cannot delete volumes or secrets. You must perform any destructive actions yourself.

The workflow

What your AI does when the request arrives.

The agent moves from discovery to reporting using specific Modal tools.

  1. Inventory volumes

    The agent pulls a complete list of all persistent storage volumes in your account.

    list_volumes
  2. Check secrets

    The agent retrieves the names of all configured secrets to verify availability.

    list_secrets
  3. Cross-reference

    The AI compares your volume list against your expected infrastructure state.

    list_volumeslist_secrets
  4. Report findings

    The agent summarizes the state of your storage and secrets in plain text.

    list_volumeslist_secrets

Try it

Copy these to start.

Direct prompts to trigger an audit.

Starting points

Swap out the specific resource names for the ones you actually use in your Modal setup.

Modal Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_yQfuiuyaifaMlCchZoeV6rYy4ok4PpgYEfzlMmar/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat — Modal capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "modal-serverless-ai-infrastructure-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_yQfuiuyaifaMlCchZoeV6rYy4ok4PpgYEfzlMmar/mcp"
    }
  }
}
Copy into chat04
  • List all my Modal volumes and tell me if any look unused.

  • Check my Modal secrets and confirm if 'api_key_prod' is available.

  • Show me all persistent volumes currently active in my Modal account.

  • Audit my Modal secrets to see if I have everything needed for my training jobs.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect Modal once, then ask.

Just link your Modal account to Vinkius. Your credentials stay encrypted and your agent gets immediate access to the tools.

Connect Modal to your AI

FAQ

Common questions

  • 01

    Can the AI delete my Modal volumes?

    No. The AI can only list volumes. You have to handle all deletions through the Modal CLI or dashboard.

  • 02

    Can the AI see the actual values inside my secrets?

    No. The AI can only list the names of the secrets to verify they exist. It cannot read the sensitive content within them.

  • 03

    Does this work with any MCP-compatible client?

    Yes. Once you connect Modal to Vinkius, you can use it with Claude, Cursor, Windsurf, or VS Code.

  • 04

    Can the AI create new secrets for me?

    No. This MCP is for auditing and inspection. It does not have tools to create or modify resources.

  • 05

    How does the AI know which volumes are 'unused'?

    The AI looks at the metadata provided by the list_volumes tool to identify volumes that aren't currently attached to active functions.

  • More questions about Modal? The Connector page answers them. See everything the Modal Connector can do

Connect Modal to Claude, Cursor, ChatGPT & more