MCP server · Audited from source
Gemini MCP server
by bsmi021/mcp-gemini-serverMIT licenceAudited 8 Oct 2026 · source c4ca84ee0d99
Is it safe? With care — CAUTION, grade C (77/100). It exposes 12 tools: 12 read, 0 write and 0 destructive. The audit recorded 23 findings (0 critical, 0 high, 6 medium, 16 low). Maintainer's description: This project provides a dedicated MCP (Model Context Protocol) server that wraps the @google/genai SDK. It exposes Google's Gemini model capabilities as standard MCP tools, allowing other LLMs (like Cline) or MCP-compatible systems to leverage Gemini's features as a backend workhorse.
Cite
Cite this page
ModelsAtlas. “Gemini MCP server (bsmi021/mcp-gemini-server)”. Retrieved 8 Oct 2026. https://modelsatlas.com/mcp/bsmi021/gemini-5
5 MCP servers are called Gemini. You are viewing bsmi021/mcp-gemini-server. Compare all 5 →
- rlabs-inc/gemini-mcp Org-owned★ 219!CAUTION
- houtini-ai/gemini-mcp Org-owned★ 34✕BLOCK
- aliargun/mcp-server-gemini★ 261✓SAFE
- bsmi021/mcp-gemini-server★ 36!CAUTION
Trust audit
Audit 0.4.1 · full source read 8 Oct 2026
23 findings, 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
- FilesystemDeclared5 observations
- NetworkDeclared5 observations
- ShellNone observedNothing seen in the source
- DependenciesNot pinnedSome ranges float
- 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
| Layer | What we check | Result |
|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS 3 findings |
L1 Static source | Secrets, path traversal, supply chain | WARN 19 findings |
L2 Instructions | Prompt injection and authority framing in docs and tool descriptions | PASS 1 finding |
L3 Inventory | Declared tools match the source | PASS |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED |
Provenance & runtime
Who published it, and what the audit could and could not run
Provenance
- Repository owner
bsmi021User accountAccount type recorded when we read the repository. - PackagePublished on npm
mcp-gemini-serverat version 0.2.0 - LicenceMITFrom the repository, as read at the audited commit.
- Last push17 months agoActivity of the repository when we read it.
- Source commit readc4ca84ee0d99The 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 inventory12 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 (23)
Sorted by severity
MEDIUMInformation disclosuredisclose.log_secret · src/services/mcp/McpClientService.ts:371
logger.debug(`Adding connection token to SSE request`);
- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMObfuscation / stealthobf.zero_width · src/server.ts:1
import { createServer } from "./createServer.js";- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMObfuscation / stealthobf.zero_width · src/services/ExampleService.ts:1
import { ConfigurationManager } from "../config/ConfigurationManager.js";- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMObfuscation / stealthobf.zero_width · src/services/index.ts:1
// Export all services from this barrel file
- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMObfuscation / stealthobf.zero_width · src/tools/exampleToolParams.ts:1
import { z } from "zod";- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMObfuscation / stealthobf.zero_width · src/tools/index.ts:1
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · src/services/gemini/GeminiCacheService.ts:6
} from "../../utils/errors.js";
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · src/services/gemini/GeminiCacheService.ts:7
import { logger } from "../../utils/logger.js";- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · src/services/gemini/GeminiCacheService.ts:8
import { CachedContentMetadata } from "../../types/index.js";- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · src/services/gemini/GeminiChatService.ts:11
} from "../../utils/errors.js";
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · src/services/gemini/GeminiChatService.ts:12
import { logger } from "../../utils/logger.js";- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · tests/integration/urlContextIntegration.test.vitest.ts:290
urls: ["http://192.168.1.1/admin"],
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · tests/unit/utils/UrlSecurityService.test.vitest.ts:163
await expect(service.validateUrl("http://127.0.0.1")).rejects.toThrow(- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · tests/unit/utils/UrlSecurityService.test.vitest.ts:166
await expect(service.validateUrl("http://0.0.0.0")).rejects.toThrow(- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · tests/unit/utils/UrlSecurityService.test.vitest.ts:172
await expect(service.validateUrl("http://192.168.1.1")).rejects.toThrow(- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · tests/unit/utils/UrlSecurityService.test.vitest.ts:175
await expect(service.validateUrl("http://10.0.0.1")).rejects.toThrow(- Why
- No further detail recorded for this rule.
- Fix
- —
LOWObfuscation / stealthobf.homoglyph · tests/unit/utils/UrlSecurityService.test.vitest.ts:261
await expect(service.validateUrl("https://gоogle.com")).rejects.toThrow(- Why
- No further detail recorded for this rule.
- Fix
- —
LOWObfuscation / stealthobf.homoglyph · tests/unit/utils/UrlSecurityService.test.vitest.ts:264
await expect(service.validateUrl("https://аpple.com")).rejects.toThrow(- Why
- No further detail recorded for this rule.
- Fix
- —
LOWSupply chainsupply.unpinned · package.json
@google/genai, @modelcontextprotocol/sdk, @octokit/graphql, @octokit/rest, @types/better-sqlite3, @types/eventsource, @types/inquirer, @types/uuid
- Why
- 37 dependency range(s) float
- Fix
- pin exact versions or ship a lockfile
INFOPrompt injectionprompt.credential_read · README.md:1607
For running tests that require API access, create a `.env.test` file in the project root with the following variables:
- Why
- asks the agent to read credentials
- Fix
- —
Tools it exposes
12 declared in source · 0 destructive
| Tool | Risk | What it does |
|---|---|---|
addTool | read | A tool that adds two numbers |
calculate | read | Perform calculations |
complexDataTool | read | A tool that returns a complex JSON structure |
complex_function | read | A function with complex nested parameters |
echoTool | read | A tool that echoes back the input message |
gemini_code_review_stream | read | Stream code review results for local git diffs using Gemini models |
get_weather | read | Get weather information |
my-project | read | A TypeScript project |
testFunction | read | A test function |
test_function | read | Test function |
tool1 | read | First tool |
tool2 | read | Second tool |
Install
Package version 0.2.0 · audited commit c4ca84e
Read the findings first. The most severe is Information disclosure (medium) at src/services/mcp/McpClientService.ts.
One-click links open your editor with the config below filled in, exactly as the snippets show it, pinned to version 0.2.0. The audit covers commit c4ca84e only.
claude mcp add mcp-gemini-server --env GITHUB_API_TOKEN=${GITHUB_API_TOKEN} --env GOOGLE_GEMINI_API_KEY=${GOOGLE_GEMINI_API_KEY} --env MCP_CONNECTION_TOKEN=${MCP_CONNECTION_TOKEN} -- npx -y [email protected]{
"mcpServers": {
"mcp-gemini-server": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"GITHUB_API_TOKEN": "${GITHUB_API_TOKEN}",
"GOOGLE_GEMINI_API_KEY": "${GOOGLE_GEMINI_API_KEY}",
"MCP_CONNECTION_TOKEN": "${MCP_CONNECTION_TOKEN}"
}
}
}
}The command pins the package version recorded in the source (0.2.0); the audit covers commit c4ca84ee0d99. Transport: sse · stdio · streamable-http. Reads these environment variables: GITHUB_API_TOKEN, GOOGLE_GEMINI_API_KEY, MCP_CONNECTION_TOKEN. Give it the narrowest token it needs.
Audit history
- !CAUTION C 77 / 100
First audit ·
c4ca84ee0d99
README badge
For maintainers · updates on every re-audit
[](https://modelsatlas.com/mcp/bsmi021/gemini-5/)
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 Gemini MCP server
What is the Gemini MCP server?
What tools does Gemini expose?
Is Gemini safe to connect to an agent?
What credentials does Gemini need?
How does Gemini run?
How current is this page?
Which Gemini MCP server is the right one?
Sources
- bsmi021/mcp-gemini-server on GitHub — the source we read, its licence, stars and activityObserved · 8 Oct 2026
- ModelsAtlas trust audit — CAUTION verdict for commit c4ca84ee0d99Observed · 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.
- What is the Gemini MCP server?
- What tools does Gemini expose?
- Is Gemini safe to connect to an agent?