mcp-oraclefusion
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-oraclefusion Show me all invoices from Google in Q1 2025"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-oraclefusion
An MCP (Model Context Protocol) server for Oracle Fusion Cloud ERP. Gives any MCP-compatible AI client (Claude, Cursor, Windsurf, etc.) read-only access to your Oracle Fusion data via STDIO transport.
Authentication: Basic Auth, Oracle JWT, (WIP: OAuth via Microsoft Entra ID)
Quick start
Install and run via uvx:
{
"mcpServers": {
"oracle-fusion": {
"command": "uvx",
"args": ["mcp-oraclefusion"],
"env": {
"ORACLE_FUSION_BASE_URL": "https://your-oracle-instance.fa.ocs.oraclecloud.com",
"ORACLE_USERNAME": "your.name@example.com",
"ORACLE_PASSWORD": "your_oracle_password"
}
}
}
}Or run directly:
pip install mcp-oraclefusion
export ORACLE_FUSION_BASE_URL=https://your-oracle-instance.fa.ocs.oraclecloud.com
export ORACLE_USERNAME=your.name@example.com
export ORACLE_PASSWORD=your_oracle_password
mcp-oraclefusionRelated MCP server: Oracle MCP Chatbot
What you can do
Ask natural-language questions about your Oracle Fusion data:
"Show me all invoices from Google in Q1 2025"
"Find open purchase orders from Dell over $50,000"
"What's the USD to EUR corporate exchange rate for January 2025?"
"Search requisitions pending approval in US Operations"
"Look up supplier details for ACME Corp including sites and contacts"
"Show AR invoices for customer XYZ"
"Test the Oracle connection and show record counts"
"What's the total invoice amount from Google this quarter?"
"Break down AP spend by supplier, top 10"
"What percentage of total spend is each business unit?"
Tools (30 read + 7 write)
Accounts Payable
search_invoices, get_invoice_details, search_payments, get_payment_details, list_payment_terms
Procurement
search_purchase_orders, get_po_details, search_suppliers, get_supplier_details, search_requisitions, search_receiving_receipts, search_approved_suppliers, search_categories
General Ledger
search_journal_batches, search_gl_balances, list_ledgers, list_chart_of_accounts, search_currency_rates
Accounts Receivable
search_ar_invoices, get_ar_invoice_details, search_receipts
Expenses & HCM
search_expense_reports, search_user_accounts
Infrastructure
test_oracle_connection
Math / Aggregation
aggregate_records, sumif_records, group_by_aggregate, lookup_record, percentage_of_total, safe_divide
These tools run locally — no Oracle API calls. They use Python Decimal arithmetic to avoid float drift on currency values. The LLM fetches records with the search tools above, then passes them to these tools for exact computation (sums, averages, conditional aggregation, group-by pivots, percentages, ratios).
Write tools (set MCP_MODE=full to enable)
create_purchase_order, update_po_distribution, change_po_status, create_invoice, change_invoice_status, create_requisition, change_requisition_status
Configuration
Env var | Required | Description |
| Yes | Your Oracle Fusion instance URL |
| Yes | Your Oracle Fusion username (email) |
| If no JWT | Your Oracle Fusion password |
| No | REST API version (default |
| No |
|
| No |
|
OAuth / Microsoft Entra ID (coming soon)
OAuth login via Microsoft Entra ID is supported for multi-user deployments where each user authenticates with their corporate identity. This is currently being tested internally and will be documented once validated.
JWT authentication (alternative to password)
Instead of a password you can authenticate with an RSA private key + certificate registered in Oracle's Security Console (API Authentication). Set these env vars and omit ORACLE_PASSWORD:
Env var | Description |
| Path to the RSA private key PEM file |
| Inline PEM key (alternative to path, useful in containers) |
| Path to the matching X.509 certificate PEM file |
| Trusted issuer value configured in Oracle |
The server tries JWT first and falls back to Basic Auth if the JWT vars are not set.
Oracle REST API notes
Query filters use Oracle syntax: conditions joined with
;(AND), string matching withLIKE '*term*'Some fields are not queryable (
x-queryable: false) — the server uses finders or client-side filteringCLOB fields are excluded from collection projections to avoid Oracle 500 errors
The server auto-retries Oracle 500s by progressively stripping
totalResultsandfieldsparamsStatus changes use Oracle action endpoints (
POST /resource/{id}/action/{name}), not PATCHSupplier names are UPPERCASE in Oracle
Pagination via
limit/offset;hasMoreindicates additional pages
Requirements
Python 3.10+
Oracle Fusion Cloud instance with REST API access and a user account
Author
Wanis Elabbar
License
MIT
Available Tools
30 toolsaggregate_recordsA
Compute an aggregate (sum, avg, min, max, median, count, count_nonnull) over a numeric field in a list of records. Use this for ANY arithmetic on Oracle Fusion data — do NOT compute sums, averages, or counts yourself. All math uses exact Decimal arithmetic to avoid float drift on currency values.
Inputs: field (required), records (required), operation (required), decimal_places.
get_ar_invoice_detailsB
Get full details for a single AR invoice by its numeric CustomerTransactionId.
Inputs: transaction_id (required), expand_lines.
get_invoice_detailsB
Get full details for a single AP invoice by its numeric InvoiceId.
Inputs: invoice_id (required), expand_lines.
get_payment_detailsA
Get full details for a single AP payment by its numeric PaymentId.
Inputs: payment_id (required).
get_po_detailsA
Get full details for a single purchase order by its numeric POHeaderId, including lines.
Inputs: po_id (required).
get_supplier_detailsA
Get full details for a single supplier by its numeric SupplierId, including sites, contacts, and addresses.
Inputs: supplier_id (required).
group_by_aggregateB
Group records by a field and aggregate another field per group. Like a SQL GROUP BY or Excel pivot. Returns sorted results with optional limit. Use for subtotals by supplier, business unit, status, etc.
Inputs: records (required), agg_field (required), group_field (required), limit, +3 more.
list_chart_of_accountsC
List chart of accounts structures defined in Oracle Fusion.
Inputs: q, name, limit, offset.
list_ledgersC
List defined ledgers in Oracle Fusion General Ledger.
Inputs: q, name, limit, offset, +1 more.
list_payment_termsC
List Accounts Payable payment terms defined in Oracle Fusion.
Inputs: q, name, limit, offset.
lookup_recordA
Find a record by field value — like VLOOKUP/XLOOKUP. Returns the first match or all matches. Use for finding a specific invoice, supplier, etc.
Inputs: field (required), value (required), records (required), operator, +1 more.
percentage_of_totalA
Calculate each record's or group's share of the total for a numeric field. Optionally group by a field first. Returns percentages that sum to 100.
Inputs: records (required), value_field (required), group_field, decimal_places.
safe_divideA
Divide two numbers with exact Decimal arithmetic. Returns null on divide-by-zero instead of erroring. Use for ratios, rates, per-unit costs.
Inputs: numerator (required), denominator (required), decimal_places.
search_approved_suppliersC
Search the approved supplier list in Oracle Fusion Procurement.
Inputs: q, item, limit, offset, +3 more.
search_ar_invoicesC
Search Accounts Receivable invoices (customer billing) in Oracle Fusion.
Inputs: q, limit, offset, status, +4 more.
search_categoriesC
Search procurement browsing categories in Oracle Fusion.
Inputs: q, name, limit, offset, +1 more.
search_currency_ratesC
Search daily currency exchange rates in Oracle Fusion.
Inputs: limit, offset, end_date, start_date, +3 more.
search_expense_reportsC
Search employee expense reports in Oracle Fusion. NOTE: May return 403 depending on service account privileges.
Inputs: q, limit, offset, status, +4 more.
search_gl_balancesC
Get GL account balances. ALL parameters are REQUIRED by the Oracle API.
Inputs: ledger (required), period (required), currency (required), account_combination (required), +3 more.
search_invoicesA
Search Accounts Payable invoices in Oracle Fusion. Examples: search_invoices({"supplier": "google"}) finds invoices from Google. search_invoices({"invoice_number": "INV-001"}) finds a specific invoice. search_invoices({"date_from": "2024-01-01", "date_to": "2024-03-31"}) finds invoices in Q1 2024.
Inputs: q, limit, offset, status, +5 more.
search_journal_batchesC
Search General Ledger journal batches in Oracle Fusion.
Inputs: q, limit, offset, period, +2 more.
search_paymentsC
Search Accounts Payable payments in Oracle Fusion.
Inputs: q, limit, offset, status, +4 more.
search_purchase_ordersC
Search purchase orders in Oracle Fusion Procurement.
Inputs: q, buyer, limit, offset, +3 more.
search_receiptsC
Search AR receipts (customer payments received) in Oracle Fusion.
Inputs: q, limit, offset, date_to, +4 more.
search_receiving_receiptsC
Look up a goods receiving receipt by its receipt number. Receipt number is REQUIRED by the Oracle API.
Inputs: receipt_number (required).
search_requisitionsC
Search purchase requisitions in Oracle Fusion.
Inputs: q, limit, offset, status, +2 more.
search_suppliersC
Search supplier master data in Oracle Fusion. Note: Status is not filterable via the Oracle REST API.
Inputs: q, name, limit, offset, +1 more.
search_user_accountsC
Search HCM user accounts in Oracle Fusion by username or email.
Inputs: limit, offset, username.
sumif_recordsA
Conditional aggregation — like Excel SUMIF/COUNTIF/AVERAGEIF. Sum, count, or average a field where a condition matches. Operators: eq, neq, gt, gte, lt, lte, contains, startswith, in.
Inputs: records (required), operator (required), sum_field (required), condition_field (required), +3 more.
test_oracle_connectionA
Test connectivity to Oracle Fusion REST API. Returns connection status and record counts. Use this first to verify the connection is working.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 30 tools
Each tool targets a distinct entity or operation (e.g., AR invoices vs. AP invoices, search vs. aggregate). Even similar-looking search tools are clearly prefixed by module (ar, gl, ap, etc.), leaving no ambiguity.
Most tools follow a consistent verb_noun snake_case pattern (search_invoices, get_po_details). A few outliers like 'percentage_of_total', 'safe_divide', and 'sumif_records' break the pattern, but they are minor and still interpretable.
30 tools for a large ERP system like Oracle Fusion is reasonable. The set covers major modules (AP, AR, GL, Procurement, Expenses) without feeling bloated. A few computational helpers could be merged, but overall scope fits the domain.
The server provides a thorough read-only query and analysis surface across key Oracle Fusion entities. Missing write/update tools, but that appears intentional. Minor gaps like no drill-down or error handling tools, but core needs are met.
Related MCP Connectors
Query your org's data in natural language — read-only MCP access to SQL, NoSQL, files & warehouses.
Read-only by architecture: ask AI about QuickBooks, Xero and NetSuite, across every entity.
Read-only by architecture: ask AI about your NetSuite data, across multiple entities at once.
Ask questions in plain language, get answers from your business database. No SQL required.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables read-only exploration of Oracle databases through natural language, providing schema inspection and safe bounded SQL query execution.-
- FlicenseNot gradedqualityBmaintenanceEnables AI chatbots to securely answer natural-language questions against Oracle databases by discovering metadata, generating and validating read-only SQL, executing with limits, masking sensitive data, and logging all activity.-
- AlicenseNot gradedqualityCmaintenanceEnables read-only, natural-language queries of Kingdee ERP data such as revenue and inventory cost, along with local Excel report exports.MIT
- AlicenseAqualityCmaintenanceEnables AI assistants to explore and report on Oracle-based ERP databases via read-only schema discovery, guarded ad-hoc SQL, and curated reports.5MIT