Connect Box to Claude: Orchestrate Governance and Access
Learn how to connect Box to Claude using Truto's managed MCP server. This guide covers enterprise governance workflows, security classification, and tool calling.
If you need to connect Box to Claude to orchestrate enterprise file governance, automate security classifications, or manage user access, you need a Model Context Protocol (MCP) server. This server acts as the critical translation layer between Claude's natural language tool calls and Box's strict enterprise REST API. You can either construct and maintain this integration infrastructure yourself, or use a managed platform like Truto to dynamically generate a secure, authenticated MCP server URL.
If your team uses ChatGPT, check out our guide on /connect-box-to-chatgpt-manage-content-and-search-archives/ or explore our broader architectural overview on /connect-box-to-ai-agents-streamline-signing-and-metadata/.
Giving a Large Language Model (LLM) read and write access to a sprawling enterprise content management system like Box is a significant engineering challenge. You are not just dealing with simple file downloads; you are orchestrating complex metadata taxonomies, asynchronous governance policies, and chunked upload sessions. Every time Box updates an endpoint or deprecates a legacy capability, you have to update your server code, redeploy, and test the integration.
This guide breaks down exactly how to use Truto to generate a secure, managed MCP server for Box, connect it natively to Claude Desktop, and execute complex governance workflows using natural language.
The Engineering Reality of the Box API
A custom MCP server is a self-hosted integration layer. While the open MCP standard provides a predictable way for models to discover tools, the reality of implementing it against Box's enterprise API is painful. Box is not merely a cloud drive - it is a highly structured content governance platform with strict rules around compliance, metadata, and data residency.
If you decide to build a custom MCP server for Box, here are the specific integration challenges you will face:
Complex Metadata Taxonomies and Cascade Policies
Box allows enterprises to define rigid metadata templates (like a Box__Security__Classification__Key). Applying this metadata is not a simple file update. You must apply instances of these templates to individual files or folders using JSON-Patch operations. If you want a folder's metadata to apply to all its contents, you must create a Metadata Cascade Policy. The Box API handles these cascades asynchronously. Your MCP server must be designed to understand that applying a policy returns a 202 Accepted, meaning the LLM cannot immediately query the nested files expecting the metadata to be present.
Chunked Upload Sessions for Large Files Standard file upload APIs fail when dealing with enterprise media or large CAD files. Box requires a specific chunked upload flow for files over 20MB. An LLM cannot execute this natively. If you want Claude to upload a large generated report to Box, your custom MCP server must expose an abstraction that handles the creation of the upload session, the splitting of the binary payload, the sequential part uploads, and the final commit operation. Without this, your agent will constantly timeout or throw 413 Payload Too Large errors.
Shield Information Barriers and Legal Holds Enterprise Box environments use Shield Information Barriers to prevent communication between conflicted groups (e.g., advisory and auditing arms of a firm). If an LLM attempts to create a collaboration that violates an active barrier, the API returns complex 403 Forbidden constraint errors. Similarly, files under Legal Hold cannot be deleted or modified, even by admins. A naive MCP server will simply crash or confuse the LLM when it encounters these governance-enforced constraints. You must strictly define these error schemas in your tool definitions so Claude knows how to parse and recover from compliance blocks.
Generating a Managed Box MCP Server via Truto
Instead of building an integration layer from scratch, handling OAuth lifecycles, and manually defining dozens of JSON schemas, you can use Truto to generate a Box MCP server instantly. Truto derives tool definitions directly from its unified integration configurations and documentation records, ensuring that only well-documented, valid endpoints are exposed to the LLM.
Each generated MCP server is scoped to a specific Box integrated account. The server URL contains a cryptographic token that securely identifies the connection, meaning the URL itself acts as the primary authentication mechanism for the MCP client.
You can generate this server via the Truto UI or programmatically via the API.
Option 1: Via the Truto UI
For administrators who want to quickly provision access for a local Claude Desktop instance:
- Navigate to the Integrated Accounts page in your Truto dashboard and select your connected Box account.
- Click the MCP Servers tab.
- Click Create MCP Server.
- Select your desired configuration (e.g., restrict to
readmethods only, or filter by specific tags likegovernanceorfiles). - Copy the generated MCP server URL. You will use this in Claude.
Option 2: Via the Truto API
For developers embedding AI features into their own applications, you can generate MCP servers programmatically on behalf of your users.
Make an authenticated POST request to the Truto API. This validates the integration, securely hashes the generated token at the edge, and returns a ready-to-use URL.
curl -X POST https://api.truto.one/integrated-account/{integrated_account_id}/mcp \
-H "Authorization: Bearer YOUR_TRUTO_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Box Governance Agent",
"config": {
"methods": ["read", "write"],
"tags": ["files", "metadata", "governance"]
},
"expires_at": "2026-12-31T23:59:59Z"
}'Expected Response:
{
"id": "mcp_7x8y9z",
"name": "Box Governance Agent",
"config": {
"methods": ["read", "write"],
"tags": ["files", "metadata", "governance"]
},
"expires_at": "2026-12-31T23:59:59Z",
"url": "https://api.truto.one/mcp/a1b2c3d4e5f6..."
}Connecting the Box MCP Server to Claude
Once you have the secure MCP URL, connecting it to Claude requires no additional integration code. The client handles the JSON-RPC 2.0 handshake automatically.
Option A: Via the Claude UI (Web/Desktop)
If you are using Claude Desktop or an enterprise Claude workspace that supports custom connectors:
- Open Claude and navigate to Settings.
- Locate the Integrations or Connectors section.
- Click Add MCP Server (or Add Custom Connector).
- Paste the
urlyou generated from Truto. - Click Add. Claude will immediately initialize the connection and request the
tools/list.
Option B: Via Manual Configuration File
If you are running Claude Desktop locally and prefer file-based configuration, you can update your claude_desktop_config.json file. Since Truto provides a remote SSE (Server-Sent Events) endpoint, you use the standard @modelcontextprotocol/server-sse wrapper.
Open your configuration file (typically located at ~/Library/Application Support/Claude/claude_desktop_config.json on macOS) and add the server:
{
"mcpServers": {
"box_governance": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-sse",
"https://api.truto.one/mcp/a1b2c3d4e5f6..."
]
}
}
}Restart Claude Desktop. The model will instantly recognize the Box tools.
Box Hero Tools for Claude
The Truto MCP server maps Box's vast REST API into flattened, descriptive tools optimized for LLM context windows. Here are the highest-leverage hero tools for orchestrating Box governance and access.
list_all_box_search
This is the primary discovery tool for Claude. It allows the agent to search across files, folders, and web links using full-text queries, optionally filtering by item type or metadata attributes. It returns core metadata like ID, type, size, and modification dates.
"Search Box for any files containing the phrase 'Q3 Earnings Draft' and give me their file IDs and creation dates."
update_a_box_folder_shared_link_by_id
This tool allows Claude to programmatically manage external sharing. It creates, updates, or completely removes the shared link on a Box folder. The agent can configure access levels (e.g., open, company-only, collaborators-only) and permissions (read, download).
"Generate a company-only shared link for the '2026 Benefits' folder (ID 98765) that allows viewing and downloading, but restrict external access."
box_file_classifications_set
Security classification is vital for enterprise data loss prevention. This tool updates the classification label (e.g., "Internal", "Confidential", "Restricted") on a specific Box file. It requires the file ID and the classification key defined by your Box enterprise administrator.
"Update the classification for file ID 12345 to 'Confidential'. Ensure the classification template key matches our enterprise configuration."
create_a_box_metadata_cascade_policy
When a user wants to apply a compliance metadata template to an entire folder tree, this tool handles the heavy lifting. It assigns a metadata cascade policy to a folder, which asynchronously propagates the specified metadata template to all nested files and subfolders.
"Apply our standard 'Client Retention' metadata cascade policy to the 'Acme Corp Onboarding' folder (ID 55443)."
list_all_box_events
For auditing and forensic workflows, this tool retrieves enterprise and user events (up to a year of past activity). Claude can use this to figure out who viewed, downloaded, or modified a specific file, making it incredibly powerful for security investigations.
"Pull the event log for the last 7 days and check if anyone outside the finance group accessed the Q1 payroll spreadsheet."
list_all_box_shield_information_barrier_segments
This tool queries the segments defined within a Box Shield Information Barrier. It is crucial for compliance workflows, allowing the agent to understand which users or groups are logically separated to prevent conflicts of interest or data leakage.
"List all active segments under our 'M&A Advisory' Shield Information Barrier to see which departments are currently restricted."
To view the complete inventory of Box tools, including complex user provisioning, legal holds, and chunked file uploads, refer to the Truto Box Integration page.
Workflows in Action
Once connected, Claude can orchestrate multi-step Box workflows that would normally require manual clicks through the Box Admin Console or custom Python scripts.
Scenario 1: Automated Security Classification and Auditing
Persona: InfoSec Engineer or Data Governance Admin
An InfoSec admin needs to ensure that all documents related to an upcoming unannounced merger are properly locked down and classified.
"Search Box for any documents mentioning 'Project Titan'. For every file you find, check if it has a security classification. If it doesn't, apply the 'Highly Confidential' classification label. Then, check the event logs to see who has accessed these files in the last 48 hours."
Tool Execution Sequence:
list_all_box_search- Claude queries the enterprise for "Project Titan", retrieving a list of matching file IDs.get_single_box_file_classification_by_id- The agent iterates through the discovered file IDs to check current metadata status.box_file_classifications_set- For files missing the tag, Claude applies the targeted classification key.list_all_box_events- Claude fetches recent interaction logs for those specific file IDs to compile an access report.
Expected Outcome: The user receives a summary stating exactly which files were found, confirmation that the 'Highly Confidential' label was successfully applied, and a formatted list of users who have recently read or downloaded the documents.
sequenceDiagram
participant User as InfoSec Admin
participant Claude as Claude Desktop
participant Truto as Truto MCP Server
participant BoxAPI as Box API
User->>Claude: Search for "Project Titan", classify as Confidential, check access logs.
Claude->>Truto: Call list_all_box_search(query="Project Titan")
Truto->>BoxAPI: GET /2.0/search
BoxAPI-->>Truto: Returns File IDs
Truto-->>Claude: Returns File IDs
Claude->>Truto: Call box_file_classifications_set(file_id=123, classification="Confidential")
Truto->>BoxAPI: POST /2.0/files/123/metadata/enterprise/securityClassification-6VMVochwUWo
BoxAPI-->>Truto: 200 OK
Truto-->>Claude: Classification Applied
Claude->>Truto: Call list_all_box_events(stream_type="admin_logs")
Truto->>BoxAPI: GET /2.0/events
BoxAPI-->>Truto: Audit Logs
Truto-->>Claude: Returns Access Data
Claude-->>User: Summarizes actions and access history```
### Scenario 2: Offboarding and Access Revocation
**Persona:** IT Administrator
When a contractor's engagement ends unexpectedly, an IT admin needs to immediately revoke their access to shared folders without deleting the underlying files.
> "Find all active collaborations for the user email 'contractor@external.com'. Remove their access from all folders immediately, and generate a new secure shared link for the 'Project Deliverables' folder (ID 8877) so the internal team can still access it."
**Tool Execution Sequence:**
1. `list_all_box_search` / `list_all_box_pending_collaborations` - Claude locates the user's active collaboration IDs.
2. `delete_a_box_collaboration_by_id` - The agent executes destructive calls to remove the contractor from the targeted files/folders.
3. `update_a_box_folder_shared_link_by_id` - Claude modifies folder ID 8877 to generate a fresh, company-only shared link, invalidating any previous open links.
**Expected Outcome:**
The contractor's access is completely stripped from the Box environment, and the internal team is provided with a new, secure URL to continue their work seamlessly.
## Security, Access Control, and Rate Limits
Exposing enterprise file infrastructure to an LLM requires strict boundary setting. Truto's MCP architecture provides [multiple layers of control to ensure your agents operate securely](/mcp-server-security-zero-data-retention-2026-implementation-guide/).
* **Method Filtering:** When generating the MCP server, you can restrict the token to specific operations. Setting `methods: ["read"]` ensures the agent can only execute `get` and `list` tools (like searching files or fetching metadata). It physically cannot execute `create`, `update`, or `delete` tools, eliminating the risk of accidental data deletion.
* **Tag Filtering:** You can restrict the MCP server to only expose tools relevant to a specific domain. For example, applying a `tags: ["governance"]` filter ensures the agent only sees tools related to legal holds, retention policies, and shield barriers, hiding standard file upload/download tools.
* **Secondary Authentication (`require_api_token_auth`):** By default, possessing the MCP URL is enough to connect. For high-security environments, you can enable `require_api_token_auth: true`. This forces the MCP client to also pass a valid Truto API token via a Bearer header. If the URL leaks, it remains useless without the secondary credential.
* **Time-to-Live (`expires_at`):** You can generate ephemeral MCP servers for temporary workflows. By setting an ISO datetime on the `expires_at` field, Truto's edge storage will automatically purge the server credentials at the exact moment of expiration, instantly cutting off the LLM's access.
**A Critical Note on Rate Limits:** Box enforces strict API rate limits, especially on search and administrative endpoints. **Truto does not retry, throttle, or apply backoff on rate limit errors.** When Box returns an HTTP 429 Too Many Requests, Truto passes that error directly to the MCP client. Truto standardizes the upstream rate limit data into IETF-compliant headers (`ratelimit-limit`, `ratelimit-remaining`, `ratelimit-reset`). The caller (your agent framework or MCP client) is entirely responsible for reading these headers and implementing its own retry or backoff logic.
## Wrapping Up
Connecting Claude to Box via MCP unlocks entirely new ways to manage enterprise content. Instead of writing custom scripts for every metadata cascade, compliance audit, or folder permission change, IT and InfoSec teams can execute these tasks conversationally. By leveraging Truto's managed MCP architecture, you bypass the friction of OAuth token refreshes, dynamic tool generation, and schema mapping, allowing you to focus on building intelligent, secure workflows.FAQ
- How do I create a Box MCP server using Truto?
- You can create it via the Truto UI under the 'MCP Servers' tab for your connected Box account, or via the API by making a POST request to /integrated-account/{id}/mcp with your desired tool filters and configuration.
- How does Truto handle Box API rate limits?
- Truto does not retry or backoff on rate limits. It passes HTTP 429 errors directly to the caller, normalizing the rate limit information into standard IETF headers (ratelimit-limit, ratelimit-remaining, ratelimit-reset). The client is responsible for retries.
- Can I restrict Claude to read-only access in Box?
- Yes. When configuring the MCP server, you can set the methods filter to 'read'. This ensures Claude only has access to get and list tools, preventing any accidental file modifications or deletions.
- How do I connect the Truto MCP server to Claude Desktop?
- You can add the generated MCP URL via the Claude Desktop UI under Settings -> Integrations, or manually add it to the claude_desktop_config.json file using the @modelcontextprotocol/server-sse package.