How to Use the Backblaze B2 MCP in CrewAI
Deploy an autonomous crew of AI agents to manage your Backblaze B2 cloud storage with CrewAI.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Backblaze B2 MCP to CrewAI
Create your Vinkius account to connect Backblaze B2 to CrewAI and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Autonomous Storage Auditor Crew
Assign a 'Monitor' agent to periodically scan your account with `list_unfinished_large_files` and `list_buckets`. This agent's only job is to watch for problems, like stalled uploads or buckets with insecure ACLs. When the Monitor finds an issue, it passes the details to a 'Janitor' agent. The Janitor agent then takes action, using tools like `delete_file_version` to clean up fragments or `update_bucket` to fix permissions. This is how you build a self-healing storage system.
Role-Based Data Lifecycle Management
Create an 'Archivist' agent that uses `list_file_names` to identify files ready for archival. Instead of deleting them, it can use `hide_file` to take them out of active rotation, passing a list to a 'Deletion' agent. The Deletion agent, operating on a delay, then works through the list, using `delete_file_version` to permanently purge the data. This specialization prevents a single agent from accidentally deleting critical data. This MCP Server gives them the tools they need.
Smart Provisioning with a CrewAI Team
Task a 'Planner' agent to decide when a new bucket is needed. It uses `list_buckets` to check the current state. Once it decides, it delegates the task to a 'Provisioner' agent. The Provisioner agent's sole responsibility is to execute the `create_bucket` tool and then use `update_bucket` to set the correct access policies. This division of labor makes your autonomous operations more reliable and easier to debug.
Set up Backblaze B2 MCP in CrewAI
Prerequisites
- Python 3.10+ installed
-
crewaipackage (pip install crewai) - Active Vinkius subscription with a valid endpoint token
- 1
Install CrewAI
Run
pip install crewaito install the framework. MCP support is built-in via themcpsparameter. - 2
Add the MCP URL to your agent
Pass your Vinkius endpoint directly to the
mcpslist. Replace[YOUR_TOKEN_HERE]with your token from cloud.vinkius.com. CrewAI handles tool discovery and caching automatically. - 3
Kick off your crew
Create a
Crewwith your agent and tasks. Callcrew.kickoff()— the agent will automatically invoke Backblaze B2 tools as needed.
from crewai import Agent, Task, Crew
agent = Agent(
role="Backblaze B2 Analyst",
goal="Access and analyze Backblaze B2 data via MCP.",
backstory="Expert analyst with direct Backblaze B2 access.",
mcps=[
"https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
],
)
task = Task(
description="List recent Backblaze B2 transactions",
agent=agent,
expected_output="A summary of recent activity",
)
crew = Crew(agents=[agent], tasks=[task])
result = crew.kickoff()
print(result) Prerequisites
- Python 3.10+ installed
-
crewai+crewai-toolspackages - Active Vinkius subscription with a valid endpoint token
- 1
Install dependencies
Run
pip install crewai crewai-tools. TheMCPServerAdapterhandles lifecycle management and tool conversion. - 2
Connect with MCPServerAdapter
Use
MCPServerAdapteras a context manager withSseServerParameterspointing to your Vinkius endpoint. The adapter automatically manages connection lifecycle. - 3
Assign tools and run
Pass the returned
mcp_toolsto your agent'stoolsparameter. The adapter converts MCP tools to nativeBaseToolobjects compatible with all CrewAI agents.
from crewai import Agent, Task, Crew
from crewai_tools import MCPServerAdapter
from mcp import SseServerParameters
server_params = SseServerParameters(
url="https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
)
with MCPServerAdapter(server_params) as mcp_tools:
agent = Agent(
role="Backblaze B2 Analyst",
goal="Access and analyze Backblaze B2 data via MCP.",
backstory="Expert analyst with direct Backblaze B2 access.",
tools=mcp_tools,
)
task = Task(
description="List recent Backblaze B2 transactions",
agent=agent,
expected_output="A summary of recent activity",
)
crew = Crew(agents=[agent], tasks=[task])
result = crew.kickoff()
print(result) Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by Backblaze B2. All third-party trademarks, logos, and brand names are the property of their respective owners. Their use on this website is strictly for informational purposes to identify service compatibility and interoperability.
Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about Backblaze B2 MCP in CrewAI
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Backblaze B2 MCP today
We host it, we monitor it, we maintain it. You just paste one token.