Developers Connect an AI

Connect Grok

Add Hand-Off as a custom connector in Grok, or pass it to the xAI API as a remote MCP tool.

Server address

https://api.handoff.store/mcp

Grok

  1. Open grok.com/connectors and choose New Connector, then Custom.
  2. Enter the MCP server address: https://api.handoff.store/mcp
  3. Sign in to Hand-Off when the browser opens, pick what the connection may do, and approve. The connection can never do more than your own Hand-Off account can.
  4. Ask Grok: “Which Hand-Off stores can you see?”
  • On Grok Business and Enterprise, an admin adds it once on the console’s connectors page (Add Connector → Other); members connect afterwards with their own Hand-Off account.

xAI API

The xAI API takes a remote MCP server as a tool, in the xAI SDK and over REST.

Python (xai-sdk)
from xai_sdk import Client
from xai_sdk.chat import user
from xai_sdk.tools import mcp

client = Client(api_key=XAI_API_KEY)

chat = client.chat.create(
    model="grok-4.7",
    tools=[mcp(
        server_url="https://api.handoff.store/mcp",
        server_label="hand_off",
        authorization=ACCESS_TOKEN,
    )],
)
chat.append(user("How many orders came in today?"))
print(chat.sample().content)
curl
curl https://api.x.ai/v1/responses \
  -H "Authorization: Bearer $XAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "grok-4.7",
    "input": [{ "role": "user", "content": "How many orders came in today?" }],
    "tools": [{
      "type": "mcp",
      "server_url": "https://api.handoff.store/mcp",
      "server_label": "hand_off",
      "authorization": "ACCESS_TOKEN"
    }]
  }'
  • The ACCESS_TOKEN is a Hand-Off OAuth access token that your software gets by running the sign-in flow itself: see Sign-in. Access tokens are short-lived, so refresh before each run. Hand-Off has no long-lived API keys yet.
  • xAI runs no sign-in flow for you and has no approval setting of its own. Hand-Off’s approvals still apply: see Approvals.
  • Use allowed_tools (allowed_tool_names in the SDK) to pass only the tools your software needs.

After you connect

  • Reads and everyday edits run right away. Destructive changes, anything that moves money and anything that messages customers wait for an owner’s approval: see Approvals.
  • To disconnect, open Connected apps in your Hand-Off dashboard and revoke it.
  • What the tools can do is in the tool reference.

xAI’s side of these steps was checked against its documentation on 1 December 2026. If a menu has moved since, these pages have the current steps: