by box-community
Interact with Box services to search files, read content, manage folders, run AI queries, extract structured data, handle metadata, and generate documents via a Python‑based MCP server.
Box Mcp Server provides a collection of tools that expose Box API capabilities through the Model Context Protocol (MCP). It enables programmatic file search, content extraction, AI‑driven questioning, metadata manipulation, and document generation, all from a unified Python server.
git clone https://github.com/box-community/mcp-server-box.git
cd mcp-server-box
curl -LsSf https://astral.sh/uv/install.sh | shpowershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"uv venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
uv lock
.env file (OAuth or CCG format as described in the README).uv --directory /path/to/mcp-server-box run src/mcp_server_box.py
box_who_am_i, box_authorize_app_tool).box_read_tool).Q: Which Python version is required? A: Python 3.13 or higher.
Q: Do I need a Box developer account? A: Yes. You must obtain a client ID and secret (OAuth) or set up CCG credentials.
Q: Can I run the server as a web service?
A: Yes. Use the --transport http or --transport fastapi options (details in the source code).
Q: How do I handle large files when downloading?
A: Use box_download_file_tool with save_file=true and provide a save_path to write directly to disk.
Q: Is there support for pagination in search results? A: The underlying Box SDK provides pagination; the tool returns a newline‑separated list, and you can adjust parameters in the request.
Q: What if I need to set environment variables for credentials?
A: Place them in a .env file at the project root; the server reads them automatically.
git clone https://github.com/box-community/mcp-server-box.git
cd mcp-server-box
uv installation for virtual environment and dependency management:brew install uv
winget install --id=astral-sh.uv -e
curl -LsSf https://astral.sh/uv/install.sh | sh
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
uv sync
Set the following environment variables for Box authentication in a .env file or your system environment.
For comprehensive authentication configuration options, see the Authentication Guide.
BOX_CLIENT_ID = YOUR_CLIENT_ID
BOX_CLIENT_SECRET = YOUR_CLIENT_SECRET
BOX_REDIRECT_URL = http://localhost:8000/callback
# MCP Server Authentication (for HTTP transports)
BOX_MCP_SERVER_AUTH_TOKEN = YOUR_BOX_MCP_SERVER_AUTH_TOKEN
OAUTH_PROTECTED_RESOURCES_CONFIG_FILE = .oauth-protected-resource.json
Note:
- The
BOX_MCP_SERVER_AUTH_TOKENis used to authenticate the MCP client to the MCP server when using--mcp-auth-type=token(independent of Box authentication)
uv run src/mcp_server_box.py
Below is a summary of the available tools:
| Tools available | Description |
|---|---|
| box_tools_ai | AI-powered file and hub queries |
| box_tools_collaboration | Manage file/folder collaborations |
| box_tools_docgen | Document generation and template management |
| box_tools_files | File operations (read, upload, download) |
| box_tools_folders | Folder operations (list, create, delete, update) |
| box_tools_generic | Generic Box API utilities |
| box_tools_groups | Group management and queries |
| box_tools_metadata | Metadata template and instance management |
| box_tools_search | Search files and folders |
| box_tools_shared_links | Shared link management for files/folders/web-links |
| box_tools_tasks | Task and task assignment management |
| box_tools_users | User management and queries |
| box_tools_web_link | Web link creation and management |
To run the MCP server with specific configurations, you can use the following command line parameters:
uv run src/mcp_server_box.py --help
usage: mcp_server_box.py [-h] [--transport {stdio,sse,http}] [--host HOST] [--port PORT] [--mcp-auth-type {oauth,token,none}] [--box-auth-type {oauth,ccg,jwt,mcp_client}]
Box Community MCP Server
options:
-h, --help show this help message and exit
--transport {stdio,sse,http}
Transport type (default: stdio)
--host HOST Host for SSE/HTTP transport (default: localhost)
--port PORT Port for SSE/HTTP transport (default: 8005)
--mcp-auth-type {oauth,token,none}
Authentication type for MCP server (default: token)
--box-auth-type {oauth,ccg,jwt,mcp_client}
Authentication type for Box API (default: oauth)
For detailed information about authentication types, configurations, and use cases, see the Authentication Guide.
Edit your claude_desktop_config.json:
code ~/Library/Application\ Support/Claude/claude_desktop_config.json
Add the configuration:
{
"mcpServers": {
"mcp-server-box": {
"command": "uv",
"args": [
"--directory",
"/path/to/mcp-server-box",
"run",
"src/mcp_server_box.py"
]
}
}
}
Restart Claude if it is running.
Assuming your MCP server is running on https://mcp.myserver.com/mcp
Add custom connectorhttps://mcp.myserver.com/mcpclient id and client secretPlease log in to share your review and rating for this MCP.
Explore related MCPs that share similar capabilities and solve comparable challenges
by modelcontextprotocol
A Model Context Protocol server for Git repository interaction and automation.
by zed-industries
A high‑performance, multiplayer code editor designed for speed and collaboration.
by modelcontextprotocol
Model Context Protocol Servers
by modelcontextprotocol
A Model Context Protocol server that provides time and timezone conversion capabilities.
by cline
An autonomous coding assistant that can create and edit files, execute terminal commands, and interact with a browser directly from your IDE, operating step‑by‑step with explicit user permission.
by upstash
Provides up-to-date, version‑specific library documentation and code examples directly inside LLM prompts, eliminating outdated information and hallucinated APIs.
by daytonaio
Provides a secure, elastic infrastructure that creates isolated sandboxes for running AI‑generated code with sub‑90 ms startup, unlimited persistence, and OCI/Docker compatibility.
by continuedev
Enables faster shipping of code by integrating continuous AI agents across IDEs, terminals, and CI pipelines, offering chat, edit, autocomplete, and customizable agent workflows.
by github
Connects AI tools directly to GitHub, enabling natural‑language interactions for repository browsing, issue and pull‑request management, CI/CD monitoring, code‑security analysis, and team collaboration.