Add Hand-Off as a custom connector in Grok, or pass it to the xAI API as a remote MCP tool.
https://api.handoff.store/mcphttps://api.handoff.store/mcpThe xAI API takes a remote MCP server as a tool, in the xAI SDK and over REST.
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 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"
}]
}'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.allowed_tools (allowed_tool_names in the SDK) to pass only the tools your software needs.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: