# andybrandt/mcp-simple-openai-assistant [Health: Active]

**Category:** 🗣️ Conversational AI  
**Repository:** https://github.com/andybrandt/mcp-simple-openai-assistant  
**GitHub Stars:** 39  
**Views:** 5  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/andybrandt-mcp-simple-openai-assistant

## Description
MCP to talk to OpenAI assistants (Claude can use any GPT model as his assitant)

## Tools
Capabilities this server exposes over MCP:

- **create_assistant** — Create a new OpenAI assistant to talk to about your desired topic.

You can provide instructions that this assistant will follow and specify which of OpenAI's models it will use.
NOTE: It is recommended to check existing assistants with list_assistants before creating a new one.
- **create_new_assistant_thread** — Creates a new, persistent conversation thread with a user-defined name and
description for easy identification and reuse. These threads are stored in OpenAI's servers 
and are not deleted unless the user deletes them, which means you can re-use them for future conversations.
Additionally, the thread name and description are stored in the local database, which means you can list them
and update them later.

Think how you can utilize threads in your particular use case.
- **list_threads** — Lists all locally saved conversation threads from the database.
Returns a list of threads with their ID, name, description, and last used time.
The thread ID can be used in the ask_assistant_in_thread tool to specify this thread to be continued.
- **update_thread** — Updates the name and/or description of a locally saved conversation thread.
Both the local database and the OpenAI thread object will be updated.

The thread ID can be retrieved from the list_threads tool.
- **delete_thread** — Deletes a conversation thread from both OpenAI's servers and the local database.
This action is irreversible.
- **ask_assistant_in_thread** — Sends a message to an assistant within a specific thread and streams the response.
This provides progress updates and the final message in a single call.

Use this to continue a conversation with an assistant in a specific thread.
The thread ID can be retrieved from the list_threads tool.
The assistant ID can be retrieved from the list_assistants tool.
Threads are not inherently linked to a particular assistant, so you can use this tool to talk to any assistant in any thread.
- **list_assistants** — List all available OpenAI assistants associated with the API key configured by the user.

Returns a list of assistants with their IDs, names, and configurations. This can be used to select 
an assistant to use in the ask_assistant_in_thread tool instead of creating a new one.
- **retrieve_assistant** — Get detailed information about a specific assistant. 
The ID required can be retrieved from the list_assistants tool.
- **update_assistant** — Modify an existing assistant's name, instructions, or model used.

At least one optional parameter - what to change - must be provided, otherwise the tool will return an error.
The ID required can be retrieved from the list_assistants tool.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "mcp-simple-openai-assistant": {
    "command": "uvx",
    "args": ["mcp-simple-openai-assistant"],
    "env": {
      "OPENAI_API_KEY": ""
    }
  }
}
```

**Requires environment variables:** `OPENAI_API_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What andybrandt/mcp-simple-openai-assistant MCP server does

The andybrandt/mcp-simple-openai-assistant MCP server exposes OpenAI assistant management and conversation features through the Model Context Protocol. An MCP client can create an assistant with a name, instructions, and model; list assistants associated with the configured API key; retrieve assistant details; and update an assistant's name, instructions, or model.

Conversation work is organized around persistent assistant threads. The server creates named threads with descriptions, records their OpenAI IDs and metadata locally, and lets clients list or delete those managed threads. Messages can then be sent to a selected assistant inside a thread.

## How it works

The usual workflow is to create a managed thread with `create_new_assistant_thread`, use `list_threads` to find an existing thread, and call `ask_assistant_in_thread` to continue the conversation. The response tool streams assistant output as it arrives rather than waiting for the complete response.

OpenAI does not provide thread listing through its API, so the andybrandt/mcp-simple-openai-assistant MCP server maintains a local SQLite database for thread IDs, names, descriptions, and last-used information. Deleting a managed thread removes it from both OpenAI's servers and that local database.

## Setup and configuration

Install the published Python package with:

```bash
pip install mcp-simple-openai-assistant
```

The server requires the `OPENAI_API_KEY` environment variable.

```json
{
  "mcpServers": {
    "openai-assistant": {
      "command": "python",
      "args": ["-m", "mcp_simple_openai_assistant"],
      "env": {
        "OPENAI_API_KEY": "your-api-key-here"
      }
    }
  }
}
```

On Windows, the Python executable may need an explicit path. An alternative installation path is the Smithery CLI, but the package's own manual installation uses Python's package installer.

## Tools and capabilities

The available MCP tools are:

- `create_assistant`: creates an OpenAI assistant from a name, instruction set, and model.
- `list_assistants`: lists assistants available to the configured API key.
- `retrieve_assistant`: returns details for a specified assistant.
- `update_assistant`: changes an assistant's name, instructions, or model.
- `create_new_assistant_thread`: creates a named, persistent conversation thread.
- `list_threads`: lists locally managed threads and their metadata.
- `delete_thread`: deletes a thread remotely and locally.
- `ask_assistant_in_thread`: sends a message and streams the assistant's response.

## Limitations and notes

The server requires access to an OpenAI API key, so usage depends on the OpenAI account and API configuration behind that key. The current README lists model discovery, assistant fine-tuning parameters such as temperature and `top_p`, reading old thread history without sending a message, and file uploads as unfinished or planned work. Those capabilities should not be assumed to be available through the current tools.

The documented client setup specifically covers Claude Desktop.

_Full upstream README: https://allmcps.com/mcp/andybrandt-mcp-simple-openai-assistant/readme_

