
Gpt Chat
io.github.codeChapPublished by GitHub account codeChapv0.1.0Updated Oct 24, 2026
MCP server for the OpenAI ChatGPT API — chat, vision, and embeddings
Overview
A local MCP server that connects an assistant to the OpenAI ChatGPT API for chat completions, image analysis, embeddings and model listing.
- What you can do
- Send chat completion requests with optional multi-turn history, system prompt, temperature, token limit and JSON-schema structured output, with model selection (default gpt-4o). Analyse an image from an http or https URL with a text prompt and a low or high detail level. Generate text embeddings for a string or array of strings. List available OpenAI models and their IDs.
- When to use it
- Useful when you want an assistant to call OpenAI models directly from a local setup: drafting or continuing conversations, describing or analysing images by URL, producing embeddings for search or clustering, or checking which models are available.
- Requirements
- Runs as a local process over stdio. Requires a Rust toolchain to build the binary and an OpenAI API key from platform.openai.com, placed in a config file at ~/.config/mcp-server-gpt-chat/config.toml. Network access to the OpenAI API is needed. The binary path is registered in the MCP client configuration.
Installation
In SourceWeft
- Open Gpt Chat in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
mcp-server-gpt-chat
An MCP (Model Context Protocol) server for the OpenAI ChatGPT API. Built in Rust, exposes chat completions, vision, embeddings, and model listing as MCP tools.
Communicates via stdio using JSON-RPC 2.0, like all MCP servers.
Tools
chat
Send a chat completion request. Supports multi-turn conversations via a JSON message history array, system prompts, structured output via JSON schema, temperature control, and model selection.
Parameters:
chat_with_vision
Analyse an image using ChatGPT's vision capabilities.
Parameters:
embedding
Generate text embeddings.
Parameters:
list_models
List all available OpenAI models. No parameters.
Prerequisites
- Rust (edition 2024)
- An OpenAI API key from platform.openai.com
Setup
Create the config file:
Create ~/.config/mcp-server-gpt-chat/config.toml:
Build
This produces target/release/gpt-chat.
For development:
MCP Configuration
Add to your Claude Desktop config (~/.config/Claude/claude_desktop_config.json):
Project Structure
License
MIT
Source: README.md at commit 1e8a772
Tools
0Version history
1- v0.1.0LatestSep 16, 2026
Score
40% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
Declare a license in the repository or the registry entry.