agentleFS
zoharbabinzoharbabin/google-researcher-mcp/CLAUDE.md

google-researcher-mcp

CLAUDE.md36 starsChanged 8 months agoMITArchived repositoryView on GitHub

Required for HTTP transport (OAuth 2.1): - OAUTH_ISSUER_URL - OAUTH_AUDIENCE Optional: - PORT (default: 3000) - MCP_TEST_MODE=stdio (force STDIO only) - ALLOWED_ORIGINS (CORS origins) - ALLOW_PRIVATE_IPS (for local development)

  • Reads credentials
  • Installs packages

The file

We split this CLAUDE.md into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    STDIO Transport: No port (standard input/output)

    line 29

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

CLAUDE.md - Canonical Project Context

Project Overview

google-researcher-mcp - An MCP (Model Context Protocol) server providing Google Search, web scraping, and multi-source research tools for AI assistants.

Quick Commands

Build & Run

npm install                    # Install deps + Chromium browser (via postinstall)
npm run build                  # Build TypeScript to dist/
npm start                      # Start server (STDIO mode default)
npm run dev                    # Start with hot reload (development)
PORT=3001 npm start            # Start HTTP server on custom port

Testing

npm test                       # Run all unit/component tests (860+)
npm run test:coverage          # Generate code coverage report
npm run test:e2e               # Full E2E suite (STDIO + SSE + YouTube)
npm run test:e2e:stdio         # STDIO transport E2E only
npm run test:e2e:sse           # HTTP/SSE transport E2E only
npm run test:e2e:youtube       # YouTube transcript E2E only

Server Ports

  • Default: PORT 3000 (configurable via PORT env var)
  • STDIO Transport: No port (standard input/output)
  • HTTP/SSE Transport: Listens on PORT (default 3000)

Transport Modes

  1. STDIO (default): For Claude Desktop and direct MCP clients
  2. HTTP/SSE: For web clients, requires OAuth configuration

Environment Variables

Required for Google Search:

  • GOOGLE_CUSTOM_SEARCH_API_KEY
  • GOOGLE_CUSTOM_SEARCH_ID

Required for HTTP transport (OAuth 2.1):

  • OAUTH_ISSUER_URL
  • OAUTH_AUDIENCE

Optional:

  • PORT (default: 3000)
  • MCP_TEST_MODE=stdio (force STDIO only)
  • ALLOWED_ORIGINS (CORS origins)
  • ALLOW_PRIVATE_IPS (for local development)

Architecture

src/
├── server.ts          # Main server entry point
├── cache/             # Caching layer with persistence
├── documents/         # PDF, DOCX, PPTX parsing
├── prompts/           # MCP Prompts primitive
├── resources/         # MCP Resources primitive
├── schemas/           # Output schemas
├── shared/            # Shared utilities (OAuth, logging, etc.)
├── tools/             # Tool implementations
├── types/             # TypeScript types
└── youtube/           # YouTube transcript extraction

MCP Tools Provided

  • google_search - Google Custom Search
  • scrape_page - Web/PDF/DOCX scraping
  • search_and_scrape - Combined search + scrape
  • google_image_search - Image search
  • google_news_search - News search
  • academic_search - Academic paper search
  • patent_search - Patent search
  • sequential_search - Multi-step research tracking

MCP Resources (stats://*)

  • stats://tools - Per-tool execution metrics (calls, latency, cache hits)
  • stats://tools/{name} - Single tool metrics
  • stats://cache - Cache performance metrics
  • stats://events - Event store statistics

Monitoring Endpoints (HTTP mode)

  • GET /mcp/metrics/prometheus - Prometheus format metrics
  • GET /mcp/cache-stats - Cache statistics JSON
  • GET /mcp/event-store-stats - Event store statistics JSON

Key Files

  • package.json - Dependencies and scripts
  • .env.example - Environment variable template
  • README.md - User documentation
  • docs/ - Extended documentation

GitHub Issues

Single source of truth for project roadmap. Use gh issue list to view.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.