Learning resourcesReviewed · xAI

xAI Remote MCP Tools guide

This xAI guide helps developers connect Grok to external tool servers, but all tools from each server are available unless explicitly restricted. It explains Model Context Protocol (MCP) connections, authentication, multiple servers and examples using the native xAI SDK and OpenAI-compatible Responses API.

Researched 15 Nov 2026

In short.

This xAI guide teaches developers to give Grok access to external tools, with every server tool available by default unless an allowlist restricts access. It documents remote MCP configuration, authentication, multiple servers and Python and HTTP examples. Only Streaming HTTP and SSE transports are supported, and the OpenAI-compatible Responses API does not support require_approval or connector_id. Pricing, licensing and operational reliability are not established by the page. No examples were executed.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage includes the complete selected page at [https://docs.x.ai/developers/tools/remote-mcp.md]: the SDK-support notice, configuration table, all examples, access defaults, multiple-server support and best practices. Linked pages, repositories and services are excluded. No code was executed, and actual server behavior, model availability, security properties, performance and costs were not independently assessed.

The overview

Identity

Remote MCP Tools is a documented Grok capability for accessing tools supplied by third-party or custom Model Context Protocol servers. MCP supplies the connection format through which those servers expose their tools.

The resource is the implementation guide at [https://docs.x.ai/developers/tools/remote-mcp.md]. It explains how to configure this capability rather than supplying a standalone application or installable MCP server.

Assessment

The guide is useful for developers who already have an MCP server and need the request fields and examples for connecting it to Grok. Its strongest practical detail is the explanation of tool-access defaults and the different parameter names used by the two SDK interfaces.

It does not establish connection reliability, latency, task accuracy or production readiness. The examples contain request code without recorded results.

Users

The intended readers are application developers adding documentation lookup, API integrations, business logic or other server-provided tools to Grok conversations. Developers can connect existing third-party servers or their own implementations.

Beginners need familiarity with API requests, environment variables and authentication. Experienced developers get configuration details, multiple-server examples and code for observing streamed tool calls and usage.

Capabilities

The page documents connecting multiple MCP servers in one conversation, assigning identifying labels and descriptions, restricting available tool names and passing authentication or additional request headers.

It states support for the native xAI SDK, the OpenAI-compatible Responses API and the Speech to Speech API. Speech support is mentioned through a link; its implementation details are outside this page.

Using it

Requirements

The examples use an xAI API key read from XAI_API_KEY and either a supported SDK or an HTTP client. The MCP server must support Streaming HTTP or SSE; the page documents no other transports.

The configuration table requires server_url and server_label. Server-specific credentials may also be needed. The examples name grok-4.7, but minimum SDK versions and a complete supported-model list are not provided.

Mechanism

The application includes MCP server configuration in the request's tools array. Server tool definitions become available in the model's context, and Grok can select tools based on the request and their descriptions. The server_label identifies the server and prefixes tool calls.

The page describes managed server connection and interaction. Its introduction attributes this management to SpaceXSI without explaining that name's relationship to xAI.

Omitting allowed_tools, or supplying an empty list, makes all server tools available. The native xAI SDK calls this parameter allowed_tool_names.

Setup

For the OpenAI Python SDK example, configure the client with the xAI API key and base URL [https://api.x.ai/v1]. Call responses.create with the model, input and a tools entry containing type mcp, server_url and server_label. Direct HTTP examples post to [https://api.x.ai/v1/responses].

Use server_description for optional explanatory metadata. The authorization field supplies the MCP server's Authorization header; headers supplies additional headers. The native SDK names the additional-header parameter extra_headers and creates tools with xai_sdk.tools.mcp.

The page recommends HTTPS and appropriate server authentication. An explicit tool-name allowlist limits the capabilities available to Grok.

Example

The main example asks Grok what it can do with the repository at [https://github.com/xai-org/xai-sdk-python]. It configures the DeepWiki MCP endpoint [https://mcp.deepwiki.com/mcp], assigns the label deepwiki and uses model grok-4.7.

Equivalent request examples use the OpenAI Python SDK, Python requests, curl and the native xAI SDK. The native example includes streaming tool-call names and arguments, reasoning-token counts and usage reporting. No actual response or successful execution is supplied.

Assessment & evidence

Limitations

The OpenAI-compatible Responses API does not support require_approval or connector_id according to the page. An application requiring approval before tool execution cannot rely on that parameter; an alternative approval mechanism is not documented here.

An empty allowlist enables every tool rather than disabling access. The standalone native-SDK filtering snippet also omits server_label even though the configuration table marks it required, leaving an inconsistency in the examples.

Timeouts, retries, rate limits, data retention and detailed error handling are not specified. Performance benefits from reducing tool definitions are described without measurements.

Practical fit

The documented design suggests a useful fit for applications that already expose capabilities through a remote MCP server and want Grok to choose among those capabilities. Configuring several servers can combine specialized tools within one conversation.

Tool filtering has two concrete purposes described by the guide: reducing the definitions occupying model context and excluding unwanted operations, such as writes. These controls govern which tools are available; the page does not establish per-call human approval.

Alternatives

The guide offers several access paths to the same feature: the native xAI SDK, the OpenAI-compatible Responses interface and direct HTTP requests. The documented parameter-name differences matter when moving between SDKs.

It does not compare competing providers, other MCP clients or application-managed tool execution. Relative cost, portability and operational tradeoffs remain unknown.

Evidence

The evidence is the complete documentation snapshot from [https://docs.x.ai/developers/tools/remote-mcp.md], including the support notice, configuration table, examples, access-control explanation and best practices.

The page provides descriptive claims and code examples, with no captured execution results or benchmarks. Linked repositories, server endpoints and documentation pages were not assessed. No code was executed.

Access & freshness

Costs

The page provides no model prices, MCP tool-call charges, quotas or third-party server fees. Total operating cost is unknown.

Although the native SDK example includes usage-reporting code, the page supplies neither recorded usage nor rates from which to calculate a cost.

Rights

The selected page states no license or redistribution permission for its text or sample code. Applicable service terms and rights to reuse material returned by third-party tools are also not established here.

Authentication options describe how to send credentials to a server; they do not establish permission to access or reuse that server's data.

Freshness

The documentation snapshot was captured on 15 November 2026 at 03:42:43.692 UTC. The page states no publication date, last-update date or SDK version requirements.

The model name grok-4.7 belongs to the captured examples. Its current availability, compatibility with other models and any changes after capture are not established.

Next steps

For an initial integration, supply both server_url and server_label, select the exact tool names needed and configure the server's authentication. Use the parameter names appropriate to your SDK; an empty tool list will not disable access.

Confirm compatible model and SDK versions, service pricing and server-specific terms before committing to an implementation. If human approval is required, determine how it will be enforced because the documented require_approval parameter is unsupported.

Evidence for this report

selected-page.txtselected · checked 2026-11-15