2,500+ MCP servers ready to use
Vinkius

Backblaze B2 MCP Server for Mastra AI 10 tools — connect in under 2 minutes

Built by Vinkius GDPR 10 Tools SDK

Mastra AI is a TypeScript-native agent framework built for modern web stacks. Connect Backblaze B2 through Vinkius and Mastra agents discover all tools automatically. type-safe, streaming-ready, and deployable anywhere Node.js runs.

Vinkius supports streamable HTTP and SSE.

typescript
import { Agent } from "@mastra/core/agent";
import { createMCPClient } from "@mastra/mcp";
import { openai } from "@ai-sdk/openai";

async function main() {
  // Your Vinkius token. get it at cloud.vinkius.com
  const mcpClient = await createMCPClient({
    servers: {
      "backblaze-b2": {
        url: "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp",
      },
    },
  });

  const tools = await mcpClient.getTools();
  const agent = new Agent({
    name: "Backblaze B2 Agent",
    instructions:
      "You help users interact with Backblaze B2 " +
      "using 10 tools.",
    model: openai("gpt-4o"),
    tools,
  });

  const result = await agent.generate(
    "What can I do with Backblaze B2?"
  );
  console.log(result.text);
}

main();
Backblaze B2
Fully ManagedVinkius Servers
60%Token savings
High SecurityEnterprise-grade
IAMAccess control
EU AI ActCompliant
DLPData protection
V8 IsolateSandboxed
Ed25519Audit chain
<40msKill switch
Stream every event to Splunk, Datadog, or your own webhook in real-time

* Every MCP server runs on Vinkius-managed infrastructure inside AWS - a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts optimized for native MCP execution. See our infrastructure

About Backblaze B2 MCP Server

Connect your Backblaze B2 account to any AI agent and manage your cloud storage architecture directly through natural conversation.

Mastra's agent abstraction provides a clean separation between LLM logic and Backblaze B2 tool infrastructure. Connect 10 tools through Vinkius and use Mastra's built-in workflow engine to chain tool calls with conditional logic, retries, and parallel execution. deployable to any Node.js host in one command.

O que você pode fazer

  • Buckets — Create, delete, update privacy (allPrivate/allPublic), and list globally mapped storage buckets
  • File Management — Hide files (soft delete), remove explicit file versions (hard delete), and list surface names
  • Health Validation — List unfinished large file chunks to find failed multipart uploads
  • File Intelligence — Retrieve granular file details, sizes, hashes (SHA1), and content types natively

Como funciona

1. Subscribe to this server
2. Enter your Backblaze B2 Application Key ID and Key
3. Start architecting storage and debugging files from Claude, Cursor, or any MCP-compatible client

Your AI agent now has the power to orchestrate secure and cost-effective object storage without leaving your editor.

Para quem é?

  • DevOps Engineers — rapidly verify bucket states, clean up abandoned file versions, and debug failed multipart streams
  • Backend Developers — create public and private storage domains directly from development spaces
  • System Administrators — audit object footprint securely and perform granular file integrity checks

The Backblaze B2 MCP Server exposes 10 tools through the Vinkius. Connect it to Mastra AI in under two minutes — no API keys to rotate, no infrastructure to provision, no vendor lock-in. Your configuration, your data, your control.

How to Connect Backblaze B2 to Mastra AI via MCP

Follow these steps to integrate the Backblaze B2 MCP Server with Mastra AI.

01

Install dependencies

Run npm install @mastra/core @mastra/mcp @ai-sdk/openai

02

Replace the token

Replace [YOUR_TOKEN_HERE] with your Vinkius token

03

Run the agent

Save to agent.ts and run with npx tsx agent.ts

04

Explore tools

Mastra discovers 10 tools from Backblaze B2 via MCP

Why Use Mastra AI with the Backblaze B2 MCP Server

Mastra AI provides unique advantages when paired with Backblaze B2 through the Model Context Protocol.

01

Mastra's agent abstraction provides a clean separation between LLM logic and tool infrastructure. add Backblaze B2 without touching business code

02

Built-in workflow engine chains MCP tool calls with conditional logic, retries, and parallel execution for complex automation

03

TypeScript-native: full type inference for every Backblaze B2 tool response with IDE autocomplete and compile-time checks

04

One-command deployment to any Node.js host. Vercel, Railway, Fly.io, or your own infrastructure

Backblaze B2 + Mastra AI Use Cases

Practical scenarios where Mastra AI combined with the Backblaze B2 MCP Server delivers measurable value.

01

Automated workflows: build multi-step agents that query Backblaze B2, process results, and trigger downstream actions in a typed pipeline

02

SaaS integrations: embed Backblaze B2 as a first-class tool in your product's AI features with Mastra's clean agent API

03

Background jobs: schedule Mastra agents to query Backblaze B2 on a cron and store results in your database automatically

04

Multi-agent systems: create specialist agents that collaborate using Backblaze B2 tools alongside other MCP servers

Backblaze B2 MCP Tools for Mastra AI (10)

These 10 tools become available when you connect Backblaze B2 to Mastra AI via MCP:

01

authorize_account

Uncovers the dynamically assigned apiUrl (e.g. api003.backblazeb2.com) natively orchestrating regional data ingress specifically assigned to your billing account. Verify and extract Backblaze global session routing endpoints

02

create_bucket

Bootstraps essential structures before assigning automated backup syncs overriding file lock retention bounds. Provision a fresh logical Storage Bucket partition

03

delete_bucket

Fails intentionally via 400 Bad Request if standard files or hidden object versions persist nested inside. Ensure all lifecycle rules completed purging prior to command. Irreversibly delete an entirely empty Backblaze Storage Bucket

04

delete_file_version

Instantly removes the storage footprint avoiding long-term retention hoarding. Irreversibly vaporize specific absolute chunk data from disk arrays

05

get_file_info

Obtain granular checksum and headers associated with one precise B2 File

06

hide_file

Does not actually delete binary payload, merely injects a null-marker shadowing the actual file ensuring b2_list_file_names ignores it, enforcing safe soft deletion logic. Mark an active B2 file as hidden leaving data for lifecycle sweep

07

list_buckets

Crucial to resolve immutable String Bucket IDs prerequisite to executing downstream CRUD operations strictly inside native borders. Retrieve the exact Storage Buckets existing globally on the B2 Account

08

list_file_names

Examines precise .pdf, .mp4 file locations avoiding hidden shadowed states produced by lifecycle overwrite semantics. Paginate primary surface-level object metadata from a specific Bucket

09

list_unfinished_large_files

Crucial for verifying broken API pipelines originating from external S3 clients failing CompleteMultipartUpload. Scan B2 nodes for stalled Multipart Upload chunk aggregates

10

update_bucket

Use only for static asset endpoints. Mutate global ACL privacy settings for a bounded Bucket

Example Prompts for Backblaze B2 in Mastra AI

Ready-to-use prompts you can give your Mastra AI agent to start working with Backblaze B2 immediately.

01

"What buckets do we have enabled in Backblaze B2 right now?"

02

"Create a new private bucket named 'ai-crawler-logs-2026' and make it private."

03

"Get the file details and SHA1 for the object 'index.html' in the public bucket."

Troubleshooting Backblaze B2 MCP Server with Mastra AI

Common issues when connecting Backblaze B2 to Mastra AI through the Vinkius, and how to resolve them.

01

createMCPClient not exported

Install: npm install @mastra/mcp

Backblaze B2 + Mastra AI FAQ

Common questions about integrating Backblaze B2 MCP Server with Mastra AI.

01

How does Mastra AI connect to MCP servers?

Create an MCPClient with the server URL and pass it to your agent. Mastra discovers all tools and makes them available with full TypeScript types.
02

Can Mastra agents use tools from multiple servers?

Yes. Pass multiple MCP clients to the agent constructor. Mastra merges all tool schemas and the agent can call any tool from any server.
03

Does Mastra support workflow orchestration?

Yes. Mastra has a built-in workflow engine that lets you chain MCP tool calls with branching logic, error handling, and parallel execution.

Connect Backblaze B2 to Mastra AI

Get your token, paste the configuration, and start using 10 tools in under 2 minutes. No API key management needed.