Creates a new OpenAI assistant with specified instructions
Lists existing OpenAI assistants
Modifies an existing OpenAI assistant
Starts a new conversation thread with an assistant
Sends a message to an assistant and initiates processing
Retrieves the response from an assistant after processing
This MCP server bridges Claude with OpenAI's assistant capabilities, allowing Claude to create, manage, and converse with OpenAI assistants. It implements a two-stage approach to handle potentially long response times from OpenAI assistants, making it practical for real-world use. The integration provides a seamless way for Claude to leverage specialized OpenAI assistants for specific tasks, expanding Claude's capabilities through this complementary AI service. Users can create new assistants with custom instructions, manage existing ones, and conduct conversations through Claude's interface.
The OpenAI Assistant Integration MCP allows Claude to create and interact with OpenAI's assistants. This integration enables Claude to leverage specialized OpenAI assistants for specific tasks, expanding its capabilities through complementary AI services.
The easiest way to install this MCP is through Smithery:
npx -y @smithery/cli install mcp-simple-openai-assistant --client claude
If you prefer to install manually:
Install the package using pip:
pip install mcp-simple-openai-assistant
Configure Claude Desktop by adding the MCP server to your configuration file.
This MCP requires an OpenAI API key to function. You'll need to add this to your Claude Desktop configuration.
Add the following to your Claude Desktop configuration:
{
"mcpServers": {
"openai-assistant": {
"command": "python",
"args": ["-m", "mcp_simple_openai_assistant"],
"env": {
"OPENAI_API_KEY": "your-api-key-here"
}
}
}
}
The Windows configuration requires specifying the full path to your Python executable:
{
"mcpServers": {
"openai-assistant": {
"command": "C:\\Users\\YOUR_USERNAME\\AppData\\Local\\Programs\\Python\\Python311\\python.exe",
"args": ["-m", "mcp_simple_openai_assistant"],
"env": {
"OPENAI_API_KEY": "your-api-key-here"
}
}
}
}
Note: The Python path may differ on your system. You can find your Python path by running where python
in Command Prompt.
Once configured, Claude can use the OpenAI Assistant Integration to:
The MCP handles all communication with the OpenAI API, including managing assistants, threads, and message handling.
This MCP implements a two-stage approach to handle potentially long response times from OpenAI assistants:
This approach works around timeout limitations in the current MCP protocol implementation.
For developers who want to contribute or modify the MCP:
Clone the repository:
git clone https://github.com/andybrandt/mcp-simple-openai-assistant
Navigate to the directory:
cd mcp-simple-openai-assistant
Install in development mode:
pip install -e .