ask-openai
Ask a direct question.
Ask an OpenAI model a question and manage Assistants and their files from any MCP client.
LABSCO SUMMARY
The useful part is the lifecycle: an assistant you are already talking to can create another one, attach the files it should search, and adjust its instructions — work that otherwise means the dashboard or a script. ask-openai is the smaller half, worth having when you want a second model's answer in the same conversation.
A bridge between MCP and the OpenAI API. It exposes a direct chat completion alongside the Assistants API — create, list, update and delete assistants, upload and manage the files they search over, and turn file_search on or off — so an assistant can build and maintain other assistants.
An OpenAI API key, supplied as OPENAI_API_KEY or passed to the server as --openai-api-key. Install with pip install . from the repository; the client then runs mcp-server-openai over stdio. Model usage is billed by OpenAI at their published rates.
Build from source — git clone https://github.com/snilld-ai/openai-assistant-mcp
USE CASES
Upload the files, then create the assistant with those file IDs and file_search enabled.
Read its current instructions and model, then update them in place.
Put the same question to a specific OpenAI model and compare the answer.
List the assistants and files, then delete the ones nothing uses.
Listed in project docs. Your client may show a different list.
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.
BEFORE YOU INSTALL
9 tools named in the project's documentation.
The documented client runs the server on your machine.
INSTALLATION
git clone https://github.com/snilld-ai/openai-assistant-mcp
cd openai-assistant-mcp
pip install .{
"mcpServers": {
"openai-server": {
"command": "mcp-server-openai",
"args": [],
"env": {
"PYTHONPATH": "<YOUR_PYTHONPATH>",
"OPENAI_API_KEY": "<YOUR_OPENAI_API_KEY>"
}
}
}
}<YOUR_PYTHONPATH> is the absolute path of your clone (it goes on PYTHONPATH), and <YOUR_OPENAI_API_KEY> is your OpenAI API key. mcp-server-openai is the command the pip install step puts on your PATH.