Back to MCP directory
publicPublicdnsLocal runtime

openai-mcp-server

OpenAI MCP服务器的安装与配置指南

article

README

🚀 开源AI服务器项目

本项目提供了一个基于OpenAI的服务器解决方案,通过克隆仓库、安装依赖和配置相关文件,能快速搭建起一个可定制的AI服务环境。

🚀 快速开始

📦 安装指南

1. 下载并安装

首先,需要切换到指定路径,然后克隆项目仓库,最后安装依赖项并进行构建。具体操作如下:

# 切换到路径
cd /Users/user/Documents/Cline/MCP/
# 克隆仓库
git clone github.com/voronkovm/openai-mcp-server.git
# 安装依赖项并构建
npm install && npm run clean-build

2. 配置文件

mcp_settings.json 中添加以下内容,以完成服务器的配置:

{
  "mcpServers": {
    "github.com/voronkovm/openai-mcp-server": {
      "autoApprove": [],
      "timeout": 60,
      "command": "node",
      "args": [
        "/Users/user/Documents/Cline/MCP/openai-mcp-server/build/index.js"
      ],
      "env": {
        "OPENAI_MCP_API_KEY": "sk-proj-....",
        "OPENAI_MCP_MODEL": "gpt-4o"
      },
      "transportType": "stdio"
    }
  }
}

⚠️ 重要提示

请确保 OPENAI_MCP_API_KEY 为有效的OpenAI API密钥,否则服务器将无法正常访问OpenAI服务。

💡 使用建议

在配置 mcp_settings.json 文件时,可根据实际需求调整 timeout 等参数,以优化服务器性能。

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client