ofrag
Agentic SQL & RAG engine (MCP server) for Oracle Fusion. Features local schema caching, semantic search, and real-time SQL execution for AI agents
claude mcp add --transport stdio krokozyab-ofrag node path/to/server.js \ --env OFRAG_LOG_LEVEL="log level (e.g., info, debug, warn, error)" \ --env OFRAG_CONFIG_PATH="Path to the OFRAG configuration file (optional)"
How to use
ofrag is a specialized Retrieval-Augmented Generation (RAG) engine designed to enhance LLMs with local schema awareness and live data access to Oracle Fusion Cloud. It combines local semantic tooling (lint_sql, semantic_search, search_identifiers, module_summary) with an execution layer that runs validated SQL against your live Oracle Fusion instance. The result is an AI assistant that can understand user intent, validate and repair SQL against the Oracle schema locally, then run the query live and present results in a clean, formatted markdown table. This enables rapid, self-contained analysis and data retrieval without repeatedly jumping through BI tools.
To use it, run the OFRAG MCP server and interact with it through your preferred LLM integration. When you ask questions like “show me top invoices,” the system can lint and validate the SQL, ensure the target tables exist (e.g., AP_INVOICES_ALL), and execute the query against Oracle Fusion. The local tools provide precise feedback about schema structure and potential issues, which the LLM can then incorporate into its reasoning and repairs before executing the final query.
How to install
Prerequisites
- A supported environment with Node.js installed (or a containerized/runtime that can execute Node-based MCP servers).
- Access to an Oracle Fusion Cloud instance with credentials configured for live queries.
- Local schema cache and metadata available to OFRAG (as described in the project docs).
Install steps
-
Install Node.js if you don’t have it already. Visit https://nodejs.org/ and follow the installation instructions for your OS.
-
Clone the MCP repository or download the OFRAG release package.
-
Install dependencies (if applicable to the project layout). Example:
npm install
-
Configure environment variables and defaults (see environment variables in the mcp_config section). Create a config file if required by your setup, for example config/ofrag-config.json.
-
Start the MCP server using your preferred method (as defined by the mcp_config). Example if you’re using a direct Node.js invocation:
node path/to/server.js
-
Verify the server is running and accessible via the MCP gateway/interface and that it can reach the Oracle Fusion Cloud environment with the configured credentials.
Additional notes
Tips and notes:
- Ensure the local Oracle Fusion metadata cache is up to date so lint_sql and semantic tools validate queries correctly.
- Use the lint_sql tool to catch structural issues before executing queries against live data.
- Review the generated SQL feedback from semantic_search and module_summary to understand any suggested changes to queries.
- If you encounter connection issues to Oracle Fusion Cloud, verify network rules, VPNs, and the credentials configured in OFRAG.
- Set the OFRAg_LOG_LEVEL to debug during troubleshooting to capture more verbose logs.
- If you plan to run multiple servers, isolate their environments and ensure unique namespace/config paths to avoid clashes.
Related MCP Servers
Mantic.sh
A structural code search engine for Al agents.
Axon.MCP.Server
Transform your codebase into an intelligent knowledge base for AI-powered development with Cursor IDE, Google AntiGravity, and MCP-enabled assistants
mcp-pinecone
Model Context Protocol server to allow for reading and writing from Pinecone. Rudimentary RAG
workflowy
Powerful CLI and MCP server for WorkFlowy: reports, search/replace, backup support, and AI integration (Claude, LLMs)
pfsense
pfSense MCP Server enables security administrators to manage their pfSense firewalls using natural language through AI assistants like Claude Desktop. Simply ask "Show me blocked IPs" or "Run a PCI compliance check" instead of navigating complex interfaces. Supports REST/XML-RPC/SSH connections, and includes built-in complian
gtm
An MCP server for Google Tag Manager. Connect it to your LLM, authenticate once, and start managing GTM through natural language.