
Developers building automation or agentic workflows on top of Box have to navigate OAuth 2.0 app authorization, Box's folder-and-collaboration model, and token refresh before a single tool call returns a file.
To help your developers search files, manage folders, and retrieve shared content from the terminal with ease, we'll show you how to connect Box with Merge Agent Handler's Box MCP server.
Merge Agent Handler sits between Claude Code and the Box API.
You'd install the Merge CLI, authenticate once with your Merge Agent Handler account, and register the connection with a single command.
Once connected, Merge handles Box's OAuth credentials and token refresh on your behalf, so you never configure an app in the Box Developer Console or rotate access tokens across environments.
Related: How to use a Box MCP in Codex
Before getting started, you'll need the following:
claude --version to confirm)pipx --version to confirm, or install via pip install pipx)If you want to connect Merge Agent Handler's Box MCP with internal or customer-facing agentic products, you can follow the steps in our docs.
Run the following to install the Merge CLI: pipx install merge-api
Then verify the installation: merge --version
Log in to connect the CLI to your Merge Agent Handler account: merge login
This authenticates your session and links the CLI to your Merge Agent Handler account.
Register the Agent Handler MCP server with Claude Code:
Related: A guide to connecting a Box MCP with Cursor
Open a Claude Code session and run a query like:
List all files in my Box folder called "Vendor Contracts" that were modified in the last 30 days, including the file name, owner, and size.
The first time you invoke a Box tool, a Magic Link will appear to complete connector authentication.
{{this-blog-only-cta}}
In case you have more questions on setting up and using the Box MCP in Claude Code, we've addressed several more commonly-asked questions below.
With Box connected, Claude Code can:
You can build a self-hosted MCP server on top of Box's API. For a developer working with a single Box account and a narrow use case, the initial setup is manageable: create an app in the Box Developer Console, choose an auth method, configure the OAuth redirect URI, obtain a refresh token, and write tool schemas for the endpoints you need.
The complexity compounds at team scale.
Box's access model runs on collaborations: a file or folder is visible to a user based on the collaboration roles attached to it, and those roles cascade through the folder tree in ways that depend on enterprise settings. A token that works for one user's view of the tree returns different results for another, and getting the scope wrong often returns partial results rather than a clear error.
Box also draws a hard line between standard OAuth apps and the enterprise-grade JWT and Client Credentials Grant flows that admin-level access requires. Picking the wrong app type means rebuilding the auth layer later when your use case grows beyond a single user.
Merge Agent Handler abstracts the auth layer and adds tool-level scoping on top. For example, an agent that reads documents can get the list and download tools and never reaches delete or collaboration-removal tools unless you explicitly grant them.
Every call is also logged with the timestamp, tool name, and inputs, giving teams an audit trail without any custom instrumentation.
Box holds the documents teams depend on: contracts, financial records, signed agreements, and shared deliverables.
Developers who need to build on that content currently retrieve it manually or write a dedicated Box API integration for each workflow that needs access.
With the Box MCP connected, Claude Code can search folders, retrieve files, and create or organize content without leaving the terminal.
This matters most when Box content feeds a downstream step: pulling the latest contract before generating a summary, checking whether a deliverable was uploaded before triggering a notification, or writing a generated report directly to a shared project folder.
Yes, Merge for Workforce is built to help organizations provision, secure, and govern how employees connect AI to systems like Box.
Common patterns include:
Taken together, employees can use the Box MCP to retrieve documents, organize folders, and generate shared links, and more, while IT keeps centralized control over which folders each agent can reach.
Use Merge Agent Handler’s 150+ connectors (including Box) to power reliable, secure, and powerful agents.