Skip to main content
Glama
segalz

xAI Grok MCP Bridge

by segalz

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
XAI_API_KEYNoOptional API key for authentication with x.ai, used if not logged in via grok login
GROK_CLI_PATHNoOptional path to the grok CLI executable if not on PATH

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}
logging
{}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
extensions
{
  "io.modelcontextprotocol/ui": {}
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
grok_askB

Ask Grok a prompt in a new headless CLI session.

grok_continueC

Continue a Grok headless session.

If resume is provided, resumes that session id. Otherwise passes --continue, which continues the most recent session in the workspace.

grok_code_reviewA

Ask Grok for a strict second-opinion code review.

This tool is intended to run after CodeHelper or manual analysis. It sends strict run-scoped review rules, disables web search, and passes large prompts via --prompt-file.

grok_versionA

Return the installed Grok CLI version.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/segalz/XAIMsp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server