Requirements
- Python 3.13 or higher
- Box API credentials (Client ID, Client Secret, etc.)
Installation Steps
-
Clone the Repository:
git clone https://github.com/box-community/mcp-server-box.git
cd mcp-server-box
-
Install uv if not installed yet:
-
MacOS/Linux:
curl -LsSf https://astral.sh/uv/install.sh | sh
-
Windows:
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
-
Create and Set Up the Project:
-
MacOS/Linux:
# Create virtual environment and activate it
uv venv
source .venv/bin/activate
# Lock the dependencies
uv lock
-
Windows:
# Create virtual environment and activate it
uv venv
.venvScriptsactivate
# Lock the dependencies
uv lock
-
Create a .env File:
In the root directory, create a .env file and add your Box API credentials:
BOX_CLIENT_ID=your_client_id
BOX_CLIENT_SECRET=your_client_secret
Usage
Running the MCP Server
Clone the Repository:
git clone https://github.com/box-community/mcp-server-box.git
cd mcp-server-box
Install uv if not installed yet:
-
MacOS/Linux:
curl -LsSf https://astral.sh/uv/install.sh | sh -
Windows:
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
Create and Set Up the Project:
-
MacOS/Linux:
# Create virtual environment and activate it uv venv source .venv/bin/activate # Lock the dependencies uv lock -
Windows:
# Create virtual environment and activate it uv venv .venvScriptsactivate # Lock the dependencies uv lock
Create a .env File:
In the root directory, create a .env file and add your Box API credentials:
BOX_CLIENT_ID=your_client_id
BOX_CLIENT_SECRET=your_client_secret
To start the MCP server, run the following command:
uv --directory /path-to-the-project/mcp-server-box run src/mcp_server_box.py
Using Claude as the Client
Edit your claude_desktop_config.json:
code ~/Library/Application Support/Claude/claude_desktop_config.json
Add the following configuration:
{
"mcpServers": {
"mcp-server-box": {
"command": "uv",
"args": [
"--directory",
"/path-to-your-project/mcp-server-box",
"run",
"src/mcp_server_box.py"
]
}
}
}
If Claude is running, restart it.