Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
6,000+ web scrapers for your AI agent, start free logo6,000+ web scrapers for your AI agent, start free

Apify gives your agent live web data: 6,000+ prebuilt scrapers and actors, MCP-ready. Sign up free with $5 in usage credits.

Try Apify free
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 48,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

A local stdio MCP bridge that forwards tool calls to the Google Developer Knowledge MCP endpoint and enhances search_documents with caching, result expansion, and concise markdown excerpts.

README.md

google-dev-knowledge-mcp-bridge

Local stdio MCP bridge for the Google Developer Knowledge MCP endpoint. It forwards upstream tool calls and adds a higher-signal search_documents mode that:

  • caches semantically equivalent search requests
  • expands top search hits with batch_get_documents
  • extracts concise markdown sections for easier downstream citation and synthesis

The bridge does not embed credentials in tracked code. Authentication is resolved from Application Default Credentials plus service account impersonation configured through environment variables.

Requirements

  • Node.js 18+
  • gcloud installed and authenticated with gcloud auth application-default login
  • Permission to impersonate the target service account

Installation

  1. Install dependencies:
   npm install
  1. Copy the sample environment file:
   cp .env.example .env
  1. Fill in only the values required for your environment.

Environment Variables

Required

  • GOOGLE_IMPERSONATE_SERVICE_ACCOUNT

Optional

  • GOOGLE_QUOTA_PROJECT_ID
  • DEBUG_MCP=false
  • AUTO_EXPAND_SEARCH=true
  • EXPAND_TOP_N=4
  • EXPAND_MAX_CHARS=9000
  • EXPAND_PER_DOC_MAX_CHARS=2600
  • CACHE_TTL_MS=300000
  • REQUEST_TIMEOUT_MS=20000
  • MAX_RETRIES=2
  • BACKOFF_BASE_MS=400

Authentication Flow

The bridge uses this sequence:

  1. Loads Application Default Credentials from the local environment.
  2. Impersonates the service account named in GOOGLE_IMPERSONATE_SERVICE_ACCOUNT.
  3. Calls the Google Developer Knowledge MCP endpoint with an OAuth access token.

If GOOGLE_QUOTA_PROJECT_ID is set, the bridge also sends it as the quota project header.

MCP Server Launch

Run the bridge directly over stdio:

npm start

Equivalent direct command:

node server.js

Example Codex MCP launch configuration:

{
  "mcpServers": {
    "google-dev-knowledge-mcp-bridge": {
      "command": "node",
      "args": ["/absolute/path/to/google-dev-knowledge/server.js"],
      "cwd": "/absolute/path/to/google-dev-knowledge",
      "env": {
        "GOOGLE_IMPERSONATE_SERVICE_ACCOUNT": "service-account@your-project.iam.gserviceaccount.com",
        "GOOGLE_QUOTA_PROJECT_ID": "your-project-id",
        "AUTO_EXPAND_SEARCH": "true",
        "DEBUG_MCP": "false"
      }
    }
  }
}

Repository Layout

  • server.js: CLI entrypoint
  • src/config.js: environment parsing and validation
  • src/google-client.js: ADC + impersonation + HTTP retry logic
  • src/content-pack.js: search expansion and excerpt construction helpers
  • src/bridge.js: stdio JSON-RPC loop and caching

Upstream MCP Tools

The bridge forwards upstream Google Developer Knowledge MCP tool calls. Common tools include:

  • search_documents
  • get_document
  • batch_get_documents

When AUTO_EXPAND_SEARCH=true, search_documents responses are transformed into a context pack that includes:

  • canonical source links
  • top ranked search chunks
  • extracted document excerpts sized for model context windows

All other tool calls are passed through unchanged.

Sample MCP Tool Calls

Example search_documents input:

{
  "query": "Cloud Storage create bucket required permissions"
}

Example get_document input:

{
  "name": "documents/cloud-storage-create-buckets"
}

Example batch_get_documents input:

{
  "names": [
    "documents/cloud-storage-create-buckets",
    "documents/iam-roles-overview"
  ]
}

Smoke Tests

Syntax check the bridge:

npm run check

Troubleshooting

Missing required environment

  • The process exits immediately if GOOGLE_IMPERSONATE_SERVICE_ACCOUNT is unset.

Failed authentication

  • Re-run gcloud auth application-default login.
  • Confirm the authenticated principal can impersonate the configured service account.
  • If you use quota billing, confirm GOOGLE_QUOTA_PROJECT_ID is valid for the caller.

Request failures or timeouts

  • Increase REQUEST_TIMEOUT_MS in slower environments.
  • Leave MAX_RETRIES above 0 if you want automatic retry on 429 and 5xx responses.

Publishing hygiene

  • .env and node_modules/ are ignored by .gitignore.
  • Use .env.example as the only tracked environment template.

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Vector & Memory servers.