Skip to main content
The Scribe CLI (@scribemail/cli) brings the full Scribe tool surface to your machine. It has two faces:
  • A local MCP serverscribe mcp serves the exact same tools as the hosted MCP server to any agent that can launch a command (Claude Code, Claude Desktop, Cursor, and any stdio MCP client), running as you after a single browser sign-in.
  • A regular command line — every tool is also a subcommand (scribe signatures list, scribe campaigns schedule), with JSON output built for scripts and shells.
Both are generated from the same code as the hosted server at mcp.scribe-mail.com, so the tools, names, and behavior never drift.

Install and sign in

1

Install from npm

Requires Node.js 20 or newer.
2

Sign in with your browser

Your browser opens and you sign in with your Scribe account — no API key to create or paste. Credentials are stored in ~/.config/scribe/credentials.json with owner-only permissions and refresh automatically.
3

Check the session

Shows the signed-in user, workspace, and token state.
The signed-in member must be a workspace owner or admin, and the workspace plan must include API access. One login is bound to one workspace — run scribe login again to switch.

Serve a local agent over MCP

For clients configured with JSON (Claude Desktop, Cursor, and others):
Prefer the CLI over the hosted endpoint when your agent runs locally and you want tool calls to run as your already-signed-in terminal session, or when your client only speaks stdio. The hosted endpoint (see Connect your assistant) remains the right choice for chat assistants like Claude on the web and ChatGPT.

Use it from the shell

Results are JSON on stdout; errors are readable text on stderr.
Useful conventions:
  • scribe tools lists every MCP tool and its CLI command; scribe call <tool_name> --json '{...}' calls any tool by its exact MCP name.
  • Complex fields like signature content trees accept inline JSON, @file, or - for stdin. --json can supply the whole arguments object, and explicit flags override it.
  • Booleans are --flag / --no-flag; leaving both off omits the field, so partial updates never overwrite values by accident.
  • Exit codes: 0 success, 1 API or tool error, 2 usage error, 3 not signed in.

Commands by area

The per-tool behavior is identical to the MCP tools — see the Tools reference.

Working over SSH

Signing in needs a browser that can reach 127.0.0.1 on the machine running the CLI. On a remote machine, forward the callback port and print the URL instead of opening a browser:
Then open the printed URL in your local browser.

Next steps

Tools reference

Every Scribe tool, grouped by area

Skills

Give your assistant the full Scribe workflow

Troubleshooting

Fix connection and tool issues

API reference

The REST API behind the CLI and MCP server