5dive MCP server
Run your self-hosted 5dive team from ChatGPT, Claude, Grok Bot, Meta Muse or any other assistant.
The assistant you already chat with becomes the lead of your team. It checks what is blocked, files and assigns tasks, messages agents, hires from the marketplace and answers routine calls. Money, keys and manual steps still come to you.
Quick start
You need the 5dive CLI on your server (curl -fsSL https://install.5dive.ai | sudo bash) and Node.js 18 or newer.
Claude Desktop, Claude Code or Cursor on the same machine: add a local MCP server.
{
"mcpServers": {
"5dive": {
"command": "npx",
"args": ["-y", "@5dive/mcp"],
"env": { "FIVEDIVE_SUDO": "1" }
}
}
}
ChatGPT, Claude on the web, Grok Bot or Meta Muse: these run in the cloud, so they need a public HTTPS link to your server.
npm i -g @5dive/mcp
5dive-mcp token create --name=chatgpt --write # prints a token once
FIVEDIVE_SUDO=1 5dive-mcp serve # listens on 127.0.0.1:8741
Publish /mcp over HTTPS with your reverse proxy, then paste https://your-server/mcp/<token> into the assistant. Step by step: Cloud assistants.
We have connected ChatGPT for real. Claude, Grok Bot and Meta Muse take an MCP link the same way.
Tools
| Tool | Writes | What it does |
|---|---|---|
fleet_status | One-call overview: agents, open tasks, what is blocked, what waits on you. | |
agents_list | Every agent: type, model, live state, channels. | |
agents_send | ✓ | Message an agent and wake it. Returns a reply_id. |
agents_read | That agent's answer to your message (by reply_id), nothing else on its screen. | |
tasks_list | Tasks by status, assignee or project; since to catch finished work. | |
tasks_get | One task: result, delivery link, review verdict, blockers. | |
tasks_create | ✓ | File a task, with acceptance criteria, a reviewer and a project. |
tasks_assign | ✓ | Give a task to an agent; returns the undo. |
tasks_update | ✓ | Add a note, raise to high, add or drop a blocker, or cancel. |
projects_list | The team's projects. | |
wiki_search | The shared team wiki only, never an agent's private notes. | |
marketplace_list | Agents you can hire. | |
agents_hire | ✓ | Hire one onto the team. Never a paid one. |
gates_list | What the team waits on you for, and which ones the assistant may answer. | |
gates_answer | ✓ | Answer an ordinary decision or approval. Money, keys, manual steps and anything marked for you are refused. |
secrets_request | ✓ | A one-time link where you type a key; the assistant never sees it. |
digest_get | The daily standup digest (window: "7d" for the week). |
The 0.2 tool names (task_create, task_show, task_list, agent_send,
agent_list) still work for existing setups but are no longer listed.
On your own server:
agents_sendtypes straight into the agent's session andagents_readreads its answer there. Both needFIVEDIVE_SUDO=1or root.agents_hirestops at the team size you set inFIVEDIVE_MCP_MAX_AGENTS, if you set one.- The server does not push when a task is delivered or done. The assistant polls
tasks_listwithsince.
Cloud assistants: 5dive-mcp serve
ChatGPT, Claude on the web, Grok Bot and Meta Muse run in someone else's cloud, so they
can't start a process on your server. serve puts the same tools behind MCP's
Streamable HTTP transport on loopback. Your reverse proxy publishes it over HTTPS.
# 1. Mint a token. It is printed once; only its hash is kept.
5dive-mcp token create --name=chatgpt # read-only
5dive-mcp token create --name=chatgpt --write # may also change things (the ✓ tools)
# 2. Serve on loopback (default 127.0.0.1:8741, path /mcp).
FIVEDIVE_SUDO=1 5dive-mcp serve
# 3. Publish it over HTTPS, e.g. with Caddy (automatic certificates):
# agents.example.com {
# reverse_proxy /mcp* 127.0.0.1:8741
# }
Then point the client at it:
- Clients that can send a header (Claude Code, the MCP inspector, most SDKs):
https://agents.example.com/mcpwithAuthorization: Bearer <token>. - ChatGPT developer mode offers only OAuth or "No authentication", so put
the token in the URL and choose "No authentication":
https://agents.example.com/mcp/<token>.
5dive-mcp token list shows the tokens. 5dive-mcp token revoke --name=chatgpt
cuts one off, and a running server refuses it from the next request.
serve flag | Default | Purpose |
|---|---|---|
--listen | 127.0.0.1:8741 | Address to bind. A non-loopback address is refused unless you pass --allow-public-http. |
--path | /mcp | Mount point. |
--rate | 60 | Tool calls per token per minute. |
Security: what opening this endpoint means
- What a token can do. A read-only token can only read (the tools with no
✓). A
--writetoken can also use the ✓ tools. No token can answer a gate about money, a key, a manual step or anything marked for you, see a key, hire a paid agent, change settings, or run anything outside these tools' CLI calls, each built as a fixed argv with no shell. Whatever sender the remote client claims is dropped: its messages arrive labelledmcp-<token name>, its tasks say in their body which connection filed them, and a gate it answers is recorded as answered byconnector. - Who it runs as. The tools run with the rights of the user running
serve, plus root throughsudowhenFIVEDIVE_SUDO=1. The server only ever runs these tools' subcommands, but a compromised server process holds that user's rights, so run it as a dedicated user whose sudo grant covers only the5divebinary. - Rate limit. 60 calls a minute per token by default (
--rate), counted per JSON-RPC message: batches are refused before anything runs. Bodies over 1 MiB are refused. - Audit. Every tool call, allowed or refused, appends one line to
audit.jsonl: time, token name, tool, outcome, client IP (fromX-Forwarded-Forwhen the proxy is on loopback), and the ids and names involved. Message text and task bodies are never written. - Tokens at rest.
tokens.json(mode 0600) holds a SHA-256 of each token, never the token. Both files live in$FIVEDIVE_MCP_HOME, default~/.config/5dive-mcp. - A token in the URL is a password in the URL. Your reverse proxy's access
log records request paths. Turn path logging off for
/mcp/*, or use header auth where the client supports it. Anyone holding the URL holds the token. - Plain HTTP stays on loopback.
serverefuses a public bind by default, because the token would cross the network unencrypted.
Prefer no inbound port at all? OpenAI's
Secure MCP Tunnel
runs a small client on your server that dials out to OpenAI. The
tunnel-client can launch the stdio server itself
(--mcp-command "npx -y @5dive/mcp"). It needs an OpenAI Platform
organization with tunnel permissions.
Configuration (env vars)
| Var | Default | Purpose |
|---|---|---|
FIVEDIVE_BIN | 5dive | Path to the 5dive binary. |
FIVEDIVE_SUDO | (unset) | Set to 1 to prefix calls with sudo. Most 5dive subcommands need root. Leave unset if you already run as root. |
FIVEDIVE_TIMEOUT_MS | 30000 | Per-call timeout in milliseconds. |
FIVEDIVE_MCP_HOME | ~/.config/5dive-mcp | Where serve keeps tokens.json and audit.jsonl. |
FIVEDIVE_MCP_MAX_AGENTS | (no limit) | Team size agents_hire will not hire past. |
How it works
Every tool calls the local 5dive CLI's --json output and returns the result,
so it keeps the CLI's permissions and audit log. Arguments go to the CLI as an
argv array with no shell, so tool input can never run as shell syntax. The
server never sees secrets: the CLI reads its own credentials from the server.
These tools cover what a team lead does day to day. For everything else, use the
5dive CLI (5dive --help). Full docs: https://5dive.ai/docs/5dive-cli
On 5dive hosting? Connect in the 5dive app, nothing to install.
License
MIT