> This page is for Docs.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://zuora.ferndocs.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://zuora.ferndocs.com/_mcp/server.

# Install Zuora MCP server in OpenAI Codex CLI for desktop clients

> Learn how to install and configure the Zuora MCP server in the OpenAI Codex CLI so you can connect to your Zuora tenant using MCP.

Learn how to install and configure the Zuora MCP server in the OpenAI Codex CLI so you can connect to your Zuora tenant using MCP.

Review the prerequisites and ensure that you have created an OAuth token and obtained the required credentials. For more detailed information, see [Create OAuth Credentials for local MCP client](/docs/platform/zuora-ai/zuora-remote-mcp-server/configure-zuora-local-mcp-server/create-oauth-credentials-for-local-mcp-client).

The OpenAI Codex CLI supports MCP server integration through configuration settings. After installation, you can configure the Zuora MCP server to enable interaction with your Zuora tenant.

To install the Codex CLI, run the following command:

```
npm i -g @openai/codex
        
```

Launch Codex at least once and complete any initial authentication. Then close the application before continuing.

To update the Codex configuration file, open the `~/.codex/config.toml` file and add the following configuration:

```json
[mcp_servers.zuora-mcp]
command = "npx"
args = ["-y", "zuora-mcp"]

[mcp_servers.zuora-mcp.env]
ZUORA_BASE_URL = "https://rest.apisandbox.zuora.com"
ZUORA_CLIENT_ID = "your-client-id"
ZUORA_CLIENT_SECRET = "your-client-secret"
        
```

Replace the placeholders with your values:

* ZUORA_CLIENT_ID: Your OAuth client ID.
* ZUORA_CLIENT_SECRET: Your OAuth client secret.

Save the file and restart the Codex CLI.

To verify the MCP server configuration, run `/mcp` and confirm that the Zuora MCP server is listed.

The Zuora MCP server is configured in Codex CLI and is ready to use.