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 🙏

© 2025 – Pkg Stats / Ryan Hefner

mcp-gemini-web

v0.2.3

Published

MCP server exposing a grounded web search tool powered by Gemini 2.5 + Google Search grounding, with optional research mode.

Readme

MCP Gemini Web Search

A Model Context Protocol (MCP) server that provides grounded web search capabilities powered by Google's Gemini 2.5 Flash and Google Search grounding.

Features

  • Single web_search tool with dual modes:
    • normal: Fast, single-step grounded search
    • research: Multi-step research with query planning → execution → synthesis
  • Google Search grounding for accurate, cited results
  • Opinionated system instructions that prioritize official documentation for API/library queries
  • Configurable models and endpoints

Installation

Via npx (Recommended)

npx -y mcp-gemini-web

Via npm install

npm install -g mcp-gemini-web
mcp-gemini-web

Environment Variables

  • GEMINI_API_KEY or GOOGLE_API_KEY: Required - Your Google AI API key
  • GENAI_BASE_URL or GEMINI_BASE_URL: Optional - Custom API endpoint
  • MODEL: Optional - Model to use (default: gemini-2.5-flash)

MCP Client Configuration

Claude Desktop

Add to your claude_desktop_config.json:

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

Other MCP Clients

The server communicates via stdio using the MCP protocol. Configure your client to run:

npx -y mcp-gemini-web

Usage Examples

Normal Search (Fast)

{
  "tool": "web_search",
  "arguments": {
    "q": "what is Node.js 22 LTS",
    "mode": "normal"
  }
}

Research Mode (Deep)

{
  "tool": "web_search",
  "arguments": {
    "q": "compare axios vs fetch for production Node.js usage",
    "mode": "research", 
    "max_steps": 4
  }
}

Tool Parameters

  • q (string, required): The search query
  • mode (enum, optional): Search mode - "normal" (default) or "research"
  • model (string, optional): Gemini model to use
  • max_tokens (number, optional): Max output tokens (64-8192)
  • max_steps (number, optional): Max research steps for research mode (1-6, default: 3)

Development

# Clone and install
git clone <repository-url>
cd mcp-gemini-web
npm install

# Development mode
npm run dev

# Build
npm run build

# Test
npm test

# Start built version
npm start

License

MIT

Contributing

Pull requests welcome! Please ensure tests pass and follow the existing code style.