🚀. Socket Launch Week Day 3:Socket Firewall Now Blocks Malicious VS Code and Open VSX Extensions.Learn more
Sign In

@fre4x/openai

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fre4x/openai

OpenAI MCP server providing multimodal analysis, image generation, and transcription.

latest
npmnpm
Version
1.1.1
Version published
Weekly downloads
96
-64.96%
Maintainers
1
Weekly downloads
 
Created
Source

openai — Multimodal Reasoning Bridge

Vision, imagination, and perception. The intelligence of OpenAI, delivered through the Model Context Protocol.

Part of FRE4X-B1TE — a monorepo of MCP servers built for autonomous agents.

This B1TE bridges your agent directly to OpenAI's advanced models — enabling it to see with GPT-4o, imagine with GPT Image 2, and hear with Whisper.

Tools

ToolCapability
analyze_mediaAnalyze an image from a file:// or http(s):// URL. Prompt is optional.
list_modelsList available OpenAI models with pagination.
generate_imageImage synthesis via GPT Image 2. Embeds base64 image data and optionally saves to output_dir.
transcribe_audioTranscribe local audio files using Whisper (whisper-1) and auto-save a .txt transcript.
generate_speechGenerate speech audio from text and optionally save it locally.

Setup

Environment Variables

  • OPENAI_API_KEY: Your OpenAI API key.
  • MOCK: Set to true to use mock data instead of real API calls.

Claude Desktop Configuration

{
  "mcpServers": {
    "openai": {
      "command": "npx",
      "args": ["-y", "@fre4x/openai"],
      "env": {
        "OPENAI_API_KEY": "your-key-here"
      }
    }
  }
}

Features

  • Protocol Compliance: Implements the split content (Markdown) and structuredContent (Raw Data) model for high-fidelity agent interaction.
  • Agent-Sufficient Output: content.text carries enough detail for autonomous follow-up, including model IDs, generated image metadata, revised prompts, saved paths, transcript metadata, and speech metadata.
  • Strict Validation: All tools utilize outputSchema for reliable data parsing and reduced hallucinations.
  • Privacy & Security: Aggressively masks implementation details (HTTP codes, library names) in error messages.
  • Token Efficiency: Mandatory pagination for model listing.
  • Vision Input Contract: analyze_media accepts only file:// and http(s):// URLs. data: URLs are rejected at validation time.
  • Transcript Saving: transcribe_audio always writes openai_transcription_{number}.txt into the current working directory unless output_dir overrides the destination.

Development

npm install
npm run build
npm run typecheck
npm test
MOCK=true npm run inspector

License

MIT — WE ARE THE FRE4X.

FAQs

Package last updated on 08 Jun 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts