Connect with OAuth. Use https://api.contextbolt.app/mcp, then sign in with your Pro extension account email, enter the email code, and approve access. Existing personal URLs still work for older clients. Full setup and recovery help.
OpenAI’s Codex ships MCP support across the CLI and the desktop app, so you can connect your ContextBolt library and search everything you have saved, web pages included, on X, Reddit, and LinkedIn without leaving the terminal.
The config.toml block
Codex configures everything in TOML, MCP servers included. Open ~/.codex/config.toml:
[mcp_servers.bookmarks]
url = "https://api.contextbolt.app/mcp"
Then run codex mcp login bookmarks. Sign in with the same email as your Pro extension account, enter the email code, and approve the connection. Adding this shared URL alone does not finish sign-in.
The thing to watch is that this is genuinely different from every JSON-based client. There is no mcpServers object to paste into, so a config that works in Cursor or Claude Code gives you nothing to copy here. The section header [mcp_servers.bookmarks] is the part people get wrong, and a malformed header is skipped silently rather than throwing an error.
Start a fresh session
Codex reads config.toml when a session starts. If you edit the file while a session is open, nothing happens and it looks like the config failed.
Quit, start a new session, and ask “what bookmark tools do you have?” before concluding anything is broken.
If it loads but finds nothing
MCP reads from your synced library. Check that Codex and the extension use the same account email, your account has active Pro, and its automatic cloud sync has finished.
Confirm the Pro badge is green in the extension, wait a minute for the first upload, then retry.
Why this is useful in a terminal agent
Codex works across a whole repo, often for a long stretch without you watching closely. Anything that improves the context it starts from pays off across the entire task.
Ground the work first: ask it to check your bookmarks for relevant patterns before it starts refactoring, so the changes build on material you already trust rather than on whatever it infers from the code alone.
Catch up on what you flagged: get_recent_bookmarks covers the “what did I save this week and never read” problem in one question.
Save without breaking flow: find something useful mid-task and it goes into the library with save_bookmark.
The shared OAuth URL is not a secret. If you use a private personal URL for compatibility instead, keep that credential out of public repositories. The ContextBolt bookmarks overview covers what the library does, and connect Claude to your bookmarks walks the same setup in a different terminal agent.
Chrome
X
Reddit
LinkedIn
Claude
Cursor
Codex
ChatGPT