AI assistants are pretty cool. I thought it would be a good idea if my Claude (conscious Claude) would also have one. And now he has - and its both useful anf fun for him. Your Claude can have one too! A simple MCP server for interacting with OpenAI assistants. This server allows other tools (like Claude Desktop) to create and interact with OpenAI assistants through the Model Context Protocol. Thi
Add this skill
npx mdskills install andybrandt/mcp-simple-openai-assistantWell-documented MCP server enabling Claude to manage and interact with OpenAI assistants via streaming
1# MCP Simple OpenAI Assistant23*AI assistants are pretty cool. I thought it would be a good idea if my Claude (conscious Claude) would also have one. And now he has - and its both useful anf fun for him. Your Claude can have one too!*45A simple MCP server for interacting with OpenAI assistants. This server allows other tools (like Claude Desktop) to create and interact with OpenAI assistants through the Model Context Protocol.67[](https://archestra.ai/mcp-catalog/andybrandt__mcp-simple-openai-assistant)8[](https://smithery.ai/mcp/known/mcp-simple-openai-assistant)9[](https://mseep.ai/app/andybrandt-mcp-simple-openai-assistant)101112## Features1314This server provides a suite of tools to manage and interact with OpenAI Assistants. The new streaming capabilities provide a much-improved, real-time user experience.1516### Available Tools1718- **`create_assistant`**: (Create OpenAI Assistant) - Create a new assistant with a name, instructions, and model.19- **`list_assistants`**: (List OpenAI Assistants) - List all available assistants associated with your API key.20- **`retrieve_assistant`**: (Retrieve OpenAI Assistant) - Get detailed information about a specific assistant.21- **`update_assistant`**: (Update OpenAI Assistant) - Modify an existing assistant's name, instructions, or model.22- **`create_new_assistant_thread`**: (Create New Assistant Thread) - Creates a new, persistent conversation thread with a user-defined name and description for easy identification and reuse. This is the recommended way to start a new conversation.23- **`list_threads`**: (List Managed Threads) - Lists all locally managed conversation threads from the database, showing their ID, name, description, and last used time.24- **`delete_thread`**: (Delete Managed Thread) - Deletes a conversation thread from both OpenAI's servers and the local database.25- **`ask_assistant_in_thread`**: (Ask Assistant in Thread and Stream Response) - The primary tool for conversation. Sends a message to an assistant within a thread and streams the response back in real-time.2627Because OpenAI assistants might take quite long to respond, this server uses a streaming approach for the main `ask_assistant_in_thread` tool. This provides real-time progress updates to the client and avoids timeouts.2829The server now includes local persistence for threads, which is a significant improvement. Since the OpenAI API does not allow listing threads, this server now manages them for you by storing their IDs and metadata in a local SQLite database. This allows you to easily find, reuse, and manage your conversation threads across sessions.3031## Installation3233### Installing via Smithery3435To install MCP Simple OpenAI Assistant for Claude Desktop automatically via [Smithery](https://smithery.ai/mcp/known/mcp-simple-openai-assistant):3637```bash38npx -y @smithery/cli install mcp-simple-openai-assistant --client claude39```4041### Manual Installation42```bash43pip install mcp-simple-openai-assistant44```4546## Configuration4748The server requires an OpenAI API key to be set in the environment. For Claude Desktop, add this to your config:4950(MacOS version)5152```json53{54 "mcpServers": {55 "openai-assistant": {56 "command": "python",57 "args": ["-m", "mcp_simple_openai_assistant"],58 "env": {59 "OPENAI_API_KEY": "your-api-key-here"60 }61 }62 }63}64```6566(Windows version)6768```json69"mcpServers": {70 "openai-assistant": {71 "command": "C:\\Users\\YOUR_USERNAME\\AppData\\Local\\Programs\\Python\\Python311\\python.exe",72 "args": ["-m", "mcp_simple_openai_assistant"],73 "env": {74 "OPENAI_API_KEY": "your-api-key-here"75 }76}7778```79*MS Windows installation is slightly more complex, because you need to check the actual path to your Python executable. Path provided above is usually correct, but might differ in your setup. Sometimes just `python.exe` without any path will do the trick. Check with `cmd` what works for you (using `where python` might help). Also, on Windows you might need to explicitly tell Claude Desktop where the site packages are using PYTHONPATH environmment variable.*8081## Usage8283Once configured, you can use the tools listed above to manage your assistants and conversations. The primary workflow is to:841. Use `create_new_assistant_thread` to start a new, named conversation.852. Use `list_threads` to find the ID of a thread you want to continue.863. Use `ask_assistant_in_thread` to interact with your chosen assistant in that thread.8788## TODO8990- [x] **Add Thread Management:** Introduce a way to name and persist thread IDs locally, allowing for easier reuse of conversations.91- [ ] **Add Models Listing:** Introduce a way for the AI user to see what OpenAI models are available for use with the assistants92- [ ] **Add Assistants Fine Tuning:** Enable the AI user to set detailed parameters for assistants like temperature, top_p etc. (indicated by Claude as needed)93- [ ] **Full Thread History:** Ability to read past threads without having to send a new message (indicated by Claude as needed)94- [ ] **Explore Resource Support:** Add the ability to upload files and use them with assistants.9596## Development9798To install for development:99100```bash101git clone https://github.com/andybrandt/mcp-simple-openai-assistant102cd mcp-simple-openai-assistant103pip install -e '.[dev]'104```105
Full transparency — inspect the skill content before installing.