How can I connect MCP Memory Service (Cloudflare-hosted) with ChatGPT? #377
-
|
I’m currently using the MCP Memory Service hosted via the Cloudflare option, and I’ve successfully set up and verified that the memory service itself is running correctly. What I’m struggling with is understanding how to connect this MCP memory service with ChatGPT (or a ChatGPT-based client/agent). If anyone has implemented this already, or if there’s documentation or a reference I may have missed, I’d really appreciate being pointed in the right direction. Thanks in advance for any help or guidance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
How to Connect Your Cloudflare MCP Memory Service to ChatGPTGreat news! ChatGPT has full MCP support as of September 2025, so you can connect your Cloudflare-hosted MCP Memory Service directly. Quick Setup GuideStep 1: Enable ChatGPT Developer Mode
Requirements:
Step 2: Add Your MCP Server
Configuration Example: {
"name": "MCP Memory Service",
"url": "https://your-cloudflare-worker.workers.dev/mcp",
"transport": "streaminghttp",
"auth": {
"type": "bearer",
"token": "your-api-key"
}
}Important URLs:
Step 3: Test the ConnectionOnce added, ChatGPT will have access to all your MCP Memory Service tools:
Authentication OptionsChatGPT MCP supports three authentication methods: Option 1: Bearer Token (Recommended) {
"auth": {
"type": "bearer",
"token": "your-cloudflare-api-key"
}
}Option 2: OAuth 2.1 {
"auth": {
"type": "oauth",
"client_id": "your-client-id",
"authorization_url": "https://your-worker.workers.dev/oauth/authorize"
}
}Option 3: No Authentication {
"auth": {
"type": "none"
}
}Supported Transport ProtocolsChatGPT MCP supports:
Verification StepsAfter adding your MCP server:
TroubleshootingConnection FailedCheck 1: Verify Endpoint curl -i https://your-worker.workers.dev/api/health
# Should return 200 OKCheck 2: Test MCP Endpoint curl -i https://your-worker.workers.dev/mcp
# Should return MCP protocol responseCheck 3: Authentication curl -H "Authorization: Bearer your-api-key" \
https://your-worker.workers.dev/api/health
# Should return 200 OK if auth is correctCORS IssuesIf you see CORS errors, ensure your Cloudflare Worker has proper CORS headers: // In your Cloudflare Worker
headers: {
"Access-Control-Allow-Origin": "https://chat.openai.com",
"Access-Control-Allow-Methods": "GET, POST, OPTIONS",
"Access-Control-Allow-Headers": "Content-Type, Authorization"
}Authentication Errors
What You GetWith MCP integration, ChatGPT can:
Documentation & ResourcesOpenAI MCP Documentation: MCP Memory Service Documentation: Additional Reading: Need More Help?If you run into issues:
The community here can help troubleshoot specific configuration issues! TL;DR: Enable Developer Mode in ChatGPT → Add your Cloudflare MCP endpoint → ChatGPT now has full access to your memory service 🎉 |
Beta Was this translation helpful? Give feedback.
How to Connect Your Cloudflare MCP Memory Service to ChatGPT
Great news! ChatGPT has full MCP support as of September 2025, so you can connect your Cloudflare-hosted MCP Memory Service directly.
Quick Setup Guide
Step 1: Enable ChatGPT Developer Mode
Requirements:
Step 2: Add Your MCP Server
Configuration Example:
{ "name": "MCP Memory Service",