# Grok by xAI by UniversalMCP

> Grok by xAI by UniversalMCP is a free MCP server for ai models and llm tooling. MCP server giving AI assistants read access to xAI Grok models, completions and embeddings. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Free
- **Platforms:** API, Web
- **Website:** https://universalmcp.app/mcp/grok-by-xai
- **MCP Registry name:** app.universalmcp/grok-by-xai
- **Categories:** [AI models and LLM tooling](https://ai-powered.com/categories/ai-and-llm)
- **Listing updated:** 2026-12-01

## About

This server lets an AI assistant query the xAI account behind Grok. Through it you can list the Grok text, reasoning, vision and image models enabled for a team, send chat or reasoning prompts through OpenAI-compatible endpoints, compute embeddings, and generate images with Grok Imagine.

Access runs through a remote streamable HTTP endpoint hosted by UniversalMCP. Each person signs in with their own authorized xAI credentials, and requests pass through live without being stored or used for model training, according to the vendor. Teams can set view-only, edit or hidden access per area, including models, inference, embeddings and image generation, files and batches, and key metadata. Access can be revoked for one teammate or removed entirely from the UniversalMCP dashboard.

The server suits developers and small teams who want an AI client such as ChatGPT or Claude to check xAI models, audit key scopes before a deployment, or run batch classification jobs without sharing an unrestricted admin account.

## Features

- **Model catalog discovery:** Lists the Grok language, vision and image models enabled on the xAI account, with read-only access.
- **Chat and reasoning completions:** Sends prompts through OpenAI-compatible chat and responses endpoints, including structured outputs and tool-calling requests.
- **Text embeddings:** Computes vector embeddings for semantic search, clustering and retrieval workflows.
- **Image generation:** Generates or edits images through xAI's Grok Imagine endpoints.
- **Batch jobs and files:** Uploads prompt files and tracks asynchronous batch inference jobs on xAI.
- **Per-user permissions:** Sets view-only, edit or hidden access per teammate and per functional area, with create or update actions off by default.

## Good for

- Check which Grok models and context windows are available before choosing one for an application
- Run a second opinion on a document by sending it to Grok from an assistant like Claude or ChatGPT
- Audit xAI access key scopes and model restrictions before pushing a service to production
- Classify large sets of support tickets or text as structured JSON through batch or chat completions
- Build semantic search or clustering features by generating embeddings from an AI client

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add --transport http grok-by-xai https://api.universalmcp.app/mcp/grok-by-xai
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "grok-by-xai": {
      "type": "http",
      "url": "https://api.universalmcp.app/mcp/grok-by-xai"
    }
  }
}
```

### Claude Desktop (Customize → Connectors → Add → Add custom connector)

```text
https://api.universalmcp.app/mcp/grok-by-xai
```

Paste this URL, choose how to sign in, then click Add and Connect. On Team and Enterprise an Owner adds it in Organization settings → Connectors.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "grok-by-xai": {
      "url": "https://api.universalmcp.app/mcp/grok-by-xai"
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "grok-by-xai": {
      "type": "http",
      "url": "https://api.universalmcp.app/mcp/grok-by-xai"
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### ChatGPT (chatgpt.com → Plugins → + → Add custom MCP server)

```text
https://api.universalmcp.app/mcp/grok-by-xai
```

Paste this URL, set up sign-in, accept the warning and install the plugin. Then type @ in a chat to use it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add grok-by-xai --url https://api.universalmcp.app/mcp/grok-by-xai
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.grok-by-xai]
url = "https://api.universalmcp.app/mcp/grok-by-xai"
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "grok-by-xai": {
      "httpUrl": "https://api.universalmcp.app/mcp/grok-by-xai"
    }
  }
}
```

Or run: gemini mcp add -s user --transport http grok-by-xai https://api.universalmcp.app/mcp/grok-by-xai

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "grok-by-xai": {
      "serverUrl": "https://api.universalmcp.app/mcp/grok-by-xai"
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "grok-by-xai": {
      "url": "https://api.universalmcp.app/mcp/grok-by-xai",
      "transport": "http"
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "grok-by-xai": {
      "type": "streamableHttp",
      "url": "https://api.universalmcp.app/mcp/grok-by-xai"
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "grok-by-xai": {
      "url": "https://api.universalmcp.app/mcp/grok-by-xai"
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "grok-by-xai": {
      "url": "https://api.universalmcp.app/mcp/grok-by-xai"
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "grok-by-xai": {
      "url": "https://api.universalmcp.app/mcp/grok-by-xai"
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "grok-by-xai": {
      "url": "https://api.universalmcp.app/mcp/grok-by-xai"
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Grok Bot (Grok Bot desktop app → Connect apps → Add a custom connector)

```sh
https://api.universalmcp.app/mcp/grok-by-xai
```

Enter a Name (for example "Grok by xAI by UniversalMCP"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin. When we checked, this server asked for OAuth sign-in. If its docs give you an OAuth client ID and secret, enter them in the form's OAuth Client ID and Client Secret fields.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "grok-by-xai": {
      "type": "http",
      "url": "https://api.universalmcp.app/mcp/grok-by-xai"
    }
  }
}
```

## FAQ

### How is the server connected to an AI client?

It uses a remote streamable HTTP endpoint at api.universalmcp.app/mcp/grok-by-xai, which is provided as a link to add in the client.

### Is my data stored or used for training?

UniversalMCP says requests pass through live between the assistant and xAI, with no stored copies and no use for training AI models.

### Can I limit what a teammate can do?

Yes. Permissions can be set per person and per area, such as view-only, edit or hidden, and access can be revoked from the dashboard at any time.

### Does each user need their own xAI credentials?

Yes. Every person signs in with their own authorized Grok by xAI credentials.

### Is Grok by xAI by UniversalMCP free?

Yes. Grok by xAI by UniversalMCP is free to use.

### How do I add Grok by xAI by UniversalMCP to Claude Code?

Run this command in your terminal: claude mcp add --transport http grok-by-xai https://api.universalmcp.app/mcp/grok-by-xai

### What are the best alternatives to Grok by xAI by UniversalMCP?

The closest alternatives to Grok by xAI by UniversalMCP are Grok-MCP, Grok Chat, MCP Grok, Grok Image and Ask Grok.

## Where this comes from

- Description: written from the project's website and its MCP Registry entry.
- Status: checked automatically by AIPoweredBot on 3 December 2026.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Grok-MCP](https://ai-powered.com/mcp/grok-mcp-2): Grok-MCP is an open-source MCP server for design and media.
- [Grok Chat](https://ai-powered.com/mcp/grok-chat): Grok Chat is an open-source MCP server for ai models and llm tooling.
- [MCP Grok](https://ai-powered.com/mcp/mcp-grok): MCP Grok is an open-source MCP server for design and media.
- [Grok Image](https://ai-powered.com/mcp/grok-image): Grok Image is an open-source MCP server for design and media.
- [Ask Grok](https://ai-powered.com/mcp/ask-grok): Ask Grok is a paid MCP server for ai models and llm tooling.
- [Grok Imagine MCP](https://ai-powered.com/mcp/grok-imagine-mcp): Grok Imagine MCP is an open-source MCP server for ai models and llm tooling.
- [Gpt Chat](https://ai-powered.com/mcp/gpt-chat): Gpt Chat is an open-source MCP server for ai models and llm tooling.
- [sinogate-mcp](https://ai-powered.com/mcp/sinogate-mcp): sinogate-mcp is an open-source MCP server for ai models and llm tooling.

---
Source: https://ai-powered.com/mcp/grok-by-xai-by-universalmcp
