andybrandt/mcp-simple-openai-assistant
Free与 OpenAI Assistants 对话的 MCP (Claude 可以使用任何 GPT 模型作为其助手)。
FreeFree tier
Inputs: textOutputs: text
About andybrandt/mcp-simple-openai-assistant
A simple MCP (Model Context Protocol) server that allows tools like Claude Desktop to create, manage, and interact with OpenAI Assistants. It provides a suite of tools for creating assistants, managing conversation threads with persistent local storage via SQLite, and streaming real-time responses. Designed to give Claude (or other MCP clients) the ability to leverage OpenAI's GPT assistants for enhanced capabilities.
Key Features
Create, list, retrieve, and update OpenAI assistants
Persistent conversation thread management with local SQLite database
Real-time streaming responses for long-running assistant interactions
Integrates with Claude Desktop and other MCP-compatible tools
Lightweight and easy to install via pip or Smithery
Pros & Cons
Pros
- Seamlessly bridges Claude and OpenAI assistants
- Streaming support provides real-time progress updates
- Local thread persistence overcomes OpenAI's lack of thread listing API
- Open source and free to use (no subscription fees)
- Easy installation and configuration for Claude Desktop
Cons
- Requires a valid OpenAI API key, incurring usage costs
- Dependent on OpenAI's service availability and API changes
- Only compatible with MCP-enabled clients like Claude Desktop
- Limited to managing threads locally; cannot sync across devices
Best For
Enabling Claude Desktop to use OpenAI GPT assistants for complex tasksBuilding multi-turn conversations with OpenAI assistants while maintaining thread contextManaging multiple assistant threads across sessions with local persistenceStreaming assistant responses to avoid timeouts in interactive applications
FAQ
What is MCP?
MCP stands for Model Context Protocol, a standard that allows AI clients (like Claude Desktop) to interact with external tools and services. This server implements MCP to let Claude use OpenAI assistants.
How do I install the server?
You can install it via pip: 'pip install mcp-simple-openai-assistant'. Alternatively, use Smithery for automatic installation into Claude Desktop: 'npx -y @smithery/cli install mcp-simple-openai-assistant --client claude'.
What configuration is needed?
Set the environment variable 'OPENAI_API_KEY' with your OpenAI API key. Then add the server configuration to your Claude Desktop config file as shown in the README.
Can I use it with other MCP clients besides Claude Desktop?
Yes, the server follows the MCP standard, so it should work with any MCP-compatible client, but it is primarily designed and tested with Claude Desktop.
How are threads managed?
Threads are stored locally in a SQLite database with custom names and descriptions. This allows you to list, retrieve, and reuse threads across sessions, overcoming the limitation of OpenAI's API which does not support thread listing.