This page explains how to register Claude Code as an OAuth client in Pricefx and configure an authenticated MCP connection in Claude Code.
Prerequisites
OAuth Client ID Registration
To use OAuth, each client must be registered with a specific client_id. This configuration is defined through the oauthConfiguration Advanced Configuration Option. Multiple clients can be registered within this setting.
-
Login to your Pricefx partition.
-
Go to Administration > Configuration > System Configuration > Advanced Configuration Options.
-
Click Add.
-
In the Add Option menu:
-
Enter
oauthConfigurationinto Name. -
Enter the following JSON code into Value.
-
Replace the
<client_id>with a name of your choosing, usuallyclaude-code. -
Replace the
<port_number>with a port of your choosing, usually3334.JSON{ "knownClients": { "<client_id>": { "redirect_uri": "http://localhost:<port_number>/callback" } } }
-
-
-
Click Add.
|
Property |
Example Value |
Required |
Description |
|---|---|---|---|
|
client_id |
|
Yes |
Client ID example. |
|
redirect_uri |
|
Yes |
Must be configured, as it will be sent by the client. See below about |
|
port_number (configurable) |
|
Yes |
The port on your local machine which Claude will use for OAuth handshake. This can be any valid port of your choosing, Claude documentations most often use port |
MCP Connection
-
Open your terminal.
-
Type the following command to add the Pricefx MCP connection.
claude mcp add --scope user --transport http --client-id <client_id> --callback-port <port_number> <some_label> https://mcp.pricefx.com/mcp/<cluster_host>/<partition>
|
Variable |
Description |
|---|---|
|
|
Replace the |
|
|
Replace the |
|
|
Replace |
|
|
Replace |
|
|
Replace the |
MCP JSON
If you would like to directly add the MCP server via JSON configuration instead of the terminal command above, you can use the below example reference. Make sure to replace the same <variables> as above.
"mcpServers": {
"<some_label>": {
"type": "http",
"url": "https://mcp.pricefx.com/<cluster_host>/<partition>",
"oauth": {
"clientId": "<client_id>",
"callbackPort": <port_number>
}
}
}