Live survey315 models · 14 providers · 23,592 auditsAudited implement · SAFE →What changedHow we verifyllms.txt

MCP server · Audited from source

Grok MCP server

by merterbak/grok-mcpMIT licenceAudited 8 Oct 2026 · source 2fddd3689c06

PyPI mcp-grokstdio★ 52
✓SAFEGrade B · 89/100 · 8 Oct 2026 · 2fddd36
52GitHub stars

Is it safe? Yes — SAFE, grade B (89/100). It exposes 22 tools: 14 read, 5 write and 3 destructive. The audit recorded 1 finding (0 critical, 0 high, 1 medium, 0 low). Maintainer's description: MCP server for xAI’s Grok API with Web/X search, vision, image/video generation and file support

Ask an AI about this pageGChatGPTCClaudePPerplexityGeGeminiXGrok
More
Cite

Cite this page

ModelsAtlas. “Grok MCP server (merterbak/grok-mcp)”. Retrieved 8 Oct 2026. https://modelsatlas.com/mcp/merterbak/grok-3

2 MCP servers are called Grok. This is the one we pick. Compare all 2 →

Trust audit

Audit 0.4.1 · full source read 8 Oct 2026

Trust score89/100✓SAFE B
0 critical0 high1 medium0 low0 info

1 finding, listed below with the file and line each was found on. Grade A needs a sandboxed behavioural run too; this audit read the source only.

What the source does

  • FilesystemDeclared3 observations
  • NetworkDeclared1 observation
  • ShellNone observedNothing seen in the source
  • DependenciesPinnedNothing floats
  • SecretsNone foundNo keys in source

“Declared” means the server says it does this and the source agrees. Browser, file and shell access are expected of some kinds of server.

Five audit layers

LayerWhat we checkResult
L0 ProvenanceRepo owner, licence, archive status, activityPASS
L1 Static sourceSecrets, path traversal, supply chainPASS
L2 InstructionsPrompt injection and authority framing in docs and tool descriptionsPASS
L3 InventoryDeclared tools match the sourceWARN 1 finding
L4 SandboxRun in isolation and watch behaviourSKIPPED

Provenance & runtime

Who published it, and what the audit could and could not run

Provenance

  • Repository owner merterbakUser accountAccount type recorded when we read the repository.
  • PackagePublished on PyPImcp-grok, no version recorded
  • LicenceMITFrom the repository, as read at the audited commit.
  • Last push4 days agoActivity of the repository when we read it.
  • Source commit read2fddd3689c06The audit covers exactly this commit, read on 8 Oct 2026.

Runtime

  • Sandbox runNot run yetThis audit read the source only; it did not execute the server.
  • Tool inventory22 declaredRead from the source and classed read, write or destructive.

Every value here is read from the record's own repository and audit.Suggest a correction

Findings (1)

Sorted by severity

MEDIUMFilesystem / pathmcp.destructive_tools
F-05 Filesystem / pathCWE-22 · CWE-59Layer L3
clear_chat_history, delete_file, delete_stateful_response
Why
3 tool(s) can delete or overwrite
Fix
prefer a read-only mode or scoped tokens; the page states the blast radius

Tools it exposes

22 declared in source · 3 destructive

14 read5 write3 destructive

3 tools can delete or overwrite. An agent that can be talked into calling a tool can be talked into calling this one, so give it a token scoped to what you need.

ToolRiskWhat it does
clear_chat_historydestructiveDelete the local history file for a chat session.
delete_filedestructivePermanently delete an uploaded file from xAI.
delete_stateful_responsedestructiveDelete a stored chat completion from xAI
chatwriteSend a text prompt to a Grok model and return its reply.
code_executorwriteSolve a task by letting Grok run Python in a stateful sandbox.
generate_imagewriteGenerate new images or edit existing ones with Grok Imagine.
generate_videowriteGenerate or edit videos with Grok Imagine.
upload_filewriteUpload a local file to xAI so it can be attached to later chats.
chat_with_filesreadChat with Grok using one or more previously uploaded files as context.
chat_with_visionreadAnalyze one or more images with a Grok vision model.
extend_videoreadExtend an existing video with a follow-up prompt.
get_chat_historyreadReturn the full message history for a local chat session.
get_filereadFetch metadata for a single uploaded file.
get_file_contentreadDownload the raw content of an uploaded file as text.
grok_agentreadAll-in-one Grok agent combining files, vision, web/X search, code execution, and image generation.
list_chat_sessionsreadList all local chat sessions stored under `chats/`.
list_filesreadList files previously uploaded to xAI.
list_modelsreadList all Grok language and image models with live pricing from the xAI API.
retrieve_stateful_responsereadFetch a stored chat completion from xAI by its response ID.
stateful_chatreadContinue a server-side stored conversation using xAI
web_searchreadAnswer a query using agentic real-time web search.
x_searchreadAnswer a query using agentic search over X (Twitter).

Install

audited commit 2fddd36

One-click links open your editor with the config below filled in, exactly as the snippets show it. The audit covers commit 2fddd36 only.

claude mcp add mcp-grok --env XAI_API_KEY=${XAI_API_KEY} -- uvx mcp-grok

The command does not pin a version; the audit covers commit 2fddd3689c06. Transport: stdio. Reads this environment variable: XAI_API_KEY. Give it the narrowest token it needs.

Audit history

  1. ✓SAFE B 89 / 100

    First audit · 2fddd3689c06

README badge

For maintainers · updates on every re-audit

ModelsAtlas: SAFE BMODELSATLASSAFE · B
[![ModelsAtlas: SAFE B](https://modelsatlas.com/mcp/merterbak/grok-3/badge.svg)](https://modelsatlas.com/mcp/merterbak/grok-3/)

The badge always shows the latest audit; a maintainer cannot pin an old verdict.

Other ratings

Cited, never blended into our score

No third-party security ratings are recorded for this server yet. When they exist they appear here with their source and date, beside, not inside, our grade.

Questions about Grok MCP server

What is the Grok MCP server?
MCP server for xAI’s Grok API with Web/X search, vision, image/video generation and file support
What tools does Grok expose?
22 in total: 14 read-only, 5 that write, and 3 that can delete or overwrite (clear_chat_history, delete_file, delete_stateful_response). Every one is listed on this page with its risk.
Is Grok safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B. Separately from the audit: 3 of its tools can destroy data, so scope the token you give it to what you actually need.
What credentials does Grok need?
It reads XAI_API_KEY from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How does Grok run?
It speaks stdio, so it runs as a local process your client starts. It is published on PyPI as mcp-grok.
How current is this page?
The grade is for one exact copy of the source (2fddd3689c06), read on 2026-10-08. The repository is watched and re-audited when it changes.
Which Grok MCP server is the right one?
merterbak/grok-mcp (this page). 2 servers share the name; see the side-by-side comparison.

Sources

  • merterbak/grok-mcp on GitHub — the source we read, its licence, stars and activityObserved · 8 Oct 2026
  • ModelsAtlas trust audit — SAFE verdict for commit 2fddd3689c06Observed · 8 Oct 2026

Spotted something wrong? Report a correction · Methodology

Keep going in your AI

Opens with this page as the source. We add nothing else to the prompt.