Best for
- Large-context, whole-codebase code review
- Teams that already hold enterprise Gemini Code Assist seats
- Developers who want to consult Gemini inside clients like Claude or Codex
- File-scoped prompts using @ syntax for precise references
Ask Gemini gives users who already have enterprise Gemini CLI access a convenient way to obtain a second model's opinion inside clients like Claude, with 1M+ token context and @ file syntax as its main strengths. However, since 2026-06-18 the Gemini CLI is enterprise-only, so free and individual subscription accounts cannot use it, sharply limiting its audience. Code also leaves the machine, and the project is unofficial and third-party, so data handling and account eligibility should be evaluated first.
Strongest · Setup experience 12/20 Weakest · Reliability 9/20
Static review · not runReviewed 2026-09-25
Read the FMRS scoring method →Runtime:Node.js 20+
XAI_API_KEY
Key for the xAI (Grok) API, obtained from the xAI console; needed only when using Grok features.
GMCPT_TIMEOUT_MS
Timeout for Gemini CLI execution in milliseconds; default 300000 (5 minutes).
GMCPT_LOG_LEVEL
Log verbosity: debug, info, warn, or error; default warn.
{
"mcpServers": {
"gemini": {
"command": "npx",
"args": ["-y", "@ask-llm/gemini-mcp"],
"env": {
"GMCPT_TIMEOUT_MS": "300000",
"GMCPT_LOG_LEVEL": "warn"
}
}
}
}
Shown for Claude Code. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.
{
"servers": {
"gemini": {
"command": "npx",
"args": [
"-y",
"@ask-llm/gemini-mcp"
],
"env": {
"GMCPT_TIMEOUT_MS": "300000",
"GMCPT_LOG_LEVEL": "warn"
}
}
}
}
Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).
claude mcp add gemini -e GMCPT_TIMEOUT_MS=300000 -e GMCPT_LOG_LEVEL=warn -- npx -y @ask-llm/gemini-mcp
Run it in a terminal; replace any <…> placeholders with your own values first.
The client's tool list should show ask-gemini, ask-gemini-edit, fetch-chunk, get-usage-stats, and ping; calling the ping tool and getting a successful connection response confirms the setup.
Once connected, you can ask your AI assistant things like:
No matching tools
Listed from the project's documentation, not tested by this site.
Ask Gemini is the Gemini-only local MCP server from the Lykhoyda/ask-llm repository (package @ask-llm/gemini-mcp, version 1.2.1). It uses stdio transport to connect existing MCP clients to the Gemini CLI, letting Claude Code, Claude Desktop, Cursor, Codex CLI, and other clients ask Gemini to review a diff, evaluate a plan, or give an independent second opinion. Its main draws are Gemini's 1M+ token context and @ file syntax, which allow ingesting a whole codebase in one call, plus live progressive output via stream-json. The repository also ships Codex, Claude, Grok, Antigravity, and Ollama servers, which are not part of this server. The source states clearly that since 2026-06-18 the Gemini CLI is enterprise-only (Gemini Code Assist Standard/Enterprise seats); free, Google AI Pro, and Ultra accounts lost access, and non-enterprise accounts get actionable guidance instead of output. This is an unofficial third-party tool, not affiliated with Anthropic, Google, OpenAI, or xAI, and is MIT licensed.
Upstash's official server providing up-to-date third-party library docs for AI coding assistants
AI-powered NPM package analysis MCP server
An independent control layer that gives AI coding agents budgets, brakes, and receipts
GitHub's official MCP server for managing repos, issues, PRs, and workflows via natural language
Data synced 2026-09-25 Read the FMRS scoring method