Openai Assistant MCP Server

This project provides a server compliant with the Machine-to-Machine Communications Protocol (MCP) that acts as a bridge to various OpenAI API

Local serverstdio

What is the Openai Assistant MCP Server?

This project provides a server compliant with the Machine-to-Machine Communications Protocol (MCP) that acts as a bridge to various OpenAI API functionalities. It

What it actually does

  • Chat Completion: — Ask a direct question to a specified model (gpt-4, gpt-3.5-turbo)
  • Assistant Management: — Create, list, retrieve, update, and delete assistants
  • File Management: — Upload, list, and delete files associated with assistants
  • Tool Management: — Enable or disable tools for assistants, such as file_search

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
ask-openaiAsk a direct question.
list-assistantsList all available assistants.
retrieve-assistantRetrieve an assistant by its ID.
create-assistantCreate a new assistant.
update-assistantUpdate an existing assistant.
delete-assistantDelete an assistant by its ID.
upload-fileUpload a file for use with assistants.
list-filesList all files available for assistants.
delete-fileDelete a file by its ID.

How to install the Openai Assistant MCP Server

{
  "mcpServers": {
    "openai-server": {
      "command": "mcp-server-openai",
      "args": [],
      "env": {
        "PYTHONPATH": "LOCAL PATH",
        "OPENAI_API_KEY": "YOUR_OPENAI_API_KEY"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
PYTHONPATHDeclared in the maintainer’s client configuration.Check documentation
OPENAI_API_KEYDeclared in the maintainer’s client configuration.Check documentation

Example prompts to try

  • “Use Openai Assistant MCP to ask-openai.”
  • “Use Openai Assistant MCP to list-assistants.”
  • “Use Openai Assistant MCP to retrieve-assistant.”

Frequently asked questions

This project provides a server compliant with the Machine-to-Machine Communications Protocol (MCP) that acts as a bridge to various OpenAI API functionalities. It Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.