In short.
Docs MCP Server serves developers who use MCP-compatible AI assistants and coding tools by giving those tools direct access to SpaceXSI’s own developer documentation served from [https://docs.x.ai]; it requires Streamable HTTP support, while pricing, authentication and usage terms are unspecified. The page describes a stateless Streamable HTTP endpoint and examples for listing pages, retrieving a page and searching documentation. It provides setup instructions for several coding clients, but actual availability, tool responses and compatibility remain unverified.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage includes the complete captured page at [https://docs.x.ai/developers/docs-mcp.md], including every configuration and code example. Linked pages are excluded. The page contains no licensing or pricing notice. Endpoint availability, client compatibility, tool outputs and runtime behavior were not assessed through execution.
The overview
identity
Docs MCP Server is a hosted documentation integration at [https://docs.x.ai/api/mcp]. The page attributes hosting and documentation to SpaceXSI, while its endpoint and configuration name use x.ai and xai-docs. It does not explain this naming difference.
assessment
The documented interface is a practical fit for developers who want their coding assistant to fetch relevant documentation during a task. Its usefulness depends on the client supporting the transport and the assistant retrieving appropriate pages. The evidence establishes configuration examples, not successful connections, retrieval quality or improvements in generated code.
users
The page addresses developers using Grok Build, Cursor, Zed, Windsurf and OpenCode, as well as people building custom MCP clients. Beginners can follow the editor configuration routes; experienced developers get SDK and JSON-RPC examples for integrating documentation retrieval into their own agents.
capabilities
The examples name list_doc_pages for listing documentation pages, get_doc_page for retrieving a page by slug, and search_docs for searching with a query and max_results. A tools/list request shows how a client can discover the available tools.
These are documented operations. The page supplies no returned results, complete tool schemas, search-ranking details or guarantees about documentation coverage.
Using it
requirements
A client must support MCP over Streamable HTTP and be able to reach [https://docs.x.ai/api/mcp]. MCP support alone is insufficient unless that transport is supported.
The custom JavaScript example imports Client and StreamableHTTPClientTransport from @modelcontextprotocol/sdk. The page specifies no minimum client or SDK versions, runtime requirements, credentials or account prerequisites; omitted credentials do not establish anonymous access.
mechanism
The assistant’s client connects to a remote server and invokes documentation tools through MCP. The page describes the server as stateless, with no session management required.
The direct HTTP examples send JSON-RPC requests with Content-Type set to application/json and Accept set to application/json, text/event-stream. They demonstrate initialize, tools/list and tools/call; the curl example labels initialization optional. No actual response behavior is shown.
setup
For Grok Build, the page offers terminal registration with HTTP transport or an mcp_servers.xai-docs entry in ~/.grok/config.toml. It gives grok mcp doctor xai-docs as the connection diagnostic.
Cursor uses Settings → MCP with type url and the endpoint [https://docs.x.ai/api/mcp]. Zed uses its agent settings and an xai-docs configuration containing a url field. Windsurf adds the endpoint through Settings → MCP. OpenCode uses an mcp.xai-docs entry with type remote, the endpoint URL and enabled set to true. These instructions have not been executed.
example
For a task involving API rate limits, the supplied HTTP example calls search_docs with query set to rate limits and max_results set to 3. This demonstrates the request shape; it supplies no search results.
The SDK example connects a Client through StreamableHTTPClientTransport, calls list_doc_pages, then calls get_doc_page with slug developers/quickstart. That sequence illustrates page discovery followed by targeted retrieval.
Assessment & evidence
limitations
The page does not document authentication, rate limits, response-size limits, error handling, uptime commitments or data-handling terms. Availability, response accuracy, latency and compatibility with particular editor versions remain unverified.
The resource is presented as access to the provider’s documentation. The evidence does not establish support for arbitrary websites, private repositories or other documentation collections.
reasoning
The page’s proposed benefit is replacing manual copying with assistant-driven documentation requests. The separate listing, retrieval and search examples support that intended workflow.
It is reasonable to infer that this could reduce manual context gathering for supported documentation. It does not establish that an assistant will choose the right page, interpret it correctly or produce better code.
alternatives
The page contrasts this integration with copying documentation into a prompt. Manual copying remains an option when a client lacks the required transport, although it requires the user to choose the material.
For custom integration, the page offers both an MCP SDK route and direct HTTP requests. These are access methods for the same server. No competing documentation services or comparative results are supplied.
evidence
The evidence is the complete documentation page at [https://docs.x.ai/developers/docs-mcp.md]. It includes the endpoint, transport description, editor configurations and SDK/curl examples.
The page supports statements about the documented interface and intended use. It contains no observed server responses, execution results, performance measurements or compatibility test results.
Access & freshness
costs
Server pricing is unknown. The page states no fees, free tier, quotas, billing rules or usage allowances. It also does not establish the cost of using the named clients or their associated model services.
rights
The page supplies no license or terms establishing permission to redistribute the documentation, reuse its contents or self-host the server. A published endpoint and configuration examples do not establish those permissions. Applicable rights and service terms remain unknown.
freshness
The page was captured on 13 November 2026. It supplies no publication date, last-update date or server release version, so its maintenance recency is unknown.
The initialize example specifies MCP protocolVersion 2025-03-26. That value identifies the requested protocol revision; it does not establish a server release date or the full range of supported protocol versions.
actions
Confirm that your client supports Streamable HTTP, then use its documented configuration route with [https://docs.x.ai/api/mcp]. Grok Build users can use the supplied grok mcp doctor xai-docs diagnostic.
Before depending on the integration, inspect the available tools and check a retrieved page against the documentation you need. Establish pricing, authentication requirements, usage limits and applicable terms with the provider. Successful operation remains unverified.
