npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

gemini-web-mcp

v0.3.0

Published

MCP server with Gemini-powered web tools: search, content extraction, deep research, and image generation

Readme

Gemini Web MCP

npm version License: MIT Node.js

An MCP server that brings Gemini-powered web tools to your AI coding assistant—web search, content extraction, deep research, and image generation.

✨ Features

| Tool | Description | |------|-------------| | search_web | Web search with AI-synthesized summaries and citations | | read_url_content | Extract and convert web content (HTML, PDF, JSON, Markdown, Plain Text, CSV, XML/RSS) to clean markdown | | view_content_chunk | Navigate large documents chunk by chunk | | start_deep_research | Initiate multi-step background research with Gemini's Deep Research Agent | | check_deep_research | Check status, uptime, error details, and retrieve synthesized research report | | create_image | Generate or edit images using natural language |


One-Click Install

| IDE | Install | |-----|---------| | Cursor | Install in Cursor | | VS Code | Install in VS Code | | VS Code Insiders | Install in VS Code Insiders |

Note: After clicking, replace your-api-key with your Gemini API key. VS Code requires version 1.101+.


🚀 Installation

Using npx (Recommended)

Requires Node.js 22+ (Node.js 22 LTS or newer).

npx gemini-web-mcp
{
  "servers": {
    "gemini-web": {
      "command": "npx",
      "args": ["-y", "gemini-web-mcp"],
      "env": {
        "GEMINI_API_KEY": "your-api-key"
      }
    }
  }
}
{
  "mcpServers": {
    "gemini-web": {
      "command": "npx",
      "args": ["-y", "gemini-web-mcp"],
      "env": {
        "GEMINI_API_KEY": "your-api-key"
      }
    }
  }
}

Add to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "gemini-web": {
      "command": "npx",
      "args": ["-y", "gemini-web-mcp"],
      "env": {
        "GEMINI_API_KEY": "your-api-key"
      }
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json (macOS/Linux) or %USERPROFILE%\.codeium\windsurf\mcp_config.json (Windows):

{
  "mcpServers": {
    "gemini-web": {
      "command": "npx",
      "args": ["-y", "gemini-web-mcp"],
      "env": {
        "GEMINI_API_KEY": "your-api-key"
      }
    }
  }
}
{
  "mcpServers": {
    "gemini-web": {
      "command": "npx",
      "args": ["-y", "gemini-web-mcp"],
      "env": {
        "GEMINI_API_KEY": "your-api-key"
      }
    }
  }
}

Add to ~/.claude/settings.json:

{
  "mcpServers": {
    "gemini-web": {
      "command": "npx",
      "args": ["-y", "gemini-web-mcp"],
      "env": {
        "GEMINI_API_KEY": "your-api-key"
      }
    }
  }
}
  1. Open the Agent side panel → click ...MCP Store
  2. Click Add Custom Server
  3. Add this configuration:
{
  "gemini-web": {
    "command": "npx",
    "args": ["-y", "gemini-web-mcp"],
    "env": {
      "GEMINI_API_KEY": "your-api-key"
    }
  }
}

Using npm (Global Install)

npm install -g gemini-web-mcp

Then use gemini-web-mcp as the command instead of npx -y gemini-web-mcp in your MCP configs.


⚙️ Configuration

| Variable | Required | Default | Description | |----------|:--------:|---------|-------------| | GEMINI_API_KEY | ✓ | — | Your Gemini API key (also supports GOOGLE_API_KEY fallback) | | GEMINI_WEBSEARCH_MODEL | | gemini-3.7-flash | Model for web search | | GEMINI_DEEP_RESEARCH_AGENT | | deep-research-preview-04-2026 | Deep Research agent name (deep-research-preview-04-2026 for standard speed, deep-research-max-preview-04-2026 for maximum thoroughness) | | GEMINI_IMAGE_MODEL | | gemini-3.1-flash-image | Image generation model | | LOG_LEVEL | | info | Logging level (debug, info, warn, error) |


🛠️ Tools Reference

search_web

Performs a web search and returns an AI-synthesized summary with citations.

| Parameter | Type | Required | Default | Description | |-----------|------|:--------:|---------|-------------| | query | string | ✓ | — | Search query | | domain | string | | — | Optional domain to recommend the search prioritize | | model | string | | Configured default | Override default search model |


read_url_content

Fetches a URL and converts its content to clean markdown. Supports HTML, PDF, JSON, Markdown, Plain Text, CSV, and XML/RSS. Returns chunk summaries for navigation.

| Parameter | Type | Required | Description | |-----------|------|:--------:|-------------| | url | string | ✓ | URL to fetch |


view_content_chunk

Retrieves a specific chunk from a previously fetched document.

| Parameter | Type | Required | Description | |-----------|------|:--------:|-------------| | document_id | string | ✓ | The URL used in read_url_content | | position | number | ✓ | Chunk position to view |


start_deep_research

Initiates a deep, multi-step web research job in the background using Google's Deep Research Agent. Returns a job_id, which you can use to check the status of completion using check_deep_research(job_id=...).

| Parameter | Type | Required | Default | Description | |-----------|------|:--------:|---------|-------------| | prompt | string | ✓ | — | Your comprehensive research question or topic |

Returns: { "job_id": "...", "status": "in_progress" }


check_deep_research

Checks the status of a Deep Research job using its job_id and returns the complete synthesized report once finished.

| Parameter | Type | Required | Default | Description | |-----------|------|:--------:|---------|-------------| | job_id | string | ✓ | — | The research tracking ID from start_deep_research | | include_citations | boolean | | true | Include resolved source URLs in the report |

Returns:

  • In Progress: { "job_id": "...", "status": "in_progress", "uptime": "2m 15s" }
  • Completed: { "job_id": "...", "status": "completed", "report_text": "..." }
  • Failed: { "job_id": "...", "status": "failed", "error": "Error 403 - ..." }

create_image

Generate images from text prompts or edit existing images.

| Parameter | Type | Required | Default | Description | |-----------|------|:--------:|---------|-------------| | prompt | string | ✓ | — | Text description or edit instructions | | images | string[] | | — | File paths for image editing (up to 7) | | aspect_ratio | string | | "1:1" | "1:1", "16:9", "9:16", "4:3", "3:4" | | model | string | | Configured default | Override default image generation model |


🧑‍💻 Development

git clone https://github.com/bharatvansh/gemini-web-mcp.git
cd gemini-web-mcp
npm install
npm run dev

| Script | Description | |--------|-------------| | npm run dev | Run with hot reload | | npm run build | Build for production | | npm run typecheck | Type check only | | npm start | Start production server |


📄 License

MIT