codex-bridge
Reads, searches, incrementally syncs, monitors, and hands off local OpenAI Codex session logs, letting other agents inspect Codex transcripts and queue follow-up tasks back to Codex.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
codex-bridge
Zero-dependency MCP server & CLI to search, incrementally read, monitor, and hand off local OpenAI Codex sessions across AI agents.
English | 简体中文
Why
OpenAI Codex is great at heavy engineering work, but its defensive communication ("Note: this does not necessarily mean...", endless caveats) and huge raw JSONL logs make it tiring to read directly.
The idea: let Codex focus on execution, and use Antigravity (AGY), Claude Code, or Cursor as your straight-talking hub agent. codex-bridge connects them locally with zero third-party dependencies.
Related MCP server: transcripts-mcp
Features & How It Works
flowchart LR
C[OpenAI Codex<br/>Local / Remote SSH] -- "~/.codex/*.jsonl" --> B[codex-bridge<br/>Index · Filter · Compact]
B -- "MCP (incremental)" --> H[Hub Agent<br/>AGY / Claude / Cursor]
H -- "handoff (codex queue)" --> CClean & Compact: Turns noisy Codex logs into token-efficient transcripts with automatic branch, commit, file, and error extraction.
Incremental Sync: Fetches only new turns (
only_new) and scopes metadata to the requested slice — no re-reading history.Fast Search & Digests: Local SQLite FTS5 search with optional custom synonyms and persistent session summaries.
Live Status & Handoff: Lightweight
running/idlestatus checks plus one-step task handoff back to Codex viacodex queue.
Quick Start
git clone https://github.com/WWandP/codex-bridge.git
cd codex-bridge
python3 codex_sessions_mcp.py --statusConnect to Your MCP Client
Antigravity (agy)
agy mcp add codex-bridge /usr/bin/python3 /path/to/codex-bridge/codex_sessions_mcp.pyClaude Code
claude mcp add codex-bridge -- python3 /path/to/codex-bridge/codex_sessions_mcp.pyCursor / Windsurf / Generic mcp_config.json
{
"mcpServers": {
"codex-bridge": {
"command": "python3",
"args": ["/path/to/codex-bridge/codex_sessions_mcp.py"]
}
}
}CLI Shortcuts
python3 codex_sessions_mcp.py --session-status latest # Check running/idle & latest commit
python3 codex_sessions_mcp.py --search "keyword" # Search past sessions
python3 codex_sessions_mcp.py --read latest --last-turns 3
python3 codex_sessions_mcp.py --read latest --export recap.mdWant a ready-to-use agent workflow prompt? See
examples/skill/SKILL.md.
Contributors
@WWandP — Creator & maintainer
Antigravity (Google DeepMind) — Co-developer & design collaborator
License
MIT © WWandP
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Shared memory MCP server for Claude Code, Codex, Gemini CLI and Cursor. Cited, editable.
Search your AI chat history (ChatGPT, Claude, Codex) from any MCP client. Remote, private, read-only
System-of-record notebook for AI coding agents: pages, datastores, tasks, skills over MCP.
A paid remote MCP for OpenAI Codex agent coordination MCP, built to return verdicts, receipts, usage
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceMCP server for unified full-text search across chat histories from Claude Code, Codex, Cursor CLI, and Antigravity CLI, using SQLite FTS5. Provides read-only tools to search sessions, list conversations, and retrieve session details.MIT
- AlicenseNot gradedqualityCmaintenanceEnables searching and reading local Cursor, Claude Code, and Codex session transcripts from any MCP client, with fuzzy, regex, and full-text search, plus optional semantic search.14MIT
- AlicenseNot gradedqualityBmaintenanceEnables coding agents to store and retrieve source-backed context locally in SQLite, with FTS5 search, optional reranking, and stdio MCP tools.1MIT

KruschStackofficial
AlicenseCqualityBmaintenanceA local SQLite-backed MCP server that gives AI coding agents persistent cross-session memory and invariants, Turn-0 workspace grounding with spin-loop and output-defect guards, and two-phase-commit staging so file edits are audited and applied atomically. It also exposes AST symbol/call-graph search, bounded page memory, and workspace document retrieval, letting agents work safely across sessions without any cloud dependency.39317 npm3MIT