In short.
This documentation guide helps developers connect external tools to Grok through MCP servers, but it omits installation instructions, supported versions and costs. It explains local stdio and remote HTTP connections, authentication, project settings, configuration imports and diagnostics. A notable configuration rule is that a project server entirely replaces a personal server with the same name. Runtime behavior and reliability were not assessed.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage includes the complete MCP Servers page at [https://docs.x.ai/build/features/mcp-servers.md], including configuration, authentication, project scope, terminal controls, compatibility imports and troubleshooting. Linked pages, package contents and external services are excluded. No licence notice appears in the supplied page. No commands or servers were run; functional behavior, live endpoints, security controls and performance remain unverified.
The overview
identity
The resource is xAI's MCP Servers feature guide for Grok's command-line and terminal interface [https://docs.x.ai/build/features/mcp-servers.md]. MCP stands for Model Context Protocol; here, servers expose external tools that Grok can use alongside its built-in tools.
The page documents an integration feature. It does not supply an MCP server implementation or identify a specific Grok release.
assessment
The guide is useful when you already have Grok available and need to register or diagnose an MCP server. Its strongest details concern authentication, configuration precedence, server origins and startup failures.
Its usefulness is narrower for someone starting from scratch: Grok installation, supported platforms, version compatibility and a completed tool-use example are absent.
users
The guide suits developers connecting local utilities or hosted services to Grok, teams sharing server definitions through a repository, and users bringing existing MCP configuration from other tools.
Beginners need familiarity with terminal commands, environment variables and configuration files. Experienced developers get details about process arguments, authentication headers, timeouts and configuration precedence.
capabilities
The documented commands add, list, remove and diagnose servers. Local servers use stdio, meaning Grok communicates with a launched process through its input and output streams. Remote servers use HTTP, with OAuth or static authentication headers. The list and doctor commands support JSON output.
The terminal interface's /mcps panel supports toggling, refreshing, authenticating, adding and removing servers. Grok also imports configurations from ~/.claude.json, .cursor/mcp.json and project .mcp.json files; grok inspect shows loaded servers and their origins.
Using it
requirements
You need a Grok installation exposing the documented commands and an MCP server to connect. The local filesystem example requires npx to launch the named package. Remote connections require a reachable endpoint and any authentication that service demands.
OAuth servers trigger a browser flow on first use. Minimum Grok, runtime and MCP versions, operating-system support and service-account requirements are not specified.
mechanism
Connected tools receive names in the form <server>__<tool>. Server definitions can specify a local command and arguments or a remote URL and headers. Grok expands ${VAR} and ${VAR:-default} in URLs, commands, arguments, environment settings and headers. OAuth tokens are stored at ~/.grok/mcp_credentials.json.
Project configuration is read from .grok/config.toml files between the current directory and the Git root. A project server replaces a user server with the same name entirely. Imported configurations have lower priority than config.toml; Claude and Cursor imports can be disabled through their respective compatibility settings.
setup
Use grok mcp add with a server name and either a local command after -- or an HTTP endpoint with --transport http. The documented remote example uses Linear's endpoint [https://mcp.linear.app/mcp]. Repeat --header when multiple static headers are needed.
Alternatively, edit ~/.grok/config.toml directly. Add --scope project to write .grok/config.toml in the current directory. Check registration with grok mcp list, inspect origins with grok inspect, and investigate connectivity with grok mcp doctor.
example
The local example is grok mcp add filesystem -- npx -y @modelcontextprotocol/server-filesystem /path/to/dir. Replace /path/to/dir with the intended directory. This registers filesystem as the server name and supplies the package launch command and directory argument.
Under the documented naming rule, its tools would use the filesystem__ prefix. The page does not show the actual tool inventory or a completed filesystem operation, so this example establishes configuration syntax rather than demonstrated task success.
Assessment & evidence
limitations
No commands, servers or authentication flows were executed. Connection success, tool reliability, performance and compatibility with particular server versions remain unverified. The filesystem package example has no version pin.
The page does not describe tool approval controls, sandboxing or protection of stored OAuth tokens. It lists default values of 30 seconds for startup_timeout_sec and 6000 seconds for tool_timeout_sec, but provides no guidance for choosing timeouts beyond increasing startup time for slow first launches.
reasoning
The documented features make this guide a practical reference for adding an existing MCP server to Grok. Server namespaces identify imported tools, origin inspection explains where definitions came from, and diagnostics help investigate failed connections.
For repository use, the same-name replacement rule deserves particular attention: a project definition can change the entire server configuration. The guide leaves installation, service selection and operating-cost decisions unresolved.
alternatives
Within Grok, the documented setup options are command-line registration, direct TOML editing and loading existing MCP configuration files. The /mcps interface provides another route for managing configured servers.
Claude and Cursor appear as configuration sources. The page provides no comparison of their MCP capabilities, costs or suitability, and does not establish how Grok compares with other MCP clients.
evidence
The evidence is the complete MCP Servers page at [https://docs.x.ai/build/features/mcp-servers.md]. It directly supports the command syntax, configuration paths, authentication behavior, precedence rules and troubleshooting descriptions.
The page provides documentation examples without execution transcripts, benchmark results or a completed user task. Its descriptions do not establish live endpoint availability or measured reliability.
Access & freshness
costs
The page gives no pricing for Grok access, connected services or server operation. Subscription requirements, usage allowances, billing behavior and total operating cost are unknown.
rights
The page contains no explicit licence or redistribution terms for the documentation, Grok or the example server package. Terms for connected services are also absent. Those rights and obligations cannot be established from this page.
freshness
The Grok MCP Servers page states no publication date, update date or applicable Grok release. Its currency and compatibility with a particular installed version remain unknown.
actions
Choose the server and authentication method, then decide whether its definition belongs in personal or project configuration. Use environment-variable expansion for credentials where appropriate, and inspect server origins after adding a project definition.
For connection problems, start with grok mcp doctor. Local server stderr is captured at ~/.grok/logs/mcp/<server>.stderr.log. If an npx server downloads packages on first launch and exceeds the startup window, the guide recommends increasing startup_timeout_sec.
