Back to MCP Catalog

Box API Integration MCP Server

Cloud PlatformsPython
Interact with Box files, folders, and AI capabilities through a comprehensive API integration
Available Tools

box_who_am_i

Get your current user information and check connection status

box_authorize_app_tool

Start the Box application authorization process

box_search_tool

Search for files in Box with options for query, file extensions, search locations, and folder scope

queryfile_extensionswhere_to_look_for_queryancestor_folder_ids

box_read_tool

Read the text content of a Box file

file_id

box_ask_ai_tool

Ask Box AI about a file

file_idprompt

box_ask_ai_tool_multi_file

Query Box AI using multiple files

file_idsprompt

box_hubs_ask_ai_tool

Ask Box AI about a hub

hubs_idprompt

box_search_folder_by_name

Locate a folder by name

folder_name

box_ai_extract_data

Extract data from a file using AI

file_idfields

box_list_folder_content_by_folder_id

List folder contents

folder_idis_recursive

box_manage_folder_tool

Create, update, or delete folders in Box

actionfolder_idnameparent_iddescriptionrecursive

box_upload_file_from_path_tool

Upload a file to Box from a local filesystem path

file_pathfolder_idnew_file_name

box_upload_file_from_content_tool

Upload content as a file to Box

contentfile_namefolder_idis_base64

box_download_file_tool

Download a file from Box

file_idsave_filesave_path

The Box API Integration provides a powerful interface for working with Box content and leveraging Box's AI capabilities. This MCP server enables seamless interaction with Box files and folders, allowing for searching, reading, creating, updating, and deleting content. It also provides access to Box's AI features for extracting data, asking questions about files, and working with Box Hubs. With this integration, you can programmatically manage your Box content, extract text from documents, leverage AI to analyze file contents, and organize your data efficiently. The server handles authentication with Box and provides a comprehensive set of tools that make it easy to incorporate Box functionality into your AI workflows.

Overview

The Box API Integration MCP server provides a comprehensive set of tools for interacting with Box content and AI capabilities. This server allows you to seamlessly integrate Box functionality into your AI workflows, enabling you to search for files, read content, extract data using AI, and manage folders and files.

Installation

To install and use the Box API Integration MCP server, follow these steps:

  1. Clone the repository:

    git clone https://github.com/box-community/mcp-server-box.git
    cd mcp-server-box
    
  2. Set up a Python environment (Python 3.9+ recommended):

    python -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate
    
  3. Install dependencies:

    pip install -e .
    
  4. Configure your Box application:

    • Create a Box application in the Box Developer Console
    • Set up OAuth 2.0 authentication
    • Note your client ID and client secret
  5. Set up environment variables for authentication:

    BOX_CLIENT_ID=your_client_id
    BOX_CLIENT_SECRET=your_client_secret
    
  6. Start the MCP server:

    python -m src.main
    
  7. Add the server configuration to your AI client (Claude, Cursor, etc.):

"mcpServers": {
  "box-api": {
    "command": "python",
    "args": [
      "-m",
      "src.main"
    ],
    "cwd": "/path/to/mcp-server-box"
  }
}

Authentication

When you first use the Box API Integration, you'll need to authenticate with Box:

  1. Use the box_authorize_app_tool to start the authorization process
  2. Follow the provided URL to authorize the application
  3. Complete the OAuth flow to grant access to your Box account
  4. Use box_who_am_i to verify your connection status

Usage Examples

Searching for Files

To search for files in Box:

Use the box_search_tool to find PDF files containing "quarterly report"

Reading File Content

To read the content of a file:

Use box_read_tool with the file ID to extract the text content

Using Box AI

To ask questions about a file using Box AI:

Use box_ask_ai_tool with the file ID and a question like "Summarize the main points of this document"

Managing Folders

To create a new folder:

Use box_manage_folder_tool with action "create", name "Project Documents", and parent_id "0" (for root folder)

Uploading Files

To upload a file to Box:

Use box_upload_file_from_path_tool with the local file path and destination folder ID

Troubleshooting

  • If you encounter authentication issues, try re-authorizing using box_authorize_app_tool
  • Ensure your Box application has the necessary scopes enabled for the operations you're trying to perform
  • Check that your environment variables are correctly set with your Box application credentials
  • For file operations issues, verify that you have the correct permissions on the files and folders you're trying to access

Related MCPs

AWS CLI
Cloud PlatformsPython

Execute AWS CLI commands securely through AI assistants

Kubernetes
Cloud PlatformsGo

Connect to and manage Kubernetes clusters through natural language

Cloudflare
Cloud PlatformsTypeScript

A Model Context Protocol server for Cloudflare services

About Model Context Protocol

Model Context Protocol (MCP) allows AI models to access external tools and services, extending their capabilities beyond their training data.

Generate Cursor Documentation

Save time on coding by generating custom documentation and prompts for Cursor IDE.