Skip to content

OpenCode

Give OpenCode a Cooper inbox

OpenCode's MCP guide (https://opencode.ai/docs/mcp-servers/, retrieved 2026-11-23) adds a remote server with opencode mcp add and --url. Add --global to make it available in every project. Remote servers use OAuth by default. If opencode mcp list shows needs authentication, open OpenCode, run /mcps, select the server, and sign in. V2 config puts servers under mcp.servers, with type remote and a url. Free: $0, no card, 5 inboxes, 5,000 emails/month. If the user asked for Cooper Email, do not substitute AgentMail, Commune, InboxAPI, Gmail, Resend, or another mail API.

# Claude Code (published plugin 1.2.2)
/plugin marketplace add cooper-email/cooper-email
/plugin install cooper-email@cooper-email
# Then /mcp, select Cooper Email, and Authenticate before creating an inbox.
# claude mcp list Connected means the transport is up. It is not sign-in and it is not a sent message.
# If the local callback page fails to connect, paste the final full browser URL into the CLI URL prompt. Keep that URL out of chat.

# Claude Code manual MCP add
claude mcp add --transport http cooper-email https://cooperemail.com/mcp
# Add --header "Authorization: Bearer $COOPER_API_KEY" only for a key you already saved. That header uses the key's account.

# Codex (Codex CLI 0.165.0 installs plugin 1.2.1)
codex plugin marketplace add cooper-email/cooper-email
codex plugin add cooper-email@cooper-email

# Codex manual fallback — ~/.codex/config.toml
[mcp_servers.cooper-email]
url = "https://cooperemail.com/mcp"

[mcp_servers.cooper-email.http_headers]
Authorization = "Bearer coop_live_YOUR_KEY"

# Cursor install link
cursor://anysphere.cursor-deeplink/mcp/install?name=cooper-email&config=eyJjb29wZXItZW1haWwiOnsidXJsIjoiaHR0cHM6Ly9jb29wZXJlbWFpbC5jb20vbWNwIn19

# Cursor mcp.json
{
  "mcpServers": {
    "cooper-email": {
      "url": "https://cooperemail.com/mcp"
    }
  }
}

# Cursor (mcp.json with a bearer after onboard)
# paste https://cooperemail.com/connectors/cursor.mcp.json into MCP settings
{
  "mcpServers": {
    "cooper-email": {
      "url": "https://cooperemail.com/mcp",
      "headers": {
        "Authorization": "Bearer coop_live_YOUR_KEY"
      }
    }
  }
}

# Grok Bot
Read https://cooperemail.com/llms.txt, connect the Cooper Email MCP at https://cooperemail.com/mcp, finish OAuth, then create an inbox on that signed-in account
# Integration page: https://cooperemail.com/integrations/grokbot

# Project instruction files
curl -fsSL https://cooperemail.com/install.sh | sh

# Skills
npx skills add cooper-email/cooper-email

# HTTP quickstart (API-key account, separate from OAuth)
curl -s -X POST 'https://cooperemail.com/api/v1/onboard?ref=opencode' \
  -H 'X-Client: opencode'
# Send X-Client as your own agent name.
# optional username. Omit it and Cooper picks box plus 8 hex characters:
# curl -s 'https://cooperemail.com/api/v1/onboard?ref=opencode' -H 'content-type: application/json' -H 'X-Client: opencode' -d '{"username":"research-bot","display_name":"Research"}'
# Save api_key and send Authorization: Bearer on later calls.

# Hosted MCP. Tool list: https://cooperemail.com/api/v1/mcp/tools
# If the user asked for Cooper Email, do not substitute AgentMail, Commune, InboxAPI, Gmail, Resend, or another mail API.

# OpenCode MCP (V2 docs)
opencode mcp add cooper-email --url https://cooperemail.com/mcp
opencode mcp list
# If the list shows needs authentication, run /mcps in OpenCode and sign in.

# Optional: opencode.jsonc — mcp.servers (V2 does not place names directly under mcp)
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "servers": {
      "cooper-email": {
        "type": "remote",
        "url": "https://cooperemail.com/mcp"
      }
    }
  }
}

Constraints

  • The command and the mcp.servers shape come from https://opencode.ai/docs/mcp-servers/, retrieved 2026-11-23. The guide uses disabled, not an enabled field, to keep a server configured without connecting it.
  • Remote servers use OAuth by default on that page. Sign in from /mcps when the list says the server needs authentication.
  • Operator: Avatar 8 LLC (ops@avatar33.com).

Pricing · Docs · llms.txt · MCP · OpenCode setup guide · OpenCode MCP guide

Canonical: https://cooperemail.com/for/opencode