DocumentationBuild

AI agents (MCP)

Run the Pleaxy MCP server with a scoped API key, so Claude or another agent can work with purchase orders and invoices.

Connecting an agent as yourself, without an API key: Connect an AI agent.

The Pleaxy MCP server exposes purchase orders and invoices as tools for Claude or any other MCP-compatible agent. It's a thin wrapper: every tool call is one authenticated request to the same /v1 API the console and SDKs use, so an agent can do exactly what its API key allows - nothing more.

  1. Mint a scoped API key with POST /v1/workspaces/:workspaceId/api-keys while signed in as yourself - an existing API key can't mint another (see API keys). The key takes your own role in the workspace, buyer or supplier, and only an administrator can mint one. A buyer key is read-only unless you give it a procurementRole, such as requisitions to create purchase orders. The response contains the key (shown only once). Then copy the workspace's Workspace ID from Company profile in the Pleaxy console - you need both below.
  2. Check it runs (Node.js 22.18 or later). The server is on npm as pleaxy-mcp, so there is nothing to build or clone: npx fetches it.
    shell
    npx -y pleaxy-mcp --version
  3. Add it to your MCP client. For Claude Desktop or Claude Code, add this to your MCP config. The base URL is the origin only - the server adds /v1 itself.
    mcp config · json
    {
      "mcpServers": {
        "pleaxy": {
          "command": "npx",
          "args": ["-y", "pleaxy-mcp"],
          "env": {
            "PLEAXY_API_BASE_URL": "https://api.pleaxy.ai",
            "PLEAXY_API_KEY": "<keyId>.<secret>",
            "PLEAXY_WORKSPACE_ID": "<Company profile → Workspace ID>"
          }
        }
      }
    }

One server process serves one workspace - one API key, one Workspace ID. Buyer and supplier keys see the same tool list, but a call outside the key's role (a supplier key calling create_purchase_order, say) is rejected by the API exactly as it would be over REST.

Tools exposed by the Pleaxy MCP server
ToolRoleWhat it does
Workspace and account
get_buyer_workspaceBuyerBuyer overview: purchase orders, invoices and which stages the workspace uses
get_supplier_workspaceSupplierSupplier overview: orders received, invoices issued and what is waiting on you
list_workspacesBothThe workspaces the agent may use, with their Workspace IDs
whoamiBothWhose account the server acts as: a signed-in person or an API key
Catalogs and purchase orders
list_catalog_suppliersBuyerConnected suppliers whose catalog is open to you
list_supplier_catalogBuyerSearches one supplier's catalog, at your contracted rate where you have one
list_purchase_ordersBothOne page of purchase orders, newest first, with what each line allows and how much has been invoiced against it
get_purchase_orderBothOne purchase order: its lines, what was invoiced and received, and how it is matched
create_purchase_orderBuyerCreates a PO from line items; signed in, it acts at once, as you
approve_purchase_orderBuyerApproves a PO at its current step, for the approver it names; signed in, it acts at once, as you. Refused for an API key
reject_purchase_orderBuyerSends a PO back to whoever raised it, for the approver its step names. Refused for an API key
flip_purchase_order_to_invoiceSupplierInvoices a whole purchase order in one step
get_order_fulfillmentBothShows a purchase order's confirmations and ship notices, and what has shipped (read-only)
confirm_purchase_orderSupplierAccepts, backorders, changes or rejects a buyer's purchase order, as the user decides
send_ship_noticeSupplierSends an advance ship notice on a purchase order; it is never a receipt
Purchase requests and budgets
list_purchase_requestsBuyerPurchase requests you can see, newest first
list_request_typesBuyerThe workspace's request types and their questions
get_request_typeBuyerOne request type and its questions
get_purchase_requestBuyerOne purchase request: what was asked for, its approvals, budget check and order
create_purchase_requestBuyerRaises a purchase request; it commits nothing until approved and ordered
submit_purchase_requestBuyerSends your draft purchase request for approval
cancel_purchase_requestBuyerWithdraws a purchase request before it is ordered
convert_purchase_requestBuyerAPI key only: turns an approved purchase request into a purchase order
check_budgetBuyerWhether an amount fits a cost center's budget, without saving anything
get_budget_statusBuyerEach cost center's budget, committed and spent for the current period
Sourcing
list_sourcing_eventsBuyerRequests for quotes (RFQs), newest first, with answer counts and, once unsealed, the lowest total
get_sourcing_eventBuyerOne RFQ: its lines, deadline, invited suppliers and their answers; while open and sealed, only who answered and when
get_sourcing_comparisonBuyerThe answers side by side once the RFQ is no longer sealed: prices, lead times, terms, scores and supplier risk
list_supplier_directoryBuyerSuppliers that chose to be found on Pleaxy, by what they say they sell (category, UN standard segment or name), a page at a time, sponsored listings marked. Read-only: a person invites one
create_sourcing_eventBuyerDrafts an RFQ from an approved purchase request. It never sends anything to suppliers: a person publishes it in Pleaxy
Spend
get_ai_spendBuyerAI spend by invoicer, vendor, model and cost center, month to date and forecast
list_ai_usage_linesBuyerThe daily AI usage lines behind that spend
list_ai_rate_cardsBuyerPublic AI list prices per invoicer, vendor, model and meter
check_ai_spendBuyerWhether an invoicer's or cost center's forecast fits its open PO lines and budget
list_ai_providersBuyerThe AI providers connected directly, and when each last synced
get_ai_po_linesBuyerSuggests PO lines for one invoicer's AI usage in a month
get_ai_recommendationsBuyerAI spend no order covers, and ways to pay less
draft_spend_ordersBuyerDrafts purchase orders for the cloud and AI spend no order covers: one line for a whole cloud account, or a line per model and meter
list_ai_commitmentsBuyerCommitted AI spend, reserved capacity and prepaid credits, and how much is used
get_ai_attributionBuyerThe rules that assign AI usage to cost centers
list_ai_cost_centersBuyerEach cost center's AI budget, commitments and forecast
list_ai_spend_limitsBuyerThe spending limits Pleaxy set at AI providers, and their state
set_ai_spend_limitBuyerSets an approved order line's amount as the provider's monthly limit; signed in, it acts at once, as you
list_ai_seat_countsBuyerActive users recorded for seat-based AI products
record_ai_seat_countBuyerRecords a seat-based AI product's active users for a month
list_focus_exportsBuyerWhether FOCUS export is on, and the FOCUS exports of the last 7 days
create_focus_exportBuyerBuilds a FOCUS file of your invoices, debit notes and accepted credit notes for up to 36 billing months, with download links. It changes nothing in the workspace
get_focus_exportBuyerOne FOCUS export of the last 7 days, with fresh download links valid for 15 minutes
list_focus_sourcesBuyerWhether FOCUS import is on, and each FOCUS source - an uploaded file or a cloud's own FOCUS export - with its last run
get_focus_source_periodBuyerOne stored month of a FOCUS source: totals, each invoice by category and service, and spend by cost center and by issuer
list_focus_issuersBuyerThe invoice issuers in the stored FOCUS months, their billed totals and the supplier each maps to
Receipts
list_receiptsBothA purchase order's goods receipts and service entry sheets
confirm_receiptBuyerRecords what was delivered on a PO; signed in, it acts at once, as you
read_delivery_noteBuyerReads a delivery note or signed timesheet against a PO and suggests what to receive; it receives nothing
get_delivery_note_readingBuyerShows how a delivery note reading went: still reading, ready with its suggestion, or failed (read-only)
submit_service_entry_sheetSupplierReports work done on a buyer's purchase order
record_receipt_returnBuyerRecords goods sent back to the supplier from a goods receipt
approve_service_entry_sheetBuyerApproves a supplier's service entry sheet at its current step; signed in, it acts at once, as you. Refused for an API key
reject_service_entry_sheetBuyerSends a service entry sheet back with a reason the supplier sees; signed in, it acts at once, as you. Refused for an API key
Invoices
list_invoicesBothInvoices in the workspace: received by a buyer, issued by a supplier
list_invoice_counterpartiesBothWho an invoice can be created for, with their open purchase orders
check_invoiceBothChecks an invoice as it would be checked on arrival and returns what it would be held for, creating nothing (a supplier API key checks through the invoice feed)
create_invoiceBothCreates an invoice or a debit note for a connected buyer or supplier (a supplier API key submits through the invoice feed)
list_credit_notesBothCredit notes in the workspace: received by a buyer, issued by a supplier
create_credit_noteBothIssues a credit note against an invoice or a counterparty
get_invoiceBothOne invoice, with how a credit and rebill stands
list_document_commentsBothThe comments on an invoice, purchase order or contract (read only)
run_invoice_matchBuyerMatches an invoice against its order, contract, receipts or cloud usage
get_invoice_reconciliationBuyerSays why an invoice matched or is held against its order, contract and usage (read-only)
resolve_invoice_discrepancyBuyerSends a reviewed discrepancy on to approval; signed in, it acts at once, as you
approve_invoiceBuyerApproves an invoice at its current step, for the approver it names; signed in, it acts at once, as you. Refused for an API key
reject_invoiceBuyerRejects an invoice with a reason the supplier sees; signed in, it acts at once, as you. Refused for an API key
link_replaced_invoicesBuyerRecords which invoices a replacement invoice replaces
unlink_replaced_invoiceBuyerRemoves a replacement link entered by mistake
remind_invoiceSupplierNudges whoever is holding up approval, or asks about payment once approved
get_invoice_claimSupplierShows the buyer's credit request on one of your invoices, as the buyer's claim (read-only)
draft_claim_answerSupplierLeaves a suggested answer to a credit request for a person to send from Pleaxy
Payments
list_paymentsBothInvoices by payment state, with totals per currency
get_invoice_bank_accountBothWhether an invoice's payment waits on the supplier's bank details
record_paymentBuyerRecords a payment made outside Pleaxy; signed in, it acts at once, as you. Refused for an API key
confirm_payment_receivedSupplierConfirms a payment arrived in your bank account; signed in, it acts at once, as you. Refused for an API key
report_payment_problemSupplierTells the buyer a payment didn't arrive or the amount differs; signed in, it acts at once, as you. Refused for an API key
Supplier risk, credit and questionnaires
list_bank_accounts_to_approveBuyerSupplier bank accounts whose payments wait for an approval
list_supplier_riskBuyerEach supplier's risk level and why
get_supplier_riskBuyerOne supplier's risk: bank details, screening, questionnaire and documents
list_screening_matchesBuyerSuppliers with a possible or confirmed sanctions match to review
get_supplier_screeningBuyerOne supplier's sanctions screening
list_credit_requestsBuyerRequests to suppliers for credit on what they billed above the agreed price
get_credit_requestBuyerOne credit request, with credit notes that may answer it
draft_credit_requestBuyerDrafts a credit request to a supplier from a billing audit
get_overbilling_recoveryBuyerWhat Pleaxy does when an invoice bills above its purchase order or contract: off, watch (only notes what it would hold back) or on (pays what is proven, holds back the rest and asks the supplier for a credit note)
list_overbilling_recovery_recordsBuyerThe tamper-evident record of what was held back and how each hold ended, newest first, with a check that the chain holds end to end
pause_overbilling_recoveryBuyerTakes overbilling recovery down a step, to watch or off, never up; amounts already held back stay held until their credit requests close
get_savingsBuyerThe money Pleaxy saved, per currency and month: stopped before payment, credited back on bills already paid and early-payment discounts taken, by supplier and by check, with the evidence
get_contract_renewal_briefBuyerSets out what to know before renewing or giving notice on a contract: notice date, spend against the cap, commitments and findings (read-only)
list_questionnaire_templatesBuyerThe supplier questionnaires the workspace keeps
get_questionnaireBuyerReads a questionnaire the suppliers you invite answer
save_questionnaireBuyerReplaces a questionnaire; suppliers already invited keep the version they were sent
Talk to us