1. Conduid
  2. Browser
  3. merterbak/Grok-MCP
MCP server · Browser

merterbak/Grok-MCP

MCP server for xAI’s Grok API with Web/X search, vision, image/video generation and file support

Unclaimed MIT browser
59Fair

Scored 21 hours ago · breakdown

About merterbak/Grok-MCP

merterbak/Grok-MCP is an MCP server published by merterbak in the Browser category: mCP server for xAI’s Grok API with Web/X search, vision, image/video generation and file support. Conduid read 22 tools from its source: chat, chat_with_files, chat_with_vision, clear_chat_history, code_executor, delete_file and 16 more. No package is published for it, so it installs from a source checkout.

The repository has 57 stars and 21 forks, is licensed MIT, and its last commit was on 24 Nov 2026. The latest release is v1.0.4 (13 Oct 2026). It follows v1.0.3 (29 Aug 2026), and the 4 most recent releases go back to v1.0.0 (16 Jun 2026). It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass Tests present and Scoped permissions. Its topics include browser.

Install

From source
git clone https://github.com/merterbak/Grok-MCP

Tools (22)

chatstandard chat completion with optional persistent history, multi-agent support,
ParameterTypeDescription
agent_countinteger4 or 16. Only valid with `grok-4.20-multi-agent` for multi-agent research.
guidelinesobjectModeration settings like `{"violence": "decline"}`. Categories are `nsfw`, `violence` and `profanity`. Doesn't work with multi-agent models.
modelstringGrok model id (default `grok-4.6`).
prompt *stringUser message to send to the model.
service_tierstring`"default"` or `"priority"`. Priority is processed faster at a higher token price.
sessionstringOptional session name. Loads and appends history to `chats/{session}.json`.
show_usagebooleanAppend a token usage and cost footer to the reply (default False).
system_promptstringOptional system instruction prepended to the conversation.
chat_with_fileschat grounded on previously uploaded documents.
ParameterTypeDescription
file_ids *arrayIDs of files previously returned by `upload_file`.
modelstringGrok model id (default `grok-4.6`).
prompt *stringQuestion or instruction about the attached files.
sessionstringOptional session name for persistent history in `chats/{session}.json`.
show_usagebooleanAppend a token usage and cost footer to the reply (default False).
system_promptstringOptional system instruction prepended to the conversation.
chat_with_visionanalyze local or remote images with a Grok vision model.
ParameterTypeDescription
detailstringImage detail level. One of `"auto"`, `"low"`, or `"high"`.
image_pathsarrayLocal image file paths to analyze.
image_urlsarrayPublic image URLs to analyze.
modelstringVision-capable Grok model (default `grok-4.6`).
prompt *stringQuestion or instruction about the image(s).
sessionstringOptional session name for persistent history in `chats/{session}.json`.
show_usagebooleanAppend a token usage and cost footer to the reply (default False).
clear_chat_historydelete a session's local history file.
ParameterTypeDescription
sessionstringSession name whose `chats/{session}.json` file should be deleted.
code_executorsolve tasks by running Python in a sandbox.
ParameterTypeDescription
max_turnsintegerCap the number of reasoning/execution turns.
modelstringGrok model driving the agent (default `grok-4.6`).
prompt *stringTask or question requiring computation.
show_usagebooleanAppend a token usage and cost footer to the answer (default False).
delete_filedelete a file by ID.
ParameterTypeDescription
file_id *stringID of the file to remove.
delete_stateful_responsedelete a stored response by ID.
ParameterTypeDescription
response_id *stringID of the stored response to remove.
extend_videoextend an existing generated video with a follow-up prompt.
ParameterTypeDescription
durationintegerLength of the extension in seconds (2–10, default 6).
modelstringVideo model (default `grok-imagine-video`).
prompt *stringWhat should happen in the extended segment.
show_usagebooleanAppend a token usage and cost footer to the result (default False).
video_url *stringPublic URL of the source video (.mp4, 2–15 s).
generate_imagecreate or edit images with Grok Imagine (multi-reference editing supported).
ParameterTypeDescription
aspect_ratiostringAspect ratio like `"16:9"`, `"1:1"`, or `"9:16"`.
image_formatstring`"url"` (default) or `"base64"`. Base64 responses carry no URL, so they are always saved locally.
image_pathsarrayLocal image files (JPG/PNG) used as edit sources or references.
image_urlsarrayPublic image URLs used as edit sources or references.
modelstringImage model (`grok-imagine-image` or `grok-imagine-image-pro`).
nintegerNumber of images to generate (1–10).
prompt *stringImage description, or the edit instruction when references are provided.
resolutionstring`"1k"` or `"2k"`.
savebooleanWrite each image to `images/` and report the local path instead of the remote URL. Remote URLs are temporary, so save anything you want to keep.
show_usagebooleanAppend a token usage and cost footer to the result (default False).
generate_videotext-to-video, image-to-video, or video editing with Grok Imagine.
ParameterTypeDescription
aspect_ratiostringAspect ratio like `"16:9"` or `"9:16"` (ignored when editing).
durationintegerVideo length in seconds (1–15, ignored when editing).
image_pathstringLocal image to use as the starting frame.
image_urlstringPublic image URL to use as the starting frame.
modelstringVideo model (default `grok-imagine-video`).
prompt *stringVideo description, or the edit instruction for video editing.
reference_image_pathsarrayLocal images used as style/subject references.
reference_image_urlsarrayPublic image URLs used as style/subject references.
resolutionstring`"480p"` or `"720p"` (ignored when editing).
show_usagebooleanAppend a token usage and cost footer to the result (default False).
video_pathstringLocal video to edit (max 20 MB, .mp4, ≤ 8.7s).
video_urlstringPublic video URL to edit (.mp4, ≤ 8.7s).
get_chat_historyget a session's full transcript.
ParameterTypeDescription
sessionstringSession name to load from `chats/{session}.json` (default `default`).
get_filefetch file metadata by ID.
ParameterTypeDescription
file_id *stringID returned by `upload_file`.
get_file_contentdownload file content as text.
ParameterTypeDescription
file_id *stringID of the uploaded file.
max_bytesintegerMaximum bytes to return (default 500 000).
grok_agentunified agent that mixes files, images, web search, X search, code execution,
ParameterTypeDescription
agent_countinteger4 or 16. Only valid with `grok-4.20-multi-agent`.
allowed_domainsarrayWeb search allow-list (max 5, mutually exclusive with excluded).
allowed_x_handlesarrayX search handle allow-list (max 10, mutually exclusive with excluded).
enable_image_searchbooleanLet web search find and return image results.
enable_image_understandingbooleanLet search tools analyze images they encounter.
enable_video_understandingbooleanLet X search analyze videos in posts.
excluded_domainsarrayWeb search deny-list (max 5).
excluded_x_handlesarrayX search handle deny-list (max 10).
file_idsarrayIDs of previously uploaded files to attach as context.
from_datestringX search inclusive start date as `DD-MM-YYYY`.
guidelinesobjectModeration settings like `{"violence": "decline"}`. Categories are `nsfw`, `violence` and `profanity`. Doesn't work with multi-agent models.
image_generation_actionstringWhich image capabilities to expose: `"auto"` (default, generate and edit), `"generate"` (text-to-image only), or `"edit"` (editing only).
image_pathsarrayLocal image files to attach (sent as base64 data URIs).
image_urlsarrayPublic image URLs to attach.
include_inline_citationsbooleanEmbed `[1]`-style citation markers into the answer.
max_turnsintegerCap the agent's reasoning/tool turns.
modelstringGrok model driving the agent (default `grok-4.6`).
prompt *stringTask or question for the agent.
service_tierstring`"default"` or `"priority"`. Priority is processed faster at a higher token price.
sessionstringOptional session name for persistent history in `chats/{session}.json`.
show_usagebooleanAppend a token usage and cost footer to the answer (default False).
system_promptstringOptional system instruction prepended to the conversation.
to_datestringX search inclusive end date as `DD-MM-YYYY`.
use_code_executionbooleanEnable the Python code execution tool.
use_image_generationbooleanEnable the server-side image generation tool, letting the agent create and edit images mid-conversation. Images are saved under `images/`.
use_web_searchbooleanEnable the agentic web search tool.
use_x_searchbooleanEnable the agentic X (Twitter) search tool.
list_chat_sessionslist saved sessions in `chats/`.
list_fileslist uploaded files with sorting.
ParameterTypeDescription
limitintegerMaximum number of files to return (default 100).
orderstring`"asc"` or `"desc"` sort order (default `"desc"`).
sort_bystringField to sort by, such as `"created_at"`.
list_modelslist all Grok language and image models with live pricing.
retrieve_stateful_responsefetch a stored response by ID.
ParameterTypeDescription
response_id *stringID returned by a prior `stateful_chat` call.
stateful_chatcontinue a server-side stored conversation via `response_id`.
ParameterTypeDescription
modelstringGrok model id (default `grok-4.6`).
prompt *stringUser message to append.
response_idstringID of the previous response to continue from (omit to start fresh).
show_usagebooleanAppend a token usage and cost footer to the reply (default False).
system_promptstringOptional system instruction. Applied only on the first turn.
upload_fileupload a local document.
ParameterTypeDescription
expires_afterintegerOptional TTL in seconds. The file is deleted from xAI automatically once it expires (omit to keep the file indefinitely).
file_path *stringAbsolute or relative path to the local file.
web_searchautonomous web research with domain filters and citations.
ParameterTypeDescription
allowed_domainsarrayRestrict search to these domains (max 5, mutually exclusive with excluded).
enable_image_searchbooleanLet the agent search for and return image results.
enable_image_understandingbooleanLet the agent analyze images it encounters.
excluded_domainsarrayExclude these domains from search (max 5).
include_inline_citationsbooleanEmbed `[1]`-style citation markers into the answer text.
max_turnsintegerCap the agent's reasoning/tool turns.
modelstringGrok model used to drive the agent (default `grok-4.6`).
prompt *stringSearch query or research question.
show_usagebooleanAppend a token usage and cost footer to the answer (default False).
x_searchautonomous search over X (Twitter) posts, with handle and date filters.
ParameterTypeDescription
allowed_x_handlesarrayRestrict search to these handles (max 10, mutually exclusive with excluded).
enable_image_understandingbooleanLet the agent analyze images in posts.
enable_video_understandingbooleanLet the agent analyze videos in posts (X Search only).
excluded_x_handlesarrayExclude these handles (max 10).
from_datestringInclusive start date as `DD-MM-YYYY`.
include_inline_citationsbooleanEmbed `[1]`-style citation markers into the answer.
max_turnsintegerCap the agent's reasoning/tool turns.
modelstringGrok model driving the agent (default `grok-4.6`).
prompt *stringSearch query or question about X content.
show_usagebooleanAppend a token usage and cost footer to the answer (default False).
to_datestringInclusive end date as `DD-MM-YYYY`.

Security checks

Static checks derived from the repository 11 days ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository's README runs to about 709 words.
  • ✓License declaredThe repository declares the MIT license.
  • !Tests presentNo tests found. Behaviour changes may go unnoticed between versions.
  • ✓Dependencies pinnedDependency versions are pinned by uv.lock.
  • ✓No dynamic code executionScanned 4 source files and found no eval, dynamic Function or shell execution.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

What the source scan found

Transport
stdiosrc/server.py:1046
Starts other programs
No calls that start other programs
Outbound network calls
No outbound network calls
Writes or deletes files
3 callssrc/server.py:134, src/utils.py:64, src/utils.py:83
Lockfile
uv.lock

Pattern matches on the source text of 4 files: places to read, not proof of what the code does at run time.

Releases

v1.0.4v1.0.4 · 13 Oct 2026
v1.0.3v1.0.3 · 29 Aug 2026
v1.0.1v1.0.1 · 8 Jul 2026
v1.0.0v1.0.0 · 16 Jun 2026Initial stable release

README

The repository's README runs to about 709 words, fetched a month ago. The original in the repository is authoritative.

Read full README
Questions

About merterbak/Grok-MCP

How do I install merterbak/Grok-MCP?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is merterbak/Grok-MCP safe to use with an AI agent?

Its trust score is 59 out of 100 (fair). It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass Tests present and Scoped permissions. Conduid's scan of 4 source files found that it serves MCP over stdio and writes or deletes files (3 calls). Its dependencies are pinned by uv.lock. It has no ConduID identity yet, so agent calls to it are not receipted.

Is merterbak/Grok-MCP still maintained?

Yes — the latest release is v1.0.4 (13 Oct 2026), and the last commit was 8 days ago. The repository has 57 stars and 2 open issues.

What tools does merterbak/Grok-MCP provide?

Conduid read 22 tools from the source: chat, chat_with_files, chat_with_vision, clear_chat_history, code_executor, delete_file, delete_stateful_response, extend_video and 14 more. 20 of them publish their parameters, listed under Tools above.

What license is merterbak/Grok-MCP released under?

The repository declares the MIT license. That applies to the latest release, v1.0.4, as well.