Skip to main content
How-toDraft · not yet verified

ChatGPT and OpenAI Integration

Connect ChatGPT and OpenAI's APIs to an eMemory stack over MCP: what each can reach, and the credential each can send.

The endpoint, client key and agent profile are as in Claude integration.

Which OpenAI surface can reach which stack​

SurfaceCalls the server fromReaches localhostSends a client key
OpenAI Agents SDK (MCPServerStreamableHttp)Your own processYesYes, as a header
Responses API, mcp toolOpenAI's serversNo; the server must be on the public internetauthorization field, an access token
ChatGPT, developer modeOpenAI's serversNoOAuth or no authentication only

OpenAI Agents SDK​

The SDK connects from your process, so it reaches a stack on this machine.

import os
from agents.mcp import MCPServerStreamableHttp

ememory = MCPServerStreamableHttp(
name="everythingmemory",
params={
"url": "http://localhost:8765/mcp",
"headers": {"Authorization": f"Bearer {os.environ['EMEMORY_KEY']}"},
},
)

Source: OpenAI Agents SDK, MCP.

Responses API​

The mcp tool is called by OpenAI's servers, so the stack must be published over HTTPS.

{
"type": "mcp",
"server_label": "everythingmemory",
"server_url": "https://<your host>/mcp",
"authorization": "<client key>",
"require_approval": "never"
}

Unverified: that the authorization value reaches the engine as Authorization: Bearer <client key>. Source: OpenAI, Connectors and MCP servers.

ChatGPT​

In developer mode (Settings › Apps › Advanced settings), ChatGPT adds a remote MCP server as an app. It offers OAuth or no authentication, not a fixed client key. A self-hosted stack published to the internet must run with authentication on, so ChatGPT can connect only to an engine that offers OAuth: eMemory SaaS (see authentication with eMemory SaaS) or a stack configured for your own identity provider. Source: OpenAI, ChatGPT developer mode.

First check​

Have the agent call e_property {"action": "list"}. A reply listing labels shows the tools are connected.