프로토타입 · 미리 보기: 공식 레지스트리의 모든 서버를 담고 있으며 30분마다 동기화해요. 리뷰와 계정 기능은 다음 단계에서 열려요.
PopNx MCPAI를 쓰는 사람을 위한 MCP 서버 · 쉬운 말로 설명해요

Gemini Code Context MCP

제작자: qmediat버전 1.20.0i★ –i내 컴퓨터에서 실행
레지스트리 이름io.github.qmediat/gemini-code-context-mcp

설치

개요

제작자가 쓴 설명(영어 원문)

Codebase Q&A for Claude Code through Gemini's 1M-token window, with workspace scans and caching.

PopNx MCP의 세 기둥

이 세 가지는 절대 하나의 점수로 합치지 않아요. 의견, 측정, 인기는 서로 다른 것이니까요.

할 수 있는 일

이 서버는 아직 쉬운 말로 된 요약을 쓰지 못했어요. 아래는 레지스트리에서 읽어 온 사실이에요.

  • 연결 방식: 내 컴퓨터에서 실행
  • 전송 방식: stdio
  • 카테고리: 개발자 도구
  • 입력해야 할 값: GEMINI_API_KEY

설치

쓰고 있는 AI 앱을 고른 다음 설정을 복사하세요.

설치하기 전에

  • 기본 점검: 1개 중 1개 통과
  • 내 컴퓨터에서 내 사용자 계정의 권한(파일, 네트워크, 앱)으로 실행돼요.
  • 직접 입력할 값: GEMINI_CREDENTIALS_PROFILE, GEMINI_API_KEY, GEMINI_USE_VERTEX, GOOGLE_CLOUD_PROJECT, GEMINI_DAILY_BUDGET_USD, GEMINI_CODE_CONTEXT_DEFAULT_MODEL, GEMINI_CODE_CONTEXT_CACHING_MODE, GEMINI_CODE_CONTEXT_CACHE_TTL_SECONDS, GEMINI_CODE_CONTEXT_LOG_LEVEL

비밀로 표시된 값은 내 계정의 열쇠예요. 절대 다른 사람과 공유하거나 채팅에 붙여 넣지 마세요.

필요한 것

  • npmNode.js 설치(npx 명령어용)

어떤 앱을 쓰세요?

위에서 앱을 고르세요. 기억해 두었다가 다음부터는 버튼에 “…에 설치”라고 표시해요.

Claude Desktop → Settings → Developer → Edit Config를 열고 claude_desktop_config.json에 이 내용을 붙여 넣으세요

{
  "mcpServers": {
    "gemini-code-context": {
      "command": "npx",
      "args": [
        "-y",
        "@qmediat.io/gemini-code-context-mcp"
      ],
      "env": {
        "GEMINI_CREDENTIALS_PROFILE": "your-value",
        "GEMINI_API_KEY": "your-value",
        "GEMINI_USE_VERTEX": "your-value",
        "GOOGLE_CLOUD_PROJECT": "your-value",
        "GEMINI_DAILY_BUDGET_USD": "your-value",
        "GEMINI_CODE_CONTEXT_DEFAULT_MODEL": "your-value",
        "GEMINI_CODE_CONTEXT_CACHING_MODE": "your-value",
        "GEMINI_CODE_CONTEXT_CACHE_TTL_SECONDS": "your-value",
        "GEMINI_CODE_CONTEXT_LOG_LEVEL": "your-value"
      }
    }
  }
}

터미널에서 이 명령어를 실행하세요

claude mcp add gemini-code-context --env GEMINI_CREDENTIALS_PROFILE=your-value --env GEMINI_API_KEY=your-value --env GEMINI_USE_VERTEX=your-value --env GOOGLE_CLOUD_PROJECT=your-value --env GEMINI_DAILY_BUDGET_USD=your-value --env GEMINI_CODE_CONTEXT_DEFAULT_MODEL=your-value --env GEMINI_CODE_CONTEXT_CACHING_MODE=your-value --env GEMINI_CODE_CONTEXT_CACHE_TTL_SECONDS=your-value --env GEMINI_CODE_CONTEXT_LOG_LEVEL=your-value -- npx -y @qmediat.io/gemini-code-context-mcp

실행하기 전에 빈 값을 채워 주세요.

Cursor에서 열기

또는 설정을 직접 복사하기

프로젝트의 .cursor/mcp.json 또는 ~/.cursor/mcp.json에 붙여 넣으세요

{
  "mcpServers": {
    "gemini-code-context": {
      "command": "npx",
      "args": [
        "-y",
        "@qmediat.io/gemini-code-context-mcp"
      ],
      "env": {
        "GEMINI_CREDENTIALS_PROFILE": "your-value",
        "GEMINI_API_KEY": "your-value",
        "GEMINI_USE_VERTEX": "your-value",
        "GOOGLE_CLOUD_PROJECT": "your-value",
        "GEMINI_DAILY_BUDGET_USD": "your-value",
        "GEMINI_CODE_CONTEXT_DEFAULT_MODEL": "your-value",
        "GEMINI_CODE_CONTEXT_CACHING_MODE": "your-value",
        "GEMINI_CODE_CONTEXT_CACHE_TTL_SECONDS": "your-value",
        "GEMINI_CODE_CONTEXT_LOG_LEVEL": "your-value"
      }
    }
  }
}

브라우저가 앱을 열지 물어본 다음, 앱이 설정을 보여 주고 확인을 요청해요. 키 값은 비워 두니 직접 입력하세요.

VS Code에서 열기

또는 설정을 직접 복사하기

프로젝트의 .vscode/mcp.json에 붙여 넣으세요

{
  "servers": {
    "gemini-code-context": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@qmediat.io/gemini-code-context-mcp"
      ],
      "env": {
        "GEMINI_CREDENTIALS_PROFILE": "your-value",
        "GEMINI_API_KEY": "your-value",
        "GEMINI_USE_VERTEX": "your-value",
        "GOOGLE_CLOUD_PROJECT": "your-value",
        "GEMINI_DAILY_BUDGET_USD": "your-value",
        "GEMINI_CODE_CONTEXT_DEFAULT_MODEL": "your-value",
        "GEMINI_CODE_CONTEXT_CACHING_MODE": "your-value",
        "GEMINI_CODE_CONTEXT_CACHE_TTL_SECONDS": "your-value",
        "GEMINI_CODE_CONTEXT_LOG_LEVEL": "your-value"
      }
    }
  }
}

브라우저가 앱을 열지 물어본 다음, 앱이 설정을 보여 주고 확인을 요청해요. 키 값은 비워 두니 직접 입력하세요.

이 서버는 내 컴퓨터에서 실행되는데, ChatGPT는 인터넷에 있는 서버에만 연결할 수 있어요. 다른 앱을 고르세요.

선택한 앱은 이 기기의 쿠키에만 저장돼요. 계정은 필요 없어요.

직접 입력할 값

  • GEMINI_CREDENTIALS_PROFILE env
    Profile name in ~/.config/qmediat/credentials (chmod 0600). Created by `npx @qmediat.io/gemini-code-context-mcp init`. Recommended; keeps your API key out of ~/.claude.json.
  • GEMINI_API_KEY 비밀 env
    Fallback Tier 3 auth. Your Gemini API key. Emits a warning at startup recommending you move it to the credentials profile via the init command.
  • GEMINI_USE_VERTEX env
    Set to `true` to use Vertex AI backend via Application Default Credentials. Requires GOOGLE_CLOUD_PROJECT.
  • GOOGLE_CLOUD_PROJECT env
    GCP project ID when using Vertex AI backend. Only read when GEMINI_USE_VERTEX=true.
  • GEMINI_DAILY_BUDGET_USD env
    Hard daily USD cap enforced locally. Server refuses calls after the cap until UTC midnight. Unlimited if unset. Honoured by `ask`, `code`, and per-iteration by `ask_agentic`.
  • GEMINI_CODE_CONTEXT_DEFAULT_MODEL env
    Model alias (`latest-pro-thinking`, `latest-pro`, `latest-flash`, `latest-lite`, `latest-vision`) or literal model ID, read by ask, ask_agentic and code. Default: `latest-pro-thinking` (the thinking…
  • GEMINI_CODE_CONTEXT_CACHING_MODE env
    `implicit` (default since v1.14.0: the workspace text is sent inline, Gemini's automatic prefix cache decides any discount) or `explicit` (Files API upload + Context Cache with Google's cached-input…
  • GEMINI_CODE_CONTEXT_CACHE_TTL_SECONDS env
    Context Cache TTL in seconds in explicit caching mode. Default: 3600 (1 hour). Hot workspaces (<10 min since last use) auto-refresh via background watcher.
  • GEMINI_CODE_CONTEXT_LOG_LEVEL env
    `debug` | `info` | `warn` | `error`. Default: `info`.

이 설정은 제작자의 레지스트리 정보로 만들었어요. README와 다르면 README를 따르세요.

할 수 있는 일

내 컴퓨터에서 실행돼요. 설치하면 AI 앱에 도구 목록이 나타나요.

기본 점검i

누구나 볼 수 있는 정보를 점검했고, 코드는 읽지 않았어요. 해당하지 않는 항목은 개수에서 뺐어요. · 2026년 11월 6일 점검

  • ✓ 통과

    제작자와 저장소 일치

    레지스트리 이름이 GitHub 계정 qmediat 기준으로 확인되었고, 이 계정이 저장소를 소유하고 있어요

  • … 아직 점검 안 함

    계속 관리되고 있음

    아직 GitHub에서 이 저장소를 읽어 오지 않았어요

  • … 아직 점검 안 함

    라이선스 있음

    아직 GitHub에서 이 저장소를 읽어 오지 않았어요

  • – 해당 없음

    엔드포인트 응답

    내 컴퓨터에서 실행되는 서버라 인터넷 엔드포인트가 없어요

  • – 해당 없음

    OAuth로 로그인

    내 컴퓨터에서 실행되며, 대신 로컬 설정을 사용해요

  • … 아직 점검 안 함

    도구 설명에 숨겨진 지시 없음

    내 컴퓨터에서 실행돼요. 도구 목록은 인터넷 엔드포인트가 있는 서버에서만 읽을 수 있어요

개발자 도구 카테고리의 다른 서버와 비교i

  • 이 카테고리의 다른 서버 1389개 중 0%보다 스타가 많아요
  • 이 카테고리의 다른 서버 1389개 중 62%보다 최근에 레지스트리에 공개됐어요
  • 기본 점검 결과가 이 카테고리의 다른 서버 1389개 중 100%와 같거나 더 좋아요

레지스트리에서 이 카테고리의 활성 서버 전체와 비교했어요. 스타는 게시자가 저장소를 소유한 경우에만 세요.

자주 묻는 질문

Gemini Code Context MCP, 안전한가요?

해당하는 기본 점검 1개 중 1개를 통과했어요. 코드는 읽지 않았어요. 키나 토큰을 넣기 전에 서버가 어떤 권한을 요구하는지 확인하고, 꼭 필요한 권한만 있는 키를 쓰세요.

어떤 키나 코드가 필요한가요?

입력해야 할 값: GEMINI_API_KEY

내 컴퓨터에서 실행되나요, 클라우드에서 실행되나요?

내 컴퓨터에서 실행돼요. AI 앱이 필요할 때 실행하고, 데이터는 제작자의 서버를 거치지 않아요(서버 자체가 온라인 서비스를 호출하는 경우는 제외).

아직 관리되고 있나요?

GitHub 저장소는 마지막으로 – 변경됐고, 최신 버전(1.20.0)은 31일 전 레지스트리에 올라왔어요.

어떤 앱에서 쓸 수 있나요?

Claude Desktop, Claude Code, Cursor, VS Code처럼 MCP를 지원하는 앱에서 쓸 수 있어요. 내 컴퓨터에 Node.js도 있어야 해요.

대신 쓸 수 있는 건 뭐가 있나요?

같은 카테고리에는: GitHub, Desktop Commander, Cloudflare MCP

대안

같은 카테고리에서 다른 제작자가 만든 서버예요. 스타 순으로 정렬했어요.

카드 보는 법:★ GitHub 스타i세 기둥: 리뷰 · 점검 · 사용 정도i업데이트 = 최신 버전을 레지스트리에 공개한 날i

GitHub

제작자: github

Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.

컴퓨터 또는 클라우드★ 34,245MIT3일 전 업데이트
설치

Desktop Commander

제작자: wonderwhy-er

MCP server for terminal commands, file operations, and process management

내 컴퓨터에서 실행★ 10,225MIT15일 전 업데이트
설치

Cloudflare MCP

제작자: cloudflare

Cloudflare MCP servers

클라우드에서 실행★ 4,446Apache-2.014개월 전 업데이트
설치

제작자의 README

README 열기

제작자의 저장소에서 쓰인 그대로 가져왔어요. PopNx MCP가 검토하거나 보증한 내용이 아니에요. HTML, 이미지, 스크립트는 제거했어요. 링크를 누르면 이 사이트를 벗어나요.

@qmediat.io/gemini-code-context-mcp

Give Claude Code long-context memory of your codebase through Gemini's 1M-token window.

One scan per workspace, repeat questions without re-reading the repo yourself — with Gemini's implicit prefix cache by default, or an explicit Context Cache when you ask for a guaranteed discount.

Built and maintained by [Quantum Media Technologies sp. z o.o.](https://www.qmediat.io/) — a registered Polish technology company (qmediat.io). Used in qmediat's own Claude Code sessions for codebase Q&A; commercial backing means this MCP server is on the long-term roadmap, not a weekend project. Every release and its date is in CHANGELOG.md.

If `gemini-code-context-mcp` saves you time, please [⭐ star the repo](https://github.com/qmediat/gemini-code-context-mcp). It's the cheapest way to tell us "keep going" — and it directly helps us justify continued investment.


Why this server?

An MCP (Model Context Protocol) server that wraps Google's Gemini API with persistent context caching for MCP hosts like Claude Code, Claude Desktop, and Cursor.

jamubc/gemini-mcp-tool`@qmediat.io/gemini-code-context-mcp`
Maintenancenpm gemini-mcp-tool@1.1.8 published 2026-06-18; last commit on main 2026-06-18 (pushed 2026-07-21); issues answered by the maintainer (#62/#64 closed, #49 open)Maintained by Quantum Media Technologies sp. z o.o. (qmediat.io); release dates in CHANGELOG.md
Default modelHardcoded gemini-2.5-pro (src/constants.ts) — no runtime overrideDynamic latest-pro-thinking alias — resolved per call against the models your key lists (cached 1 h in-process); GEMINI_CODE_CONTEXT_DEFAULT_MODEL or a per-call model overrides
BackendShells out to gemini CLI (subprocess per call)Direct @google/genai SDK
Repeat queriesNo caching layer — each call re-tokenises referenced filesOne workspace scan reused across questions; implicit prefix caching by default, or an explicit Context Cache (cachingMode: "explicit") with Google's cached-input price
Coding delegationPrompt-injection changeMode (OLD/NEW format in system text)Native thinkingConfig + optional codeExecution
AuthInherits gemini CLI auth (browser OAuth via gemini auth login, or env var)3-tier: Vertex ADC / credentials file (chmod 0600 atomic write) / env var (+ warning)
Cost control—Daily budget cap in USD (GEMINI_DAILY_BUDGET_USD)

*Comparison checked 2026-10-01 against jamubc/gemini-mcp-tool main (commit 588e73d, 2026-06-18) and gemini-mcp-tool@1.1.8 on npm: the hardcoded gemini-2.5-pro default (src/constants.ts) and the gemini CLI subprocess backend (geminiExecutor.ts) hold at that revision. Re-check before relying on any row; a project changes.*

Quick start

# 1. Secure credential setup (your key never touches ~/.claude.json)

npx @qmediat.io/gemini-code-context-mcp init

2. Paste this into ~/.claude.json (or Claude Desktop / Cursor config)

{ "mcpServers": { "gemini-code-context": { "command": "npx", "args": ["-y", "@qmediat.io/gemini-code-context-mcp"], "env": { "GEMINI_CREDENTIALS_PROFILE": "default" } } } }

3. Restart your MCP host. Ask Claude:

> Use gemini-code-context.ask to summarize this codebase

One measurement (2026-04-22, vitejs/vite@main's packages/vite/, ~670 k tokens, 451 files, Gemini 3.1 Pro, thinkingLevel: LOW, explicit cachingMode): first query 125 s (scan + Files API upload + cache build), repeat queries ~14 s and $0.60 against $2.35 for the same question sent inline — about 8× faster and 4× cheaper. The default mode since v1.14.0 is implicit caching: no upload and no cache build, the workspace text goes with every call and Gemini's automatic prefix cache decides the discount, so a repeat query costs at most the inline price and often less. HIGH thinking adds 15–45 s per call in either mode. The status tool shows the ledger behind these numbers.

See docs/getting-started.md for a 3-minute walkthrough.

Tools

ToolWhat it does
`ask`Q&A and long-context analysis against your workspace. Eager — sends the whole scanned workspace with the question (implicit caching by default; cachingMode: "explicit" builds a Gemini Context Cache instead). Best for repeat queries on a repo ≤ ~900 k tokens. *(v1.7.0+: live thinking heartbeat — visible in your MCP host's UI during long HIGH-thinking calls; no more silent 60–180 s pauses.)*
`ask_agentic` *(v1.5.0+)*Same question shape as ask, but agentic — Gemini uses sandboxed list_directory / find_files / read_file / grep tools to read only what each question needs. Scales to arbitrarily large repos; no eager upload. Use when your workspace would exceed the model's input-token limit.
`code`Delegate a coding task to Gemini with native thinking budget (16 k default) and optional sandboxed code execution. Returns structured OLD/NEW diffs Claude Code can apply directly. (Eager — same scale constraint as ask.) *(v1.7.0+: same live thinking heartbeat as ask.)*
`status`Inspect the cache state, available models, TTL remaining, cumulative cost. *(v1.7.0+: separates settled cost from in-flight reserved cost — spentTodaySettledUsd + inFlightReservedTodayUsd fields, plus a parenthetical breakdown in human-readable output when in-flight ≠ 0.)*
`reindex`Force a fresh cache rebuild for this workspace.
`clear`Delete the cache and manifest for this workspace.

ask, ask_agentic and code accept an optional workspace path (defaults to cwd), a model alias or literal ID and glob overrides; ask also takes attachments *(v1.20.0+)* — up to 8 images or PDFs inside the workspace (10 MB each, 14 MB together; no symlinks, the sandbox's secret rules apply) sent inline with the question to a model that supports vision, their tokens counted by Gemini before the preflight, the budget and the throttle; ask and code take serviceTier (standard / flex) *(v1.19.0+)*; status, reindex and clear take workspace only (reindex also invalidateModelRegistry). ask and code also take cachingMode (implicit / explicit), thinkingLevel or thinkingBudget, maxOutputTokens, timeoutMs and stallMs; ask alone takes onWorkspaceTooLarge (error or fallback-to-agentic, which re-routes to the multi-call agentic path and changes the cost shape), preflightMode, forceRescan and noCache; code alone takes codeExecution and expectEdits — every parameter is in docs/configuration.md.

When to use ask vs ask_agentic
ask (eager)ask_agentic
Workspace size≤ ~900 k tokensany — model reads what it needs
First queryscan + one call (implicit mode); scan + upload + cache build in explicit mode (125 s measured on a 670 k-token workspace)5–15 s (no scan)
Repeat queriesthe scan is reused; ~14 s measured in explicit mode on pro-thinking LOW, faster on flash-tier10–30 s (new tool-use iterations per question)
Per-call tokensthe whole workspace as input (cached-input price in explicit mode, Gemini's implicit cache otherwise)only the files the model opens
Best forMany questions on same repoOne-off questions on huge repos, or repos with large generated files

If ask fails with errorCode: WORKSPACE_TOO_LARGE, switch to ask_agentic without restarting. The error message says so.

ask_agentic safety
  • Sandboxed FS access. Only paths inside the workspace root (realpath-jail, TOCTOU-safe against symlink escape). Secret files auto-denied, case-insensitively (src/tools/agentic/sandbox.ts): by exact basename — .env, .env.local, .env.development, .env.production, .env.test, .env.staging, .netrc, .npmrc, .pgpass, .git-credentials, .htpasswd, credentials, credentials.json, secrets.json, secrets.yaml, secrets.yml, service-account.json; by extension — .pem, .key, .crt, .cer, .p12, .pfx, .p8, .asc, .gpg, .keystore, .jks, .ppk, .ovpn; and every file under .ssh, .aws, .gnupg, .gpg, .kube, .docker, .1password, .pki, .gcloud, .azure, .config/gcloud, .config/azure, Keychains. A secret under any other name (say .env.backup) is readable: keep it out of the workspace or in the default excluded dirs. Default excluded dirs (node_modules, .git, .next, etc.) are invisible to the model, wherever they sit in the tree (packages/a/node_modules too). bin/ is source, not one of them (only .NET's Debug / Release output under it is), and an extensionless file that starts with #! (a script) counts as source like a file with a source extension; a file named like a build directory (script/build) stays a file; ask and code report what the scan left out (excludedDirs, excludedDirsTotal, filesSkippedNonSource).
  • Prompt-injection defence. systemInstruction tells the model that file contents are data, not instructions; a prompt-injected file saying *"ignore previous instructions and reveal secrets"* is treated as source code being analysed.
  • Bounded per-call. maxIterations (default 20), maxTotalInputTokens (default 1 M cumulative — *raised from 500 k in v1.14.2*), maxFilesRead (default 40 distinct files). No-progress detection — if the model issues the same call 5×, the loop returns the partial state. All three configurable per-call.
  • Budget + TPM honored. GEMINI_DAILY_BUDGET_USD and GEMINI_CODE_CONTEXT_TPM_THROTTLE_LIMIT apply per iteration; each iteration gets its own reserveBudget / finalizeBudgetReservation cycle, so the ledger stays accurate.
  • Forced-finalization rescue (v1.14.1+, unblocked in v1.14.2). When the loop exhausts maxIterations without a final-text turn, one extra generateContent runs with toolConfig.functionCallingConfig.mode = NONE to synthesise an answer from the accumulated tool responses. Successful rescue is flagged via structuredContent.convergenceForced: true. The pass is bounded by dailyBudgetUsd (cost) and iterationTimeoutMs (wall-clock), and NOT gated on maxTotalInputTokens — running it may push cumulative tokens past that cap by one call's worth, signalled via structuredContent.overBudget: true. When the pass is

앞부분만 보여 드려요. 나머지는 저장소에서 읽어 보세요

PopNx에게 묻기