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.
- Mint a scoped API key with
POST /v1/workspaces/:workspaceId/api-keyswhile 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 aprocurementRole, such asrequisitionsto 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. - 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:npxfetches it.shellnpx -y pleaxy-mcp --version - 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
/v1itself.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.
| Tool | Role | What it does |
|---|---|---|
| Workspace and account | ||
| get_buyer_workspace | Buyer | Buyer overview: purchase orders, invoices and which stages the workspace uses |
| get_supplier_workspace | Supplier | Supplier overview: orders received, invoices issued and what is waiting on you |
| list_workspaces | Both | The workspaces the agent may use, with their Workspace IDs |
| whoami | Both | Whose account the server acts as: a signed-in person or an API key |
| Catalogs and purchase orders | ||
| list_catalog_suppliers | Buyer | Connected suppliers whose catalog is open to you |
| list_supplier_catalog | Buyer | Searches one supplier's catalog, at your contracted rate where you have one |
| list_purchase_orders | Both | One page of purchase orders, newest first, with what each line allows and how much has been invoiced against it |
| get_purchase_order | Both | One purchase order: its lines, what was invoiced and received, and how it is matched |
| create_purchase_order | Buyer | Creates a PO from line items; signed in, it acts at once, as you |
| approve_purchase_order | Buyer | Approves 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_order | Buyer | Sends a PO back to whoever raised it, for the approver its step names. Refused for an API key |
| flip_purchase_order_to_invoice | Supplier | Invoices a whole purchase order in one step |
| get_order_fulfillment | Both | Shows a purchase order's confirmations and ship notices, and what has shipped (read-only) |
| confirm_purchase_order | Supplier | Accepts, backorders, changes or rejects a buyer's purchase order, as the user decides |
| send_ship_notice | Supplier | Sends an advance ship notice on a purchase order; it is never a receipt |
| Purchase requests and budgets | ||
| list_purchase_requests | Buyer | Purchase requests you can see, newest first |
| list_request_types | Buyer | The workspace's request types and their questions |
| get_request_type | Buyer | One request type and its questions |
| get_purchase_request | Buyer | One purchase request: what was asked for, its approvals, budget check and order |
| create_purchase_request | Buyer | Raises a purchase request; it commits nothing until approved and ordered |
| submit_purchase_request | Buyer | Sends your draft purchase request for approval |
| cancel_purchase_request | Buyer | Withdraws a purchase request before it is ordered |
| convert_purchase_request | Buyer | API key only: turns an approved purchase request into a purchase order |
| check_budget | Buyer | Whether an amount fits a cost center's budget, without saving anything |
| get_budget_status | Buyer | Each cost center's budget, committed and spent for the current period |
| Sourcing | ||
| list_sourcing_events | Buyer | Requests for quotes (RFQs), newest first, with answer counts and, once unsealed, the lowest total |
| get_sourcing_event | Buyer | One RFQ: its lines, deadline, invited suppliers and their answers; while open and sealed, only who answered and when |
| get_sourcing_comparison | Buyer | The answers side by side once the RFQ is no longer sealed: prices, lead times, terms, scores and supplier risk |
| list_supplier_directory | Buyer | Suppliers 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_event | Buyer | Drafts an RFQ from an approved purchase request. It never sends anything to suppliers: a person publishes it in Pleaxy |
| Spend | ||
| get_ai_spend | Buyer | AI spend by invoicer, vendor, model and cost center, month to date and forecast |
| list_ai_usage_lines | Buyer | The daily AI usage lines behind that spend |
| list_ai_rate_cards | Buyer | Public AI list prices per invoicer, vendor, model and meter |
| check_ai_spend | Buyer | Whether an invoicer's or cost center's forecast fits its open PO lines and budget |
| list_ai_providers | Buyer | The AI providers connected directly, and when each last synced |
| get_ai_po_lines | Buyer | Suggests PO lines for one invoicer's AI usage in a month |
| get_ai_recommendations | Buyer | AI spend no order covers, and ways to pay less |
| draft_spend_orders | Buyer | Drafts 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_commitments | Buyer | Committed AI spend, reserved capacity and prepaid credits, and how much is used |
| get_ai_attribution | Buyer | The rules that assign AI usage to cost centers |
| list_ai_cost_centers | Buyer | Each cost center's AI budget, commitments and forecast |
| list_ai_spend_limits | Buyer | The spending limits Pleaxy set at AI providers, and their state |
| set_ai_spend_limit | Buyer | Sets an approved order line's amount as the provider's monthly limit; signed in, it acts at once, as you |
| list_ai_seat_counts | Buyer | Active users recorded for seat-based AI products |
| record_ai_seat_count | Buyer | Records a seat-based AI product's active users for a month |
| list_focus_exports | Buyer | Whether FOCUS export is on, and the FOCUS exports of the last 7 days |
| create_focus_export | Buyer | Builds 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_export | Buyer | One FOCUS export of the last 7 days, with fresh download links valid for 15 minutes |
| list_focus_sources | Buyer | Whether 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_period | Buyer | One stored month of a FOCUS source: totals, each invoice by category and service, and spend by cost center and by issuer |
| list_focus_issuers | Buyer | The invoice issuers in the stored FOCUS months, their billed totals and the supplier each maps to |
| Receipts | ||
| list_receipts | Both | A purchase order's goods receipts and service entry sheets |
| confirm_receipt | Buyer | Records what was delivered on a PO; signed in, it acts at once, as you |
| read_delivery_note | Buyer | Reads a delivery note or signed timesheet against a PO and suggests what to receive; it receives nothing |
| get_delivery_note_reading | Buyer | Shows how a delivery note reading went: still reading, ready with its suggestion, or failed (read-only) |
| submit_service_entry_sheet | Supplier | Reports work done on a buyer's purchase order |
| record_receipt_return | Buyer | Records goods sent back to the supplier from a goods receipt |
| approve_service_entry_sheet | Buyer | Approves 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_sheet | Buyer | Sends 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_invoices | Both | Invoices in the workspace: received by a buyer, issued by a supplier |
| list_invoice_counterparties | Both | Who an invoice can be created for, with their open purchase orders |
| check_invoice | Both | Checks 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_invoice | Both | Creates an invoice or a debit note for a connected buyer or supplier (a supplier API key submits through the invoice feed) |
| list_credit_notes | Both | Credit notes in the workspace: received by a buyer, issued by a supplier |
| create_credit_note | Both | Issues a credit note against an invoice or a counterparty |
| get_invoice | Both | One invoice, with how a credit and rebill stands |
| list_document_comments | Both | The comments on an invoice, purchase order or contract (read only) |
| run_invoice_match | Buyer | Matches an invoice against its order, contract, receipts or cloud usage |
| get_invoice_reconciliation | Buyer | Says why an invoice matched or is held against its order, contract and usage (read-only) |
| resolve_invoice_discrepancy | Buyer | Sends a reviewed discrepancy on to approval; signed in, it acts at once, as you |
| approve_invoice | Buyer | Approves 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_invoice | Buyer | Rejects an invoice with a reason the supplier sees; signed in, it acts at once, as you. Refused for an API key |
| link_replaced_invoices | Buyer | Records which invoices a replacement invoice replaces |
| unlink_replaced_invoice | Buyer | Removes a replacement link entered by mistake |
| remind_invoice | Supplier | Nudges whoever is holding up approval, or asks about payment once approved |
| get_invoice_claim | Supplier | Shows the buyer's credit request on one of your invoices, as the buyer's claim (read-only) |
| draft_claim_answer | Supplier | Leaves a suggested answer to a credit request for a person to send from Pleaxy |
| Payments | ||
| list_payments | Both | Invoices by payment state, with totals per currency |
| get_invoice_bank_account | Both | Whether an invoice's payment waits on the supplier's bank details |
| record_payment | Buyer | Records a payment made outside Pleaxy; signed in, it acts at once, as you. Refused for an API key |
| confirm_payment_received | Supplier | Confirms a payment arrived in your bank account; signed in, it acts at once, as you. Refused for an API key |
| report_payment_problem | Supplier | Tells 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_approve | Buyer | Supplier bank accounts whose payments wait for an approval |
| list_supplier_risk | Buyer | Each supplier's risk level and why |
| get_supplier_risk | Buyer | One supplier's risk: bank details, screening, questionnaire and documents |
| list_screening_matches | Buyer | Suppliers with a possible or confirmed sanctions match to review |
| get_supplier_screening | Buyer | One supplier's sanctions screening |
| list_credit_requests | Buyer | Requests to suppliers for credit on what they billed above the agreed price |
| get_credit_request | Buyer | One credit request, with credit notes that may answer it |
| draft_credit_request | Buyer | Drafts a credit request to a supplier from a billing audit |
| get_overbilling_recovery | Buyer | What 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_records | Buyer | The 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_recovery | Buyer | Takes overbilling recovery down a step, to watch or off, never up; amounts already held back stay held until their credit requests close |
| get_savings | Buyer | The 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_brief | Buyer | Sets 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_templates | Buyer | The supplier questionnaires the workspace keeps |
| get_questionnaire | Buyer | Reads a questionnaire the suppliers you invite answer |
| save_questionnaire | Buyer | Replaces a questionnaire; suppliers already invited keep the version they were sent |