SuperAPIAI Directory

box-mcp-server

github.com · AI developer platforms

Box integration for listing, reading and searching files.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)

About this tool

Purpose

box-mcp-server is a Model Context Protocol (MCP) server designed to allow users to search, read, and access files in Box through the MCP protocol. It acts as a bridge between Box and MCP-compatible clients.

Main Capabilities

  • Search for files in Box
  • Read files in Box
  • Access files in Box

Usage

Authentication Methods

Supports two authorization methods:

  1. JSON Web Token (JWT) authorization (recommended): Allows a persistent connection with Box. Requires a paid Box enterprise account, or register a free developer account. You need to create an app in the Box Developer Console, select JSON Web Token as the authorization type, and then generate a public/private key pair. You also need to grant the app App + Enterprise Access in the Box app configuration page and enable the option to make API calls using the as-user header. After modifying these settings, the app must be reauthorized.
    • The JWT configuration file can be encoded via base64. Terminal command example: replace /path/to/your/box-jwt-config.json with the actual JWT configuration file path; the output is the base64-encoded JWT for use in an environment variable.
    • The environment variable can be either BOX_JWT_BASE64 (recommended) or BOX_JWT_CONFIG_PATH.
  2. Developer token authorization (simplest): Using a developer token is the simplest way to integrate with Box, but the token only lasts 60 minutes. Set the environment variable BOX_DEV_TOKEN to the Box developer token. Create an app in the Box Developer Console (authorization type is not restricted), then click Generate Developer Token in the app configuration to generate a token.

Development Environment Setup

Prerequisites: Install Node.js (v22 or later recommended). Steps:

  1. Fork the repository: Click the "Fork" button in the upper right corner of the repository page to create a copy under your own GitHub account.
  2. Clone the fork:
    git clone https://github.com/YOUR_USERNAME/box-mcp-server.git
    cd box-mcp-server
    
  3. Add the upstream remote:
    git remote add upstream https://github.com/hmk/box-mcp-server.git
    
  4. Copy the dotenv file:
    cp .env.template .env
    
  5. Install dependencies:
    npm install
    
  6. Run watch to keep index.js updated:
    npm run watch
    
  7. Start the Model Context Protocol development server:
    dotenv npx @modelcontextprotocol/inspector node PATH_TO_YOUR_CLONED_REPO/dist/index.js
    
    If the development server fails to load the environment variables correctly, you can set BOX_DEV_TOKEN on the left side of MCP Inspector.

Applicable Scenarios

For users who need to access, search, and read Box files in MCP-compatible clients or tools, such as developers, data workers, etc.

Limitations

  • When using a developer token, the connection only lasts 60 minutes.
  • JWT authorization requires a paid Box enterprise account, or a free developer account, and requires completing a series of configuration steps.
  • Other feature details (such as the specific supported file types, search syntax, etc.) are not provided yet.
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools