oracle-tmux-mcp
MCP server that gives AI agents a live, tmux-backed messaging mesh for instant message delivery without polling.
README
oracle-tmux-mcp
MCP server that gives AI agents a live, tmux-backed messaging mesh: every agent gets its own tmux pane, and messages appear there instantly — no polling, no manual "check my messages" round trip.
Why this exists
oracle-messages (the file-backed message bus) requires the recipient to
poll (peer list, peer monitor) or call sync_messages to discover new
messages. This server flips that: tmux_send/tmux_broadcast push the
message into the recipient's tmux pane the moment they're called, so a
human (or another process) watching that pane sees it land live.
Message data is still properly managed, not just printed to a terminal:
every send is recorded to a per-agent JSONL log (tmux_history queries it),
and the tmux pane is just a live view of the same underlying data.
Tools
tmux_register_agent(name)— pre-create an agent's pane (optional; send/broadcast self-provision)tmux_send(from, to, body)— deliver to one agent, shows up instantlytmux_broadcast(from, body)— deliver to every registered agenttmux_list_agents()— rostertmux_history(agent, limit?)— structured message history (the source of truth)tmux_attach_info(agent)— the shell command to attach a terminal directly to that agent's pane
Requirements
- Node 20+
tmux— on Windows, via WSL (wsl --install, thensudo apt install tmuxinside it)
Setup
npm install
npm run build
Register with an MCP client (e.g. Claude Code)
Add to .mcp.json:
{
"mcpServers": {
"oracle-tmux": {
"command": "node",
"args": ["D:/Projects/Github/Oracle-Ecosystems/Oracle-tmux-mcp/dist/index.js"]
}
}
}
Env
ORACLE_TMUX_SESSION— tmux session name (defaultoracle)ORACLE_TMUX_DISTRO— WSL distro name, Windows only (defaultUbuntu)ORACLE_TMUX_MCP_DIR— where mailbox/history files live (default~/.oracle-tmux-mcp/mail)ORACLE_TMUX_WATCH_SCRIPT— override path toscripts/watch.sh
How the live pane actually works
Each pane runs scripts/watch.sh <agent> <mailbox-file>, a small polling
loop (300ms) that prints newly-appended bytes. This is deliberately not
tail -F: this server runs on Windows and writes via Node's fs, while the
tmux pane runs inside WSL reading the same file over the DrvFs /mnt/c/...
mount. WSL2's DrvFs does not reliably fire inotify events for changes made
from the Windows side, so tail -F picks up whatever's in the file at
attach time but silently misses every append after that (confirmed by
testing). A dumb byte-offset poll sidesteps inotify entirely and is correct
regardless of which side writes.
Watch a conversation
wsl.exe -d Ubuntu -- tmux attach -t oracle # see all agents' panes, Ctrl-b w to switch
Or use the exact command tmux_attach_info returns for one agent.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.