This repository contains two examples of how to process invoices stored in a Box account. The first script uses the Box API and the second uses the Box MCP Server.
-
Install
uvin your environment. -
Create an
.envfile in the project's root directory with the following environment variables:
BOX_FOLDER_ID: The id of the folder containing the invoices in Box.BOX_DEVELOPER_TOKEN: The developer token to authenticate the script. This token will be used to access the Box API.BOX_CLIENT_ID: Client ID to authenticate the MCP Server.BOX_CLIENT_SECRET: Client Secret to authenticate the MCP Server.GEMINI_API_KEY: Gemini API Key.
- Follow these instructions to set up Box's MCP Server.
Use the following commands to run the scripts:
uv run python api-sample.py
uv run python mcp-sample.py