You will need: - BOXUSERID and one of the following: - BOXJWTBASE64 (recommended) - BOXJWTCONFIGPATH Using a JWT Config allows persistent connection to Box. You will need a paid Box enterprise account, or you can sign up for a free developer account (make sure you are signed out of Box before clicking that link). Visit the Box Developer Console and create a new application. Make sure the authoriza
Add this skill
npx mdskills install hmk/box-mcp-serverWell-documented Box integration with clear auth setup and multiple token options
1# box-mcp-server2345## Usage67You will need:89- `BOX_USER_ID`1011and one of the following:1213- `BOX_JWT_BASE64` (recommended)14- `BOX_JWT_CONFIG_PATH`15- `BOX_JWT`1617## Auth1819### JSON Web Token (JWT) Authorization (recommended)2021#### How to get a JWT2223Using a JWT Config allows persistent connection to Box.242526You will need a paid Box enterprise account, or you can sign up for a [free developer account](https://account.box.com/signup/n/developer) (make sure you are signed out of Box before clicking that link).2728Visit the [Box Developer Console](https://app.box.com/developers/console) and create a new application. Make sure the authorization type is JSON Web Token.2930Go to `Configuration > Add and Manage Public Keys` and Generate a Public/Private Keypair.31If you have not already, Box prompt you to set up 2 factor authentication and Authorize the application as an administrator in your box account. You will need to:32331. give the application `App + Enterprise Access`, and342. enable the `make API calls using the as-user header` option3536via the Box Application's Configuration page. **Make sure to reauthorize the application if you are modifying these settings**.3738#### Base64 encoding JWT3940To encode your JWT in Base64, you can use the following command in your terminal:4142```sh43cat /path/to/your/box-jwt-config.json | base6444```4546Replace `/path/to/your/box-jwt-config.json` with the actual path to your JWT configuration file. This will output the Base64 encoded JWT which you can then use in your environment variables.4748#### Claude Desktop Configuration4950```json51{52 "mcpServers": {53 "box": {54 "command": "npx",55 "args": ["box-mcp-server"],56 "env": {57 "BOX_JWT_BASE64": "YOUR_BASE64_ENCODED_JWT",58 "BOX_USER_ID": "123456"59 }60 }61 }62}63```6465### Developer Token Authorization (easiest)6667Using a developer token is the easiest way to integrate with Box, but will only last 60 minutes.6869To get started, set the `BOX_DEV_TOKEN` to a [Box Developer Token](https://developer.box.com/guides/authentication/tokens/developer-tokens/).7071Begin by visiting the [Box Developer Console](https://app.box.com/developers/console) and create a new application. The authorization type does not currently matter, as all support Box Developer Token.7273Once your application is created, navigate to its configuration setings and click `Generate Developer Token`.7475#### Claude Desktop Configuration7677```json78{79 "mcpServers": {80 "box": {81 "command": "npx",82 "args": ["box-mcp-server"],83 "env": {84 "BOX_DEV_TOKEN": "YOUR_DEV_TOKEN_GOES_HERE"85 }86 }87 }88}89```9091## Capabilities92931. Searching files942. Reading files9596- [x] PDF97- [x] Word98- [ ] Others99100## Development101102### Prerequisites103104Before you begin, ensure you have the following installed:105106- Node.js (recommended v22 or higher)107- npm108- git109- dotenv110111### Setting up Development Environment112113To set up the development environment, follow these steps:1141151. Fork the repository116117 - Click the "Fork" button in the top-right corner of this repository118 - This creates your own copy of the repository under your Github acocunt1191201. Clone Your Fork:121122 ```sh123 git clone https://github.com/YOUR_USERNAME/box-mcp-server.git124 cd box-mcp-server125 ```1261271. Add Upstream Remote128 ```sh129 git remote add upstream https://github.com/hmk/box-mcp-server.git130 ```1311321. Copy the dotenv file133 ```sh134 cp .env.template .env135 ```1361371. Install dependencies:138139 ```sh140 npm install141 ```1421431. Run watch to keep index.js updated:144145 ```sh146 npm run watch147 ```1481491. Start the model context protocol development server:150151 ```sh152 dotenv npx @modelcontextprotocol/inspector node PATH_TO_YOUR_CLONED_REPO/dist/index.js153 ```1541551. 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.156
Full transparency — inspect the skill content before installing.