MCP server that wraps the xAI Grok CLI. Lets Claude Code, Cursor, Cline, and any MCP host use Grok as a peer code reviewer, adversary, and second-opinion consultant.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add grok-howardpen9 -- npx -y grok-cli-mcp~/.codex/config.toml
[mcp_servers.grok-howardpen9]
command = "npx"
args = ["-y", "grok-cli-mcp"]
# codex mcp add grok-howardpen9 -- npx -y grok-cli-mcp~/.cursor/mcp.json
{
"mcpServers": {
"grok-howardpen9": {
"command": "npx",
"args": [
"-y",
"grok-cli-mcp"
]
}
}
}.vscode/mcp.json
{
"servers": {
"grok-howardpen9": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"grok-cli-mcp"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"grok-howardpen9": {
"command": "npx",
"args": [
"-y",
"grok-cli-mcp"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"grok-howardpen9": {
"command": "npx",
"args": [
"-y",
"grok-cli-mcp"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"grok-howardpen9": {
"command": "npx",
"args": [
"-y",
"grok-cli-mcp"
]
}
}
}