---
title: "How to add MCP Servers to OpenAI’s Codex with Docker MCP Toolkit"
description: "Docker MCP Toolkit connects OpenAI's Codex to MCP servers from Docker's catalog, here the Neo4j Cypher and Neo4j Data Modeling servers."
url: "https://swe.quest/articles/how-to-add-mcp-servers-to-openai-s-codex-with-docker-mcp-toolkit-fe97bcced653f285"
canonical: "https://www.docker.com/blog/connect-codex-to-mcp-servers-mcp-toolkit/"
source: "Docker"
published: "2025-10-17"
difficulty: "medium"
kind: "How-to"
reading_minutes: 9
tags: ["ai-agents","ai-coding","databases","containers"]
---

# How to add MCP Servers to OpenAI’s Codex with Docker MCP Toolkit

A post on [Docker](https://swe.quest/sources/docker.md), published 2025-10-17, 9 min read, How-to. Original: [https://www.docker.com/blog/connect-codex-to-mcp-servers-mcp-toolkit/](https://www.docker.com/blog/connect-codex-to-mcp-servers-mcp-toolkit/)

## Summary

Docker MCP Toolkit connects OpenAI's Codex to MCP servers from Docker's catalog, here the Neo4j Cypher and Neo4j Data Modeling servers. The setup is short: add both servers in Docker Desktop, run \`docker mcp-client configure codex\`, have Codex start a Neo4j container, then enter the connection URL and password in the Cypher server's config. In the demo, gpt-5-codex scrapes Generation I Pokémon data with Python, iterates until its graph model passes the Data Modeling server's validation, loads the data and answers analytical questions through Cypher. The result can be explored in the Neo4j browser console.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [AI for coding](https://swe.quest/tags/ai-coding.md) (AI & ML)
- [Databases](https://swe.quest/tags/databases.md) (Data & databases)
- [Containers](https://swe.quest/tags/containers.md) (Infrastructure)

## Prerequisites

- Docker Desktop ([easy posts on Containers](https://swe.quest/tags/containers.md?difficulty=easy))
- Model Context Protocol basics
- Neo4j and Cypher basics

## Keywords

Docker MCP Toolkit, OpenAI Codex, Model Context Protocol, Neo4j, Cypher, Docker Desktop

## Related posts

- [How to add MCP Servers to Claude Desktop with Docker MCP Toolkit](https://swe.quest/articles/how-to-add-mcp-servers-to-claude-desktop-with-docker-mcp-toolkit-2bef3464ab3fe16c.md): Docker · 2025-10-27 · Medium · 18 min read · AI agents, Containers, AI for coding, Developer tools
  Docker Desktop's MCP Toolkit connects Claude Desktop to containerized MCP servers through a single claude\_desktop\_config.json entry that runs \`docker mcp gateway run\`, a gateway that routes tool calls from Claude to whichever servers are enabled.
- [How to Add MCP Servers to ChatGPT with Docker MCP Toolkit](https://swe.quest/articles/how-to-add-mcp-servers-to-chatgpt-with-docker-mcp-toolkit-8e8db1704dea266e.md): Docker · 2025-12-12 · Medium · 21 min read · AI agents, Containers, LLMs
  Docker MCP Toolkit lets ChatGPT's Developer Mode call real tools by running MCP servers in isolated containers behind a Docker MCP Gateway exposed to ChatGPT via an ngrok tunnel.
- [Dynamic MCPs with Docker: Stop Hardcoding Your Agents’ World](https://swe.quest/articles/dynamic-mcps-with-docker-stop-hardcoding-your-agents-world-a530a7120388ea63.md): Docker · 2025-11-06 · Medium · 11 min read · AI agents, LLMs, Sandboxing & isolation, Containers, Developer tools
  Docker MCP Gateway now exposes primordial tools (mcp-find, mcp-add) that let agents search a curated catalog of 270+ MCP servers, add them to the live session, and trigger OAuth or elicitation flows, instead of hand-editing JSON config and restarting.
- [How to Add MCP Servers to Claude Code with Docker MCP Toolkit](https://swe.quest/articles/how-to-add-mcp-servers-to-claude-code-with-docker-mcp-toolkit-cc8780c7393c09aa.md): Docker · 2025-10-10 · Medium · 13 min read · AI agents, AI for coding, Developer tools, Containers
  Docker MCP Toolkit lets Claude Code reach containerized MCP servers through a single Docker MCP Gateway entry in a project's .mcp.json, connected with one click in Docker Desktop or via \`docker mcp client connect claude-code\`.
- [Building AI Agents with Docker MCP Toolkit: A Developer’s Real-World Setup](https://swe.quest/articles/building-ai-agents-with-docker-mcp-toolkit-a-developer-s-real-world-setup-988aee07496da75c.md): Docker · 2025-08-19 · Medium · 6 min read · AI agents, Containers, LLMs
  A GitHub repository question-answering agent is built by running the GitHub MCP Gateway (docker/mcp-gateway) as a container under Docker Compose and connecting a Python agent to it over streamable-http via MCPTools.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
