Grok Bot
Getting started
Grok Bot is xAI’s always-on agent product. Out of the box a bot can read the mailbox you connect via Gmail or Outlook, but the bot has no address of its own. AgentMail gives each bot a real inbox with its own address, threading, inbound webhooks, and reply-to-message. Setup takes a few minutes.
AgentMail is an official Cursor plugin. Because Grok Bot ships with the Cursor plugin browser, AgentMail appears there natively — no custom MCP setup needed for the standard install.
The same AgentMail MCP server serves all three of xAI’s agent surfaces: Grok Bot (the UI-based always-on teammate on macOS, Windows, iOS), Grok Build (the CLI coding agent), and the Grok API (for developers building their own agents on grok-4.6).
Note on naming: xAI’s official product is Grok Bot (two words). Community and search engines usually spell it Grokbot (one word). This page uses both.
Install
Grok Bot
Grok Build
Grok API
Recommended — install the official plugin.
- Open Grok Bot and go to Settings → Plugins, or open grok.com/connectors in a browser.
- Search for AgentMail in the plugin browser.
- Click Install.
- Your browser opens an AgentMail OAuth authorization screen. It identifies the requesting app as Cursor, not Grok Bot, because Grok Bot uses Cursor’s plugin plumbing. Click Allow.
- The connector card should now show 24 tools.
Fallback — add as a custom MCP connector (for accounts where the plugin browser is restricted):
- Go to Settings → Plugins → Add Custom MCP, or grok.com/connectors → New Connector → Custom.
- URL:
https://mcp.agentmail.to/mcp - Header name:
x-api-key. Header value: your AgentMail API key from the AgentMail Console. - Save.
Verify installation
Start a new bot (Grok Bot), Grok Build session, or Grok API request and ask:
Use the AgentMail tools to list_inboxes and tell me how many inboxes exist.
Tool names differ across surfaces. Grok Bot exposes tools unprefixed (list_inboxes, create_inbox, send_message). Grok Build prefixes with the server name (agentmail__list_inboxes, agentmail__create_inbox). Grok API follows xAI’s remote MCP prefix convention. Behavior is identical.
Use cases
- Process inbound: Receive, triage, and process inbound emails
- Automate outbound: Draft, schedule, and send outbound emails
- Join conversations: Address a Grok Bot directly or CC it in an existing email thread
- Identify and authenticate: Agents can sign up, receive 2FA code, and authenticate with any application
Verticals
- Operations: Automate internal workflows, vendor communications, and cross-team coordination
- Support: Handle customer inquiries, ticket management, and automated responses at scale
- Procurement: Streamline vendor onboarding, RFP processes, and purchase order management
- Sales: Automate lead qualification, follow-ups, and customer outreach campaigns
- Recruiting: Automate candidate outreach, interview scheduling, and applicant communication
These are just a few select verticals, but we have seen AgentMail be effective in automating any email task across every function. If a human does it with email, it can be automated with AgentMail.
FAQ
What's the difference between Grok Bot, Grok Build, and Grok API for AgentMail?
Same MCP server, same 24 tools, different clients. Grok Bot is the UI product with persistent cloud routines. Grok Build is a CLI session that ends when you close the terminal. Grok API is the raw REST endpoint for developers wiring AgentMail into their own agent runtime. Tool names are unprefixed on Grok Bot (send_message), prefixed with agentmail__ on Grok Build, and follow xAI’s remote MCP prefix convention on the API. Auth headers also differ: Grok Bot accepts either x-api-key or OAuth, Grok Build requires Authorization: Bearer, and the Grok API takes the token in the authorization field of the tool object.
Does this work with SuperGrok Plus?
No. Grok Bot access is only included with Cursor Ultra (300/mo), or Cursor Premium Teams ($120/seat/mo). SuperGrok Plus does not include Grok Bot. See x.ai/bot for current tier eligibility. The Grok Build CLI and the Grok API are separate products with their own access.
What if a send goes through cleanly but the message never lands?
Check the AgentMail Console suppression list for the destination address. Any address that ever bounced, complained, or unsubscribed is on your SES suppression list and future sends fail silently. Remove it there to retry. Always test the first send to an external address (Gmail, iCloud, personal domain) rather than another AgentMail address you may have blocked yourself.
How do I let a bot work across multiple AgentMail organizations?
AgentMail’s MCP server exposes list_organizations and select_organization as tools when your API key has cross-org access. Grok Bot will list the orgs available on your account and pick one for you (usually the one that owns your API key). If you need a specific org, name it in the prompt: “use the App Sumo Testing org, create an inbox called…”
Is AgentMail an official plugin?
Yes. AgentMail is an official Cursor plugin, listed in the Cursor plugin marketplace and included in the plugin browser Grok Bot ships with. AgentMail also maintains official plugins for Claude Code and Codex in the same repo. Grok API integration uses the standard remote MCP contract xAI documents.
