This MCP server currently supports only Developer Token authentication.
To get started, set the BOX_DEV_TOKEN
to a Box Developer Token.
Begin by visiting the Box Developer Console and create a new application. The authorization type does not currently matter, as all support Box Developer Token.
Once your application is created, navigate to its configuration setings and click Generate Developer Token
.
{
"mcpServers": {
"box": {
"command": "npx",
"args": [
"box-mcp-server"
],
"env": {
"BOX_DEV_TOKEN": "YOUR_DEV_TOKEN_GOES_HERE"
}
}
}
}
- Searching files
- Reading files
- Word
- Others
Before you begin, ensure you have the following installed:
- Node.js (v22 or higher)
- npm
- git
To set up the development environment, follow these steps:
-
Fork the repository
- Click the "Fork" button in the top-right corner of this repository
- This creates your own copy of the repository under your Github acocunt
-
Clone Your Fork:
git clone https://github.com/YOUR_USERNAME/box-mcp-server.git cd box-mcp-server
-
Add Upstream Remote
git remote add upstream https://github.com/hmk/box-mcp-server.git
-
Install dependencies:
npm install
-
Set the
BOX_DEV_TOKEN
environment variable:export BOX_DEV_TOKEN=your_developer_token
-
Run watch to keep index.js updated:
npm run watch
-
Start the model context protocol development server:
npx @modelcontextprotocol/inspector node PATH_TO_YOUR_CLONED_REPO/dist/index.js
-
If the development server did not load the environment variable correctly, set the
BOX_DEV_TOKEN
on the left-hand side of the mcp inspector.