Repository navigation
Where does Codex keep MCP servers, and how do I add one? #2
Answered
by
Aneesh495
nemesisLLC
asked this question in
Q&A
|
Short answer: in codex mcp add context7 -- npx -y @upstash/context7-mcp
codex mcp add notion --url https://mcp.notion.com/mcp
codex mcp login notionEditing
|
Answered by
Aneesh495
Nov 26, 2026
Replies: 1 comment
|
Codex CLI stores its MCP server configuration in codex mcp add <name> -- <command> [args...]For example: [mcp_servers.my_server]
command = "npx"
args = ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/dir"] |
0 replies
Answer selected by
nemesisLLC
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Codex CLI stores its MCP server configuration in
~/.codex/config.toml(under[mcp_servers.<name>]), or you can manage them via the CLI:For example: