# Grok — MCP server on mcp.ai > Connect your Grok account and use 8 tools for artificial intelligence straight from your AI agent. Connect with your own API key. Grok is xAI's API platform for text, image, video, embedding, file, search, and voice capabilities. By: mcp.ai · official Page: https://new.mcp.ai/grok ## Connect (MCP protocol) Remote MCP endpoint (HTTP, streamable): https://api.mcp.ai/p_grok?ms=1796396580000 Add it as a custom/remote MCP connector, then authenticate when prompted. ## Install in your AI client (step by step) Link to paste in any client: https://api.mcp.ai/p_grok ### Claude 1. Copy the Grok link above (Copy button). 2. In Claude, Plugins → Add → Add custom connector: name Grok, paste the link and click Continue. Under Authentication, choose Sign in now and click Add. 3. The first time, Claude opens the mcp.ai sign-in: sign in with Google or email and click Allow. 4. When Grok needs your account, the AI sends you a link: click Connect Grok and authorize. 5. Done: just ask in the chat. Open: https://claude.ai/plugins ### ChatGPT 1. Copy the Grok link above (Copy button). 2. In ChatGPT (web), Plugins → Add → Add custom MCP server: name Grok, paste the link, under Authentication choose OAuth or no authentication, check I understand, click Create as a plugin, then Sign in with Grok. 3. The first time, ChatGPT opens the mcp.ai sign-in: sign in with Google or email and click Allow. 4. When Grok needs your account, the AI sends you a link: click Connect Grok and authorize. 5. Done: just ask in the chat. Open: https://chatgpt.com/plugins ### Cursor 1. Copy the Grok link above (Copy button). 2. In Cursor, Settings → MCP → "Add new MCP server", paste the link and save. 3. The first time, Cursor opens the mcp.ai sign-in: sign in with Google or email and click Allow. 4. When Grok needs your account, the AI sends you a link: click Connect Grok and authorize. 5. Done: just ask in the chat. ### Claude Desktop 1. Copy the Grok link above (Copy button). 2. Added it in Claude? The connector lives in your account and shows up on Desktop. If not, Plugins → Add → Add custom connector, paste the link and choose Sign in now. 3. The first time, Claude opens the mcp.ai sign-in: sign in with Google or email and click Allow. 4. When Grok needs your account, the AI sends you a link: click Connect Grok and authorize. 5. Done: just ask in the chat. ### Manus 1. Copy the Grok link above (Copy button). 2. Paste the link into a Manus chat and ask it to connect the MCP server. 3. The first time, Manus opens the mcp.ai sign-in: sign in with Google or email and click Allow. 4. When Grok needs your account, the AI sends you a link: click Connect Grok and authorize. 5. Done: just ask in the chat. ### Agents 1. Copy the Grok link above (Copy button). 2. Paste the link into your MCP-compatible agent (remote HTTP server). 3. The first time, agent opens the mcp.ai sign-in: sign in with Google or email and click Allow. 4. When Grok needs your account, the AI sends you a link: click Connect Grok and authorize. 5. Done: just ask in the chat. ## REST API (no MCP client required) Every tool is also a REST endpoint, authed with a workspace API key. Discover: GET https://api.mcp.ai/api/grok/_endpoints # public; lists every endpoint Call: POST https://api.mcp.ai/api/grok/ Authorization: Bearer sk_live_… # create one at https://new.mcp.ai/settings/api-keys Content-Type: application/json Body: { …args } → { "ok": true, "tool": "", "result": { … } } ## Developer docs Install guide (prompt + clients + REST), markdown: https://new.mcp.ai/grok/index.md How to use (MCP or REST), markdown: https://new.mcp.ai/grok/skill.md Postman collection (v2.1): https://new.mcp.ai/grok/postman.json ## Tools - grok_create_embeddings(user?: string, input: string|string[], model: string, dimensions?: integer, encoding_format?: string) — Create vector embeddings for one or more text inputs with an xAI embedding model. - grok_create_response(input: string|object[], model: string, store?: boolean, tools?: object[], temperature?: number, tool_choice?: string|object, instructions?: string, reasoning_effort?: string, max_output_tokens?: integer, search_parameters?: object, previous_response_id?: string) — Generate a bounded, non-streaming Grok response from text or structured multimodal input, with optional reasoning, search, and function or web-search tools. Responses are ephemeral by default; set sto - grok_generate_image(user?: string, model?: string, prompt: string, resolution?: string, image_count?: integer, aspect_ratio?: string, response_format?: string) — Generate one or more images from a text prompt with an xAI image-generation model. - grok_generate_video(user?: string, model?: string, prompt: string, duration?: integer, image_url?: string, resolution?: string, aspect_ratio?: string) — Start asynchronous xAI video generation from a text prompt, optionally conditioned on an image, and return a request ID for status checks. - grok_get_api_key_info() — Inspect the connected xAI API key's identity, wildcard or granular ACLs, and key or team blocking state. - grok_get_current_account() — Verify the connected xAI credential and return the caller, team, zero-data-retention status, and key blocking state. - grok_get_video(request_id: string) — Check an asynchronous xAI video request. Returns pending while generation is in progress, the video and usage when done, or the structured generation error when failed. - grok_list_models() — List models available to the connected xAI key, including model IDs and published pricing metadata needed to choose a model for other tools. ## Example prompts - "What can I do in Grok?" - "Show me a summary of my Grok account" ## Links Docs: https://mcp.ai/docs/mcps/grok Website: https://mcp.ai/mcps/grok