Set up Coupa in Metorial for Claude, ChatGPT and Cursor
Share Coupa with your team in Claude, ChatGPT and Cursor through Metorial: OAuth 2.0 client credentials or API key sign-in, 26 tools (13 read-only).
To give your team Coupa in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Coupa integration in a Metorial portal, and each person connects with OAuth 2.0 client credentials. Agents can query procurement records, read exact documents, create supported drafts and reference records, update supported fields, and process pending approvals. The integration has 26 tools, 13 read-only and 13 write, plus 6 triggers.
What you'll learn
- How an admin shares Coupa in a portal and how each person connects
- What Coupa asks for when you connect, and where to find it
- How to keep the 13 read-only tools and reject the other 13
Before you start
- A portal with at least one access group
- OAuth 2.0 client credentials from Coupa for each person, or one set for a shared connection
- For the CLI steps: the Metorial CLI, signed in to your portal
Sign-in methods
| Method | Type | What a person provides |
|---|---|---|
| OAuth 2.0 Client Credentials (default) | Custom credentials | instanceUrl, clientId, clientSecret and scopes |
| API Key (Deprecated) | API token | instanceUrl and apiKey |
The portal and metorial setup use OAuth 2.0 Client Credentials unless someone picks another method.
OAuth 2.0 Client Credentials
To connect, a person enters these values:
instanceUrl: Your Coupa instance URL, e.g. https://mycompany.coupahost.comclientId: OAuth2 Client Identifier from CoupaclientSecret: OAuth2 Client Secret from Coupascopes: Space-separated list of scopes, e.g. "core.accounting.read core.purchase_order.read"
API Key (Deprecated)
To connect, a person enters these values:
instanceUrl: Your Coupa instance URL, e.g. https://mycompany.coupahost.comapiKey: 40-character Coupa API key
Setup settings
Whichever method you pick, setup also asks for:
instanceUrl: Your Coupa instance URL, e.g. https://mycompany.coupahost.com or https://mycompany.coupacloud.com
Admin: share Coupa in a portal
In the dashboard
Open Shared Resources
Open Workforce, choose the portal, and select Shared Resources under Access.
Share a new integration
Select Share a Resource, then New Integration, and choose Coupa. Under Auth Method, keep OAuth 2.0 Client Credentials or pick another. For how members connect, choose Each person connects so everyone enters their own OAuth 2.0 client credentials, or Shared connection to enter the OAuth 2.0 client credentials once for everyone.
Limit the tools
Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Coupa.
Choose who gets it
Add the access groups that should see Coupa. When a person asks for access from the portal, the request appears under Access Requests.
With the CLI
The CLI cannot create the per-user Coupa integration. Once it exists, check which groups have it:
Employee: connect Coupa
In the portal
Open Coupa in the catalog
Sign in to your portal and open Coupa. The status reads Available.
Authenticate
Under Quick setup, select Authenticate. In the setup window, enter your OAuth 2.0 client credentials (instanceUrl, clientId, clientSecret and scopes).
Confirm
The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.
With the CLI
catalog search prints the catalog item ID. metorial setup uses OAuth 2.0 Client Credentials. To connect with API Key (Deprecated) instead, find its ID with metorial catalog get <catalog-item-id> and add --auth-method <auth-method-id>.
Add it to your AI client
metorial install adds your Coupa connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.
For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.
Make it read-only
Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 13 read-only tools, such as get_invoice and get_resource, and lose the 13 write tools, such as create_user or update_user.
Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.
Check it worked
metorial tools lists the 26 tools, minus any you rejected. search_users takes no input. It searches and list users in Coupa.
To see every input a tool takes, run metorial schema <integration-id> <tool-key>.
Tools
Read-only tools (13)
search_accounts: Search and list accounts in Coupa.get_purchase_order: Retrieve a single purchase order by its ID, including all header fields, order lines, supplier info, and accounting details. NeedspurchaseOrderId.search_suppliers: Search and list suppliers in Coupa.search_purchase_orders: Search and list purchase orders in Coupa.search_receipts: Search and list receipts in Coupa.search_expense_reports: Search and list expense reports in Coupa.search_requisitions: Search and list purchase requisitions in Coupa.search_users: Search and list users in Coupa.search_contracts: Search and list contracts in Coupa.get_invoice: Retrieve a single invoice by its ID, including header fields, invoice lines, supplier info, and payment details. NeedsinvoiceId.search_approvals: Search and list approvals in Coupa.search_invoices: Search and list invoices in Coupa.get_resource: Read one exact supplier, requisition, expense report, contract, approval, user, account or receiving receipt.
Write tools (13)
process_approval: Approve or reject a pending approval in Coupa. NeedsapprovalIdandaction.create_receipt: Create a receipt to record goods received against a purchase order line. NeedspurchaseOrderLineIdandquantity.create_account: Create a new account in Coupa to represent an item in your chart of accounts. Needscodeandname.create_invoice: Create a new invoice in Coupa. NeedsinvoiceNumber,invoiceDate,supplierandinvoiceLines.create_contract: Create a new contract in Coupa with header details, supplier association, and date range. Needsname.create_user: Create a user in Coupa with login name, email, profile and role assignments. Needslogin,email,firstNameandlastName.update_user: Update an existing user in Coupa. NeedsuserId.create_purchase_order: Create an external purchase order in Coupa with header information and order lines. NeedssupplierandorderLines.create_supplier: Create a new supplier record in Coupa with name, address, contact information, and payment details. Needsname.create_expense_report: Create a new expense report in Coupa with expense line items. NeedstitleandexpenseLines.update_supplier: Update an existing supplier record in Coupa. NeedssupplierId.update_purchase_order: Update an existing purchase order in Coupa. NeedspurchaseOrderId.create_requisition: Create a new purchase requisition in Coupa with line items. NeedsrequisitionLines.
Triggers
Coupa has 6 triggers, which fire on events in Coupa:
purchase_order_changes: Triggers when purchase orders are created or updated in Coupa.invoice_changes: Triggers when invoices are created, approved, disputed, or otherwise updated in Coupa.inbound_webhookexpense_report_changes: Triggers when expense reports are created, submitted, approved, or otherwise updated in Coupa.requisition_changes: Triggers when purchase requisitions are created, submitted, approved, or otherwise updated in Coupa.supplier_changes: Triggers when supplier records are created or updated in Coupa.
Next steps
- Claude Code, Cursor, Codex and ChatGPT: connect each client to your portal and use Coupa there
- Tool permissions: tool filters and what employees see
- Coupa on metorial.com: the integration overview