You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

openai-mcp-server

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

openai-mcp-server

MCP server for interacting with OpenAI

0.1.6
latest
Source
npmnpm
Version published
Weekly downloads
42
31.25%
Maintainers
1
Weekly downloads
 
Created
Source

OpenAI MCP Server

A Model Context Protocol (MCP) server for interacting with OpenAI's API. This server allows Claude and other MCP-compatible AI assistants to use OpenAI's models.

Installation

npm install -g openai-mcp-server

Or use it directly with npx:

npx openai-mcp-server YOUR_OPENAI_API_KEY

Usage

Command Line

Run the server with your OpenAI API key:

openai-mcp-server YOUR_OPENAI_API_KEY

With Claude Desktop

Add the following to your Claude Desktop configuration file (located at ~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "openai": {
      "command": "npx",
      "args": [
        "openai-mcp-server",
        "YOUR_OPENAI_API_KEY"
      ]
    }
  }
}

Replace YOUR_OPENAI_API_KEY with your actual OpenAI API key.

Features

  • Allows Claude to use OpenAI's models through the Model Context Protocol
  • Simple setup and configuration
  • Supports passing prompts to OpenAI and receiving responses

License

MIT

FAQs

Package last updated on 07 Mar 2025

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