The Problem
Oracle Fusion Cloud has 25,000+ tables across Finance, SCM, HCM, and Procurement. Finding the right table, understanding join relationships, and writing correct SQL takes hours of digging through Oracle docs. Even experienced consultants spend 15+ minutes per query cycle: log into BI Publisher → create data model → write SQL → debug → re-run.
ofrag eliminates this entirely. Your AI agent discovers tables semantically, validates SQL against a local schema cache, and executes queries against live Fusion data — all in one conversation.
✨ The Magic Moment
You: "Show me the top 5 unpaid invoices for vendor Acme Corp generated last month."
Claude + ofrag:
- Discovers the right tables via semantic search (
AP_INVOICES_ALL,POZ_SUPPLIERS,HZ_PARTIES)- Understands "unpaid" means
PAYMENT_STATUS_FLAG = 'N'- Validates the SQL against local metadata — catches errors before they hit production
- Executes the query against your live Oracle Fusion instance
- Returns a formatted table with invoice numbers, amounts, and dates
Total time: ~4 seconds.
No BI Publisher. No data model. No OTBI subject areas. Just a question and an answer.
🧠 What is ofrag
ofrag is an MCP (Model Context Protocol) server — an open standard that lets AI agents use external tools. It gives Claude, OpenAI, Gemini, and any MCP-compatible LLM structured access to your Oracle Fusion Cloud data.
┌──────────────────────────────────────────────────────────────┐
│ Your AI Agent │
│ Claude · OpenAI · Gemini · Claude Code │
├──────────────────────────────────────────────────────────────┤
│ ofrag (MCP Server) │
│ │
│ ┌─────────────┐ ┌──────────────┐ ┌─────────────────────┐ │
│ │ Semantic │ │ SQL Linter │ │ Business Process │ │
│ │ Search │ │ (AST-based) │ │ Mapper │ │
│ └──────┬──────┘ └──────┬───────┘ └──────────┬──────────┘ │
│ │ │ │ │
│ ┌──────▼──────────────────────────────────────▼──────────┐ │
│ │ Local DuckDB Metadata Cache │ │
│ │ 25,000+ tables · 240K+ descriptions │ │
│ └────────────────────────┬───────────────────────────────┘ │
│ │ Only validated queries │
├───────────────────────────▼──────────────────────────────────┤
│ Oracle Fusion Cloud │
│ BI Publisher SOAP · REST APIs │
└──────────────────────────────────────────────────────────────┘
Key principle: All schema exploration happens locally — zero queries to production during discovery. Only final, validated SQL reaches your live Fusion instance.
🔑 Why ofrag Has No Alternatives
The real difference: Other tools help you write SQL. ofrag lets you skip writing SQL — the AI does it for you, correctly, using verified metadata.
🛠 Tool Catalog
ofrag exposes 30+ tools to your AI agent, organized by function:
Discovery & Search
SQL & Execution
Business Intelligence
REST API
Fusion Configuration
BI Publisher & ESS
Environment Management
🚀 Quick Start
1. Get the binary
Download from Releases (Windows and macOS).
2. Follow the setup guide
👉 Installation & Setup Guide — step-by-step: licensing, BI Publisher report deployment, MCP client configuration (Claude Desktop, Gemini, Claude Code), authentication setup.
3. Start talking to your ERP
"What tables store AP invoice data?"
"Show me all overdue invoices for Acme Corp"
"How are accounts payable balances linked to the general ledger?"
"Compare the supplier count between DEV and PROD"
💡 Use Cases
Ad-hoc data analysis — Ask "show me revenue by business unit for Q4" and get results in seconds. No OTBI report creation, no BI Publisher data model, no waiting.
Implementation troubleshooting — During Fusion implementation, quickly verify data: "are there any AP invoices without distributions?", "show me GL journal entries that haven't been transferred from XLA".
Data reconciliation — "Compare AP subledger totals against GL balances for period DEC-24". The AI traces the full AP → XLA → GL chain and identifies discrepancies.
Schema exploration — "What tables store employee compensation data?" The AI uses semantic search to find relevant HCM tables, shows their relationships, and explains the data model.
Integration development — Building OIC integrations? Ask "what REST endpoints exist for AP invoices?" or "what's the FBDI template for importing journals?" — ofrag finds it.
EBS → Fusion migration — "What's the Fusion equivalent of AP_INVOICES_ALL in EBS?" The AI maps EBS tables to Fusion tables using semantic search and module knowledge.
Report development — Before building a BI Publisher report, prototype your SQL through conversation. The AI validates and optimizes your queries using the local schema cache.
⚠️ Limitations
- Read-only SQL —
SELECTqueries only through BI Publisher SOAP. Oracle Fusion does not permit write access through this layer. - Security — Ensure usage complies with your organization's security policies. Credentials are stored locally and never transmitted to third parties.
📄 Documentation
🌐 Ecosystem
ofrag is part of the Oracle Fusion open-source ecosystem:
📫 Contact
- Website: oraclefusionsql.com
- GitHub Issues: krokozyab/ofrag/issues
- Email: [email protected]
- LinkedIn: Sergey Rudenko