MCP client configuration
The Postern MCP server runs two ways: stdio for local hosts (the host spawns the process) and hosted HTTP (you connect to a running deployment). Pick the snippet for your host.
Install & build
Section titled “Install & build”Requires Node ≥ 18.18.
npm install -g @postern/mcp # or run on demand via npx# stdio — for local hostspostern-mcp
# hosted — MCP Streamable HTTP at POST /mcp (default :8787)postern-mcp --http --port 8787Claude Desktop
Section titled “Claude Desktop”Edit claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/, Windows:
%APPDATA%\Claude\):
{ "mcpServers": { "postern": { "command": "npx", "args": ["-y", "@postern/mcp"], "env": { "POSTERN_API_BASE_URL": "https://api.agents.mszazu.com", "POSTERN_API_KEY": "pk_agent_…" } } }}Running from a local checkout instead of npm:
{ "mcpServers": { "postern": { "command": "node", "args": ["/absolute/path/to/postern/mcp/dist/bin.js"], "env": { "POSTERN_API_KEY": "pk_agent_…" } } }}Claude Code
Section titled “Claude Code”Add the server with one command (stdio):
claude mcp add postern \ --env POSTERN_API_BASE_URL=https://api.agents.mszazu.com \ --env POSTERN_API_KEY=pk_agent_… \ -- npx -y @postern/mcpOr connect to a hosted deployment over HTTP (pass your scoped key as a bearer header):
claude mcp add --transport http postern https://api.agents.mszazu.com/mcp \ --header "Authorization: Bearer pk_agent_…"Cursor
Section titled “Cursor”~/.cursor/mcp.json (global) or .cursor/mcp.json (project):
{ "mcpServers": { "postern": { "command": "npx", "args": ["-y", "@postern/mcp"], "env": { "POSTERN_API_BASE_URL": "https://api.agents.mszazu.com", "POSTERN_API_KEY": "pk_agent_…" } } }}{ "mcpServers": { "postern": { "url": "https://api.agents.mszazu.com/mcp", "headers": { "Authorization": "Bearer pk_agent_…" } } }}What key to use
Section titled “What key to use”Use a scoped agent key (pk_agent_…) or an enrollment key (pk_enroll_…) — never an
org-wide credential. With an enrollment key, the host’s first move is redeem_enrollment, which mints
the agent key it then uses. See Authentication & keys.
- MCP overview & tools — the full tool list and security model.
- wait_for_email — the blocking primitive.
- Authentication & keys — scoped keys explained.