npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

oracle-mcp

v1.0.1

Published

A comprehensive MCP server providing deep engineering guidance with full MCP compliance: tools, resources, prompts, and secure file system access

Readme

oracle-mcp

A comprehensive Model Context Protocol (MCP) server that provides deep engineering advice via OpenAI. Features full MCP compliance with tools, resources, prompts, and file system access controls. Supports both stdio (local) and Streamable HTTP (remote) transports.

Features

  • Oracle Tool: Deep engineering guidance using OpenAI's reasoning models
  • Resources: Access engineering documentation and project templates
  • Prompts: Pre-built prompt templates for common engineering tasks
  • File System Access: Secure file operations with configurable roots
  • Security: Path validation and sandboxing for file operations
  • Dual Transport: Both stdio and HTTP transport support

Quick Start

NPX (Recommended)

# Set your OpenAI API key
export OPENAI_API_KEY=sk-...

# Run directly with npx (no installation needed)
npx [email protected]

Global Installation

# Install globally
npm install -g [email protected]

# Run the server
oracle-mcp

MCP Client Configuration

Add to your MCP client (e.g., Amp):

{
  "mcpServers": {
    "oracle": {
      "command": "npx",
      "args": ["-y", "[email protected]"],
      "env": { "OPENAI_API_KEY": "sk-..." }
    }
  }
}

Configuration

Required

  • OPENAI_API_KEY: Your OpenAI API key

Optional

  • ORACLE_MODEL: Model name (default: "o3")
  • ORACLE_MCP_LOG_LEVEL: Log level debug or info (default: "info")
  • MCP_READONLY_ROOTS: Comma-separated readonly directory paths
  • MCP_WRITABLE_ROOTS: Comma-separated writable directory paths

HTTP Server (Optional)

  • PORT: Server port (default: 8787)
  • MCP_AUTH_TOKEN: Authentication token for HTTP requests
  • MCP_ALLOWED_HOSTS: Allowed hosts for DNS protection (default: 127.0.0.1,localhost)

Example

export OPENAI_API_KEY=sk-...
export ORACLE_MODEL=o3
export MCP_READONLY_ROOTS="/path/to/docs,/path/to/examples"
export MCP_WRITABLE_ROOTS="/path/to/output,/path/to/tmp"
npx [email protected]

HTTP Server Mode

For remote deployments, oracle-mcp supports HTTP transport:

# Start HTTP server
export OPENAI_API_KEY=sk-...
export PORT=8787
npx [email protected] --http

Endpoints:

  • POST /mcp – Initialize MCP session
  • GET /mcp – Server-to-client message stream
  • DELETE /mcp – End session

For production deployment, see README-CLOUD.md.

Tools

oracle

Provides deep engineering guidance using a higher-reasoning model.

Parameters:

  • question (string, required): The engineering question or problem to analyze
  • context (string, optional): Additional context or background information
  • sections (array, optional): Specific sections to include in the response
  • model (string, optional): OpenAI model to use (defaults to environment variable)
  • maxOutputTokens (integer, optional): Maximum tokens for the response
  • temperature (number, optional): Temperature for response generation
  • timeoutMs (integer, optional): Request timeout in milliseconds

File System Tools

list_roots

List all configured file system roots (readonly and writable).

read_file

Read the contents of a file within allowed roots.

  • path (string, required): Path to the file to read

write_file

Write content to a file within writable roots.

  • path (string, required): Path to the file to write
  • content (string, required): Content to write to the file

list_directory

List the contents of a directory within allowed roots.

  • path (string, required): Path to the directory to list

check_path_access

Check if a path is accessible within the configured roots.

  • path (string, required): Path to check
  • requireWritable (boolean, optional): Whether write access is required

Resources

Engineering Documentation

  • oracle://docs/engineering - List of all engineering documents
  • oracle://docs/engineering/{docId} - Specific engineering document (architecture-guide, coding-standards, deployment-guide)

Project Templates

  • oracle://templates/projects - List of all project templates
  • oracle://templates/projects/{templateId} - Specific project template (microservice, frontend, cli-tool)

System Information

  • oracle://system/status - Current system status and configuration

Prompts

engineering_guidance

Get comprehensive engineering guidance on technical topics with structured analysis.

  • topic (string, required): The engineering topic or question to analyze
  • context (string, optional): Additional context or background information
  • focus_areas (string, optional): Comma-separated focus areas
  • complexity_level (string, optional): Target complexity level

code_review

Comprehensive code review with focus on quality, security, and best practices.

  • code (string, required): The code to review
  • language (string, optional): Programming language
  • review_type (string, optional): Type of review to perform
  • project_context (string, optional): Context about the project

architecture_design

Design system architecture with comprehensive analysis and recommendations.

  • requirements (string, required): System requirements and constraints
  • scale (string, optional): Expected system scale
  • technologies (string, optional): Preferred technologies
  • constraints (string, optional): Technical or business constraints

debug_assistance

Get help debugging issues with systematic troubleshooting approach.

  • problem_description (string, required): Description of the problem
  • error_message (string, optional): Specific error message
  • environment (string, optional): Environment details
  • steps_to_reproduce (string, optional): Steps to reproduce the issue
  • attempted_solutions (string, optional): Solutions already tried

performance_optimization

Analyze and optimize system or code performance.

  • target (string, required): What to optimize
  • current_metrics (string, optional): Current performance metrics
  • performance_goals (string, optional): Target performance goals
  • constraints (string, optional): Constraints to consider

Configuration

File System Roots

Configure allowed file system access via environment variables:

  • MCP_READONLY_ROOTS - Comma-separated list of readonly root paths
  • MCP_WRITABLE_ROOTS - Comma-separated list of writable root paths

Default roots:

  • Readonly: Current directory, docs/, examples/
  • Writable: tmp/, output/

Usage Examples

With Amp

Add to your Amp config:

{
  "mcpServers": {
    "oracle": {
      "command": "npx",
      "args": ["-y", "[email protected]"],
      "env": { "OPENAI_API_KEY": "sk-..." }
    }
  }
}

Using Tools

{{#tool oracle}}
{
  "question": "How do we migrate our Node/TS packages to ESM safely?",
  "sections": ["summary", "plan", "risks", "verification"]
}
{{/tool}}

Using Resources

Access engineering documentation: oracle://docs/engineering/architecture-guide
Browse project templates: oracle://templates/projects/microservice
Check system status: oracle://system/status

Using Prompts

{{#prompt engineering_guidance}}
{
  "topic": "microservices architecture",
  "complexity_level": "intermediate"
}
{{/prompt}}

Additional Information

  • Security: Path validation and sandboxing for file system access
  • MCP Compliance: 100% implementation of MCP guide requirements
  • Performance: Configurable timeouts and token limits
  • Cloud Deployment: See README-CLOUD.md for production setup
  • Package: Available on npm
  • Repository: GitHub