> ## Documentation Index
> Fetch the complete documentation index at: https://docs.spojit.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect the Box MCP server

> Connect Box's remote MCP server to Spojit: enable it in the Box Admin Console, add integration credentials with Spojit's redirect URI, and sign in with OAuth.

Box hosts a remote MCP server that gives AI agents governed access to files and folders, Box AI, and document generation, within the permissions already set in Box. Connect it to Spojit to file documents a workflow produces, ask Box AI about a contract, or generate documents from templates.

<Note>
  Spojit connects to this server through a [custom MCP server](/connectors/remote-mcp-servers/custom) connection, so you add it with **Add custom server** rather than from the connector catalog. Box maintains it and decides which tools it offers; see [Box's remote MCP server guide](https://developer.box.com/guides/box-mcp/remote/) for the current list.
</Note>

## Before you start

A Box admin enables the server and creates credentials for Spojit.

<Steps>
  <Step title="Copy Spojit's redirect URI">
    In Spojit, go to **Connections**, click **Add custom server**, and choose **OAuth 2.0**. Copy the **Redirect URI** shown in the form (for example `https://miraxa.spojit.com/api/connectors/oauth/callback`).
  </Step>

  <Step title="Enable the Box MCP server">
    In the Box **Admin Console**, open **Integrations**, search for the **Box MCP server**, and set it to enabled.
  </Step>

  <Step title="Add integration credentials">
    Hover the Box MCP server and click **Configure**. Under **Additional Configuration**, click **+ Add Integration Credentials**, enter a name such as `Spojit`, and save. Expand the entry, enter Spojit's redirect URI, choose the scopes, and copy the **Client ID** and **Client Secret**.
  </Step>
</Steps>

Box documents the scopes `root_readwrite`, `ai.readwrite`, and `docgen.readwrite` (the last needs Enterprise Advanced). Users still only reach content they can already access in Box.

## Server URL

```
https://mcp.box.com
```

## Connect in Spojit

<Steps>
  <Step title="Add a custom server">
    In **Add custom server**, enter a **Name** such as `Box` and paste the **Server URL**.
  </Step>

  <Step title="Choose Auto authentication">
    Choose **Auto** and click **Save & connect**. Because Box needs your own credentials, the **OAuth 2.0** form opens with the authorization and token URLs already filled in.
  </Step>

  <Step title="Enter your credentials">
    Paste the **Client ID** and **Client Secret**, set **Scopes** to the scopes you chose in Box (for example `root_readwrite ai.readwrite`), and click **Save & connect**.
  </Step>

  <Step title="Grant access in Box">
    Box opens its authorization page. Sign in and grant access. Spojit marks the connection **Connected** and refreshes the token automatically.
  </Step>
</Steps>

If the form does not prefill, choose **OAuth 2.0** and enter **Authorization URL** `https://account.box.com/api/oauth2/authorize` and **Token URL** `https://api.box.com/oauth2/token`.

## Use it in a workflow

Add a **Connector** node, pick your Box server under **Custom Servers**, and choose **Agent Mode** or **Direct Mode**. See [Use a custom server in a workflow](/connectors/remote-mcp-servers/custom#use-a-custom-server-in-a-workflow).

## Troubleshooting

<AccordionGroup>
  <Accordion title="Document generation tools fail">
    `docgen.readwrite` needs Box Enterprise Advanced. Remove it from the scopes if your plan does not include it.
  </Accordion>

  <Accordion title="Box reports a redirect URI mismatch">
    The redirect URI on the integration credentials must match Spojit's **Redirect URI** exactly.
  </Accordion>
</AccordionGroup>

## Learn more

* [Box remote MCP server](https://developer.box.com/guides/box-mcp/remote/)
* [Set up the MCP server](https://developer.box.com/guides/box-mcp/setup)
* [Managing Box MCP Servers](https://support.box.com/hc/en-us/articles/43847256139923-Managing-Box-MCP-Servers)

<Snippet file="start-free.mdx" />
