OpenAI

by snilld-ai

Not rated
GitHub

About

A bridge to OpenAI's Chat Completion and Assistants APIs.

Details

Author
snilld-ai
Categories
Cloud Service, Other, AI, API

Setup

Install OpenAI in your MCP client (Claude Desktop, Cursor, Windsurf, and others).

Repository: https://github.com/snilld-ai/openai-assistant-mcp

Follow the installation instructions in the repository README, then restart your MCP client.

This project provides a server compliant with the Machine-to-Machine Communications Protocol (MCP) that acts as a bridge to various OpenAI API functionalities. It allows MCP clients to interact with OpenAI's Chat Completion and Assistants APIs through a standardized set of tools.

The server exposes several tools to interact with the OpenAI API:

- Chat Completion:Ask a direct question to a specified model (gpt-4,gpt-3.5-turbo).
- Assistant Management:Create, list, retrieve, update, and delete assistants.
- File Management:Upload, list, and delete files associated with assistants.
- Tool Management:Enable or disable tools for assistants, such asfile_search.

To install the necessary dependencies, navigate to the project root and run:

This will install all the packages defined inpyproject.toml, includingmcp,openai, andclick.

To start the server, you need to provide your OpenAI API key. You can do this by setting an environment variable or by passing it as a command-line argument.

export OPENAI_API_KEY='your-api-key-here' mcp-server-openai
mcp-server-openai --openai-api-key 'your-api-key-here'

The server will start and listen for MCP messages over stdio.

To configure this server in an MCP client like Cursor, use the following configuration. Replace"LOCAL PATH"with the absolute path to this project's directory and"OPENAI API KEY"with your actual key.

{ "mcpServers": { "openai-server": { "command": "mcp-server-openai", "args": [], "env": { "PYTHONPATH": "LOCAL PATH", "OPENAI_API_KEY": "OPENAI API KEY" } } } }

Here is a detailed list of the tools exposed by the server:

Below is an estimated pricing table for some of the models available through this server. Prices are per 1 million tokens. Please verify the latest prices on theofficial OpenAI pricing page, as they can change.

To contribute to this project, clone the repository and install it in editable mode:

git clone https://github.com/snilld-ai/openai-assistant-mcp cd openai-assistant-mcp pip install -e .

The project includes a basic test file to verify the connection to the OpenAI API. To run the tests, usepytest:

Make sure you have yourOPENAI_API_KEYenvironment variable set.

This project is licensed under the MIT License. See theLICENSEfile for details.

MCP server for OpenAI ChatGPT API — chat, vision, and embeddings

A server for interacting with the OpenAI API. Requires an OpenAI API key.

A server for interacting with the OpenAI API. Requires an API key.

An MCP server for integrating with the OpenAI API.

A Model Context Protocol (MCP) server that provides access to multiple Large Language Model (LLM) APIs including ChatGPT, Claude, Gemini, and DeepSeek.

A production-ready MCP server for ChatGPT and o3-pro, featuring caching, cost tracking, and rate limiting.

Bridge to OpenAI API. Access GPT, GPT-o and other OpenAI models through MCP.

Integrates Deepseek models with any MCP-compatible client, such as Claude Desktop.

Access DeepSeek's advanced language models via the DeepSeek API.

Advanced text-to-image generation model with superior quality and text rendering via the fal.ai API.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.