# io.github.Lykhoyda/ask-gemini (npm · @ask-llm/gemini-mcp)

Bridge Claude with Gemini CLI for AI-to-AI collaboration, code review, and second opinions

- Trust score: 70/100 (medium)
- Change this week: +35
- Registry status: active
- Liveness: live
- Owner verified: no
- Last scored: 2026-08-03

## Components

- npm · `@ask-llm/gemini-mcp`: 70/100 (this document), [markdown](https://verifymcp.io/servers/lykhoyda-ask-gemini/ask-llm-gemini-mcp.md), [page](https://verifymcp.io/servers/lykhoyda-ask-gemini/ask-llm-gemini-mcp)

## Channel facts

- Registry: `npm`
- Package: `@ask-llm/gemini-mcp`
- Version: `1.7.0`
- Transport: `stdio`

## Trust breakdown

How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. Scores are 0–100 per category. Scoring method: https://verifymcp.io/docs/scoring (what has changed: https://verifymcp.io/docs/scoring/changelog)

Scored 2026-08-03.

- **Supply Chain Security**: 86/100
  - No malware found by supply-chain analysis.
  - Only part of the dependency tree could be resolved (94 of 98), so this covers what we could see, not the whole tree.
  - No install/post-install scripts declared.
  - Only part of the dependency tree could be resolved (94 of 98), so this covers what we could see, not the whole tree.
- **Provenance & Transparency**: 45/100
  - Source repository is publicly reachable at the declared URL.
  - Provenance check failed: no build-provenance attestation is published.
  - Clear OSI-approved license (MIT).
  - Actively maintained (last published 7 days ago).
  - Disclosure check failed: no security disclosure policy was found in the source repository.
- **Schema Quality & AI Usability**: 82/100
  - 100% of prompts and resources have a non-trivial description (not blank, and not just the item's name).
  - AI-judged instruction clarity (good).
  - Tool/resource definitions use about 604 tokens (~100/item across 6 items; 5 tools + 1 resources), lean.
  - Usage-examples check failed: none of the tools include examples.
- **Stability & Change Management**: 27/100
  - Stability observed for 8 of 30 days with no destabilising changes; credit accrues until the full window elapses.
- **Tool Coverage**: 100/100
  - 100% of tools have a non-trivial description (not blank, and not just the tool's name).
  - 100% of tool parameters carry a description.
  - Structured output schemas are declared (40% of tools); any adoption earns full credit.
- **Capabilities**: 100/100
  - Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.

## Install

### Claude

```bash
claude mcp add lykhoyda-ask-gemini -- npx -y @ask-llm/gemini-mcp
```

### Codex

```bash
codex mcp add lykhoyda-ask-gemini -- npx -y @ask-llm/gemini-mcp
```

### opencode

```json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "lykhoyda-ask-gemini": {
      "type": "local",
      "command": [
        "npx",
        "-y",
        "@ask-llm/gemini-mcp"
      ],
      "enabled": true
    }
  }
}
```

### OpenClaw

```bash
openclaw mcp add lykhoyda-ask-gemini --command npx --arg -y --arg @ask-llm/gemini-mcp
```

### Hermes

```yaml
mcp_servers:
  lykhoyda-ask-gemini:
    command: "npx"
    args: ["-y", "@ask-llm/gemini-mcp"]
```

### Other

```json
{
  "mcpServers": {
    "lykhoyda-ask-gemini": {
      "command": "npx",
      "args": [
        "-y",
        "@ask-llm/gemini-mcp"
      ]
    }
  }
}
```

## Changelog

Every change recorded for this component, newest first. Days that predate change tracking, or that we cannot explain, say so: "we were watching and nothing happened" and "we were not watching" are different claims.

### 2026-08-02 (score 70, +30)

- [security regression] Provenance: unverified → fail
- [security improvement] Known CVEs: unverified → partial
- [security improvement] Install scripts: unverified → pass
- [security improvement] Malware scan: unverified → pass
- [functional improvement] Maintenance: unverified → pass
- [functional improvement] Dependency health: unverified → partial
- [functional improvement] License: unverified → pass
- [functional] Licence: MIT

### 2026-08-01 (score 40, +1)

No change was recorded against any check on this day. Stability & Change Management went from 17 to 20. That category is still filling its 30-day observation window: 5 days of observed history at the previous scan, 6 at this one. The score rises as the window fills, whether or not the server changes.

### 2026-07-31 (score 39, +24)

- [functional] We updated how we score, so this day's move reflects our rubric, not a change to the server

### 2026-07-30 (score 15, −48)

- [security regression] Known CVEs: partial → unverified
- [functional regression] Tool coverage: 100 → unverified
- [functional regression] Schema quality: 100 → unverified
- [functional regression] Dependency health: partial → unverified

### 2026-07-29 (score 63, +55)

- [security regression] Provenance: unverified → fail
- [security improvement] Known CVEs: unverified → partial
- [security improvement] Install scripts: unverified → pass
- [functional improvement] Schema quality: unverified → good
- [functional improvement] Maintenance: unverified → pass
- [functional improvement] Schema quality: unverified → 100
- [functional improvement] License: unverified → pass
- [functional improvement] Tool coverage: unverified → 100
- [functional] Licence: MIT

### 2026-07-28 (score 8, −27)

- [functional regression] Schema quality: 100 → unverified
- [functional regression] Tool coverage: 100 → unverified
- [functional improvement] Dependency health: unverified → partial

### 2026-07-27 (score 35)

First indexed and scored.

## MCP tools (5)

### `ask-gemini` (~218 tokens)

Send a prompt to Gemini CLI (defaults to gemini-3.1-pro-preview with automatic Flash fallback on quota errors). Use for code review, second opinions, analysis, and AI-to-AI collaboration. Do not override the model parameter unless the user explicitly asks. Returns both human-readable text and a structured response (provider, model, sessionId, usage) via outputSchema.

Input parameters:

- `model` (string): DO NOT set this parameter. The tool automatically uses gemini-3.1-pro-preview and falls back to gemini-3.6-flash on quota errors. Only set this if the user explicitly requests a specific model.
- `prompt` (string, required): The question, code review request, or analysis task to send to Gemini CLI. Use @ syntax to include files (e.g., '@largefile.js explain this')
- `sessionId` (string): Optional Gemini session ID to resume a prior conversation. Use the [Session ID: ...] value from a previous response to continue the same chat with full prior context.

Output parameters:

- `model` (string)
- `provider` (string)
- `response` (string)
- `sessionId` (string)
- `usage` (object)

### `ask-gemini-edit` (~178 tokens)

Send a code edit request to Gemini CLI and get structured OLD/NEW edit blocks back. Gemini analyzes the files and returns precise, applicable code changes. Use this when you want Gemini to suggest specific code modifications rather than just analysis.

Input parameters:

- `includeDirs` (array): Additional directories to include in Gemini's context. Must be relative paths (e.g., 'packages/api'). Useful for monorepos.
- `model` (string): DO NOT set this parameter. The tool automatically uses gemini-3.1-pro-preview and falls back to gemini-3.6-flash on quota errors.
- `prompt` (string, required): Describe the code changes you want. Reference files with @ syntax (e.g., '@src/app.ts refactor the error handling'). Gemini will return structured OLD/NEW edit blocks that can be applied directly.

### `fetch-chunk` (~66 tokens)

Retrieves cached chunks from a changeMode response. Use this to get subsequent chunks after receiving a partial changeMode response.

Input parameters:

- `cacheKey` (string, required): The cache key provided in the initial changeMode response
- `chunkIndex` (number, required): Which chunk to retrieve (1-based index)

### `ping` (~30 tokens)

Test connectivity with the MCP server

Input parameters:

- `message` (string): A message to echo back to test the connection

### `get-usage-stats` (~81 tokens)

Get the current MCP server's session usage stats: total LLM calls, token totals (input/output/thinking/cached), wall time, and breakdowns per provider and per model. No data leaves your machine — counts are tracked in-memory for the lifetime of the server process. Returns both human-readable markdown and a structured JSON snapshot via outputSchema.

Output parameters:

- `byModel` (object)
- `byProvider` (object)
- `fallbackCount` (number)
- `totalCachedTokens` (number)
- `totalCalls` (number)
- `totalDurationMs` (number)
- `totalInputTokens` (number)
- `totalOutputTokens` (number)
- `totalThinkingTokens` (number)

## Diagnostics

Captured diagnostic sections: Provenance, Dependencies. The full working is on the page: https://verifymcp.io/servers/lykhoyda-ask-gemini/ask-llm-gemini-mcp#diagnostics

## Score history

- 2026-08-03: 70
- 2026-08-02: 70
- 2026-08-01: 40
- 2026-07-31: 39
- 2026-07-30: 15
- 2026-07-29: 63
- 2026-07-28: 8
- 2026-07-27: 35

## Links

- npm package: https://www.npmjs.com/package/@ask-llm/gemini-mcp
- Socket report: https://socket.dev/npm/package/@ask-llm/gemini-mcp
- Repository: https://github.com/Lykhoyda/ask-llm
- Changelog RSS feed: https://verifymcp.io/servers/lykhoyda-ask-gemini/ask-llm-gemini-mcp/changelog.xml
- Changelog JSON feed: https://verifymcp.io/servers/lykhoyda-ask-gemini/ask-llm-gemini-mcp/changelog.json
- HTML version of this page: https://verifymcp.io/servers/lykhoyda-ask-gemini/ask-llm-gemini-mcp
