Oracle MCP Server
Click on "Install 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., "@Oracle MCP ServerWhat's the best way to structure a TypeScript MCP server for tool integration?"
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.
Oracle MCP Server
A Model Context Protocol (MCP) server that provides a unified interface for consulting oracle AI models (Codex or Claude) via CLI.
Features
Unified Oracle Tool: Single
consult_oracletool that works with either Codex or Claude CodeConfigurable Models: Supports custom oracle models and reasoning levels via
~/.oracle-mcp.jsonTestable Architecture: Pure functions for argument construction and CLI invocation
Proper Error Handling: Comprehensive error handling with descriptive messages
Type Safe: Full TypeScript with explicit typing and safe error handling
Related MCP server: Codex Bridge
Setup
# Install dependencies
bun install
# Build TypeScript
bun run build
# Run the server
bun run startDevelopment
# Run directly with hot reload
bun run dev
# Run test suite
bun testTools
consult_oracle
Consult the oracle for expert reasoning and analysis on complex problems.
When to use:
Planning complex tasks with multiple tradeoffs
You are ≤90% confident in your approach
You need analysis of architectural decisions or design patterns
Parameters:
prompt(string, required): The question or problem to consult the oracle about. Be specific about context, constraints, and what decision or analysis you need.
Example prompts:
"What's the best approach to structure a TypeScript MCP server for tool integration?"
"Should we use a monolithic or microservices architecture for this new feature?"
"What are the tradeoffs between different error handling patterns?"
Configuration
The server reads ~/.oracle-mcp.json if it exists to customize behavior. If the file doesn't exist, defaults are used.
Default Configuration
{
"model": "gpt-5.1-codex-mini",
"reasoning": "medium",
"command": "codex"
}Example with Codex
{
"oracle": {
"model": "gpt-5.1-codex-mini",
"reasoning": "high",
"command": "codex"
}
}Example with Claude Code
{
"oracle": {
"model": "opus",
"command": "claude"
}
}Implementation Details
CLI Invocation Formats
Codex:
codex exec --model <model> [-c reasoning_level=<level>] "<prompt>"Claude:
claude -p --model <model> "<prompt>"Architecture
Single-file server (
src/index.ts) implementing the MCP protocolPure functions for testability:
buildOracleArgs(): Constructs CLI arguments as an array (avoiding shell escaping issues)invokeOracle(): Executes CLI viaspawnSyncand returns structured result
MCP Handlers:
ListToolsRequestSchema: Describesconsult_oracletool with dynamic descriptions based on configCallToolRequestSchema: Handles tool invocation, captures stdout, and returns properly formatted responses
Error Handling: Try-catch with fallback to
String(error)for non-Error objectsResponse Format: All responses wrapped as
{ content: [{ type: "text", text: string }], isError?: boolean }
Dependencies
@modelcontextprotocol/sdk: Official MCP protocol implementation and stdio transport
Testing
Comprehensive test suite (42+ tests) covering:
Argument construction for both Codex and Claude
Special character handling (quotes, backticks, dollar signs, newlines)
Configuration loading and defaults
Tool description generation
Error handling and response formatting
Type safety and MCP protocol compliance
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
- Alicense-qualityDmaintenanceEnables comprehensive codebase analysis using Google's Gemini AI through CLI integration. Provides architectural reviews and targeted code analysis with code2prompt integration for efficient context extraction.122Apache 2.0
- AlicenseAqualityBmaintenanceEnables AI coding assistants to interact with OpenAI's Codex AI through the official CLI. Provides direct integration for code analysis, file review, and batch processing with zero API costs.3113MIT
- AlicenseCqualityFmaintenanceConnects AI assistants like Claude to the Codex CLI for code analysis, editing, and execution. Supports file references with @ syntax, sandboxed code execution with approval workflows, and structured code changes for automated refactoring and documentation.8188178MIT
- Flicense-quality-maintenanceOrchestrates multiple AI models (Gemini, OpenAI, Claude, local models) within a single conversation context, enabling collaborative workflows like multi-model code reviews, consensus building, and CLI-to-CLI bridging for specialized tasks.
Related MCP Connectors
A paid remote MCP for OpenAI Codex agent coordination MCP, built to return verdicts, receipts, usage
A paid remote MCP for OpenAI Codex context compressor, built to return verdicts, receipts, usage log
Cross-agent artifact workspace with provenance across Claude Code, Codex, Cursor, LangGraph.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/becksclair/oracle-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server