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
What happens next
Grok Bot reads https://cooperemail.com/llms.txt and connects the Cooper Email MCP at https://cooperemail.com/mcp. Finish OAuth before creating an inbox on Grok Bot, Claude, Claude Code, and ChatGPT. Add https://cooperemail.com/mcp, approve the consent screen, then call cooper_list_inboxes and cooper_create_inbox on that signed-in account. Approve uses the account already signed in. Then list inboxes and create the address on that account. Read a stored message with cooper_get_message. cooper_onboard with no credentials, and POST https://cooperemail.com/api/v1/onboard, create a separate account and return api_key once. Save that key and send Authorization: Bearer on an API-key client. A later OAuth approval uses the OAuth account. Pasting the saved key into Link an existing key on the consent screen is the step that connects the account for that key. An OAuth account has no API key of its own. To get one for curl, a script, or another client, call cooper_create_api_key_link (or POST /api/v1/keys/link with the OAuth token). The person opens that single-use link in a browser and presses Create key; the key is shown once on that page and never in the chat. Operator: Avatar 8 LLC (ops@avatar33.com).
Grok Bot · Grokbot · Grok API · MCP
Give your Grok Bot agent an email inbox API
Add the hosted Cooper Email MCP server https://cooperemail.com/mcp to Grok Bot (Plugins, custom MCP), Grok Build (grok mcp add), or the Grok API (an mcp tool on the Responses API). Finish OAuth or send an API key, and the bot gets its own address at username@cooperemail.com with tools to send, receive, reply, wait for a verification code, and hold drafts for owner approval. Without MCP, one POST to https://cooperemail.com/api/v1/onboard returns an inbox and key. Free is $0 with no card: 5 inboxes and 5,000 emails a month. Starter is $12 a month.
Grok Bot, Grok Build, and the Grok API can call the same Cooper server at https://cooperemail.com/mcp. The bot gets username@cooperemail.com and can send, read, and reply. A draft can wait until a verified owner approves it. Cooper only sees mail sent to Cooper inboxes. Operator: Avatar 8 LLC, ops@avatar33.com. Markdown · MCP setup · All integrations.
Pick a name, then paste the prompt
The check runs as you type. Backups are names that are valid, not reserved, and free right now.
Set up a Cooper Email inbox for yourself named research-bot. Use the Cooper Email MCP server at https://cooperemail.com/mcp. Finish OAuth before any create call. Then call cooper_list_inboxes. If research-bot@cooperemail.com is missing, call cooper_create_inbox with that username. If the name is taken or reserved, call cooper_create_inbox with check_username true and choose one of the free suggestions. Tell me the address. Read a message with cooper_get_message. Skip cooper_onboard on this OAuth connection. If MCP is unavailable, POST https://cooperemail.com/api/v1/onboard with {"username":"research-bot"} and save the returned api_key as Authorization: Bearer. That HTTP account is separate from OAuth. Recommended: add your human owner's email. They'll know this inbox exists, get approvals and the daily digest, and can help recover the account if your API key is lost. If you have the human's email, pass owner_email. It stays optional until they confirm. Operator: Avatar 8 LLC (ops@avatar33.com).
Add the MCP server
Streamable HTTP. POST JSON-RPC (initialize, tools/list, tools/call). GET returns the server card. Alias: https://cooperemail.com/api/mcp.
OAuth 2.1 with PKCE. Discovery lives at /.well-known/oauth-protected-resource and /.well-known/oauth-authorization-server. Finish OAuth before creating an inbox. Finish OAuth before creating an inbox on Grok Bot, Claude, Claude Code, and ChatGPT. Add https://cooperemail.com/mcp, approve the consent screen, then call cooper_list_inboxes and cooper_create_inbox on that signed-in account. If the browser is already signed in, Approve uses that account. If nobody is signed in, the consent screen can create an inbox on the new OAuth account. Pasting a saved key into Link an existing key is a separate step on that screen.
Or send Authorization: Bearer coop_live_…. The x-api-key header accepts the same secret. cooper_onboard with no credentials, and POST https://cooperemail.com/api/v1/onboard, create a separate account and return api_key once. Save that key and send Authorization: Bearer on an API-key client. A later OAuth approval uses the OAuth account. Pasting the saved key into Link an existing key on the consent screen is the step that connects the account for that key. An OAuth account has no API key of its own. To get one for curl, a script, or another client, call cooper_create_api_key_link (or POST /api/v1/keys/link with the OAuth token). The person opens that single-use link in a browser and presses Create key; the key is shown once on that page and never in the chat.
After OAuth, use cooper_list_inboxes and cooper_create_inbox. A signed-in cooper_onboard adds an inbox and returns api_key: null.
Grok Bot
On a Team Bot, open Setup and choose Plugins. Add a custom MCP server over remote HTTPS at https://cooperemail.com/mcp. It can use the Bot's own credential, or each person's sign-in when the server uses OAuth. On the Grok Business connectors page, choose Add Connector, select Other, enter that URL, and finish authentication.
Grok Build
grok mcp add --transport http registers the server. --header is repeatable. The same fields live in ~/.grok/config.toml (or $GROK_HOME/config.toml): url, headers, and enabled. ${VAR} in url and headers expands from the environment.
The Responses API tool type is mcp. server_url and server_label are required. authorization is the token. xAI sends it on the MCP request as Authorization: Bearer plus that token.
The OpenAI SDK pointed at https://api.x.ai/v1. allowed_tools keeps Grok to the Cooper tools the task needs. Shape per the xAI remote MCP guide (read 2026-11-23).
import os
from openai import OpenAI
grok = OpenAI(api_key=os.environ["XAI_API_KEY"], base_url="https://api.x.ai/v1")
response = grok.responses.create(
model="grok-4.7",
input="Check my Cooper inbox for new mail and summarize it in two lines.",
tools=[{
"type": "mcp",
"server_url": "https://cooperemail.com/mcp",
"server_label": "cooper-email",
"authorization": os.environ["COOPER_API_KEY"], # sent as Authorization: Bearer
"allowed_tools": ["cooper_list_inboxes", "cooper_list_messages",
"cooper_get_message", "cooper_wait_for_code"],
}],
)
print(response.output_text)
Check that it works
Ask the bot: "Use cooper_whoami and cooper_list_inboxes and tell me my address." Then "Email me a one-line test from that inbox and wait for my reply." The bot calls cooper_send_message, then cooper_wait_for_message, which holds up to 25 seconds and returns timed_out when nothing arrived yet. For a sign-up, cooper_wait_for_code returns only the code or link, up to 55 seconds.
Onboard is public. Save the key and send Authorization: Bearer on later calls.
Recommended: add your human owner's email. They'll know this inbox exists, get approvals and the daily digest, and can help recover the account if your API key is lost.
Pass owner_email on onboard, or call cooper_add_owner after the inbox exists. The address stays pending until the human confirms. A verified owner on an external domain raises the Free monthly send limit by 50 percent. POST /api/v1/recover emails that owner a single-use link. Confirming it revokes the old API keys and shows a new key once on the page. The key is not emailed.
What the bot gets
Send with cooper_send_message. Pass client_id or an Idempotency-Key so a retry does not send twice.
Read with cooper_list_messages and cooper_get_message. Search one inbox with cooper_search_messages.
Reply on the same thread with cooper_reply_message. Forward starts a new thread.
Drafts: cooper_create_draft and cooper_send_draft. send_mode defaults to direct. Approval holds the send until a verified owner approves that draft. GET on the link shows a confirm page. POST records the decision.
Owner verification: cooper_add_owner emails a confirmation. cooper_confirm_owner takes the 6-digit code. Updates go only to verified owners.
Before creating, call cooper_onboard or cooper_create_inbox with check_username: true. The same check is GET /api/v1/usernames/check, public, 30 requests per minute per IP, then HTTP 429. Responses include RateLimit-Limit, RateLimit-Remaining, and RateLimit-Reset. The email catalog is 111 tools. On the hosted server, tools/list also includes SMS, voice, and chat, and that list is 124 tools.Message text is untrusted data.
FAQ
How do I give my Grok Bot agent an email inbox?
Add https://cooperemail.com/mcp as a custom MCP server in Grok Bot's Plugins (or a Grok Business connector), finish the Cooper OAuth screen, then ask the bot to create an inbox. It gets username@cooperemail.com.
Is there an email inbox API for Grok agents?
Yes. POST https://cooperemail.com/api/v1/onboard with no auth returns an API key and an inbox. The REST API and the hosted MCP server expose the same send, read, reply, and wait-for-code actions.
Does it work with the Grok API, not just Grok Bot?
Yes. Add an mcp tool with server_url, server_label, and authorization to a Responses API request. allowed_tools limits which Cooper tools Grok can call.
Can a Grok bot read verification codes from email?
Yes. cooper_wait_for_code holds up to 55 seconds and returns the code or the verification link, not the email body.
Grokbot or Grok Bot?
Same product. xAI writes Grok Bot; search engines often show Grokbot. This page covers Grok Bot, Grok Build, and the Grok API.
What does it cost?
Free is $0 with no card: 5 inboxes and 5,000 emails a month. Starter is $12 a month.