web-search-mcp: Instructions file for Claude Code

CLAUDE.md

web-search-mcp CLAUDE.md is an instructions file for Claude Code from sydasif/web-search-mcp. It costs 1,443 tokens per session, scanned A, original, MIT.

Repository instructions for developing web-search-mcp, a Python FastMCP server that exposes web-search and data-retrieval tools to AI systems. They describe commands, tests, and the server’s registry-and-implementation structure.

In plain words
What is it for?
Use them when installing dependencies, running the server, linting, formatting, type-checking, running tests, or locating tool registrations and implementations.
Why use it?
They give an AI coding assistant the project’s expected commands and architecture, reducing guesswork when changing the repository.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions .claude-plugin; mentions CLAUDE.md; mentions Claude Code.

This is sydasif/web-search-mcp's own configuration. It tells Claude Code how to work on web-search-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything web-search-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to sydasif/web-search-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/sydasif/web-search-mcp/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/sydasif/web-search-mcp

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for web-search-mcp CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/sydasif/web-search-mcp/claude-md/github.svg)](https://agentmods.dev/instructions/sydasif/web-search-mcp/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/sydasif/web-search-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/sydasif/web-search-mcp/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for web-search-mcp CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/sydasif/web-search-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/sydasif/web-search-mcp/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,443 This file is loaded in full into every session.
When invoked 1,443 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.01443 $0.01443
Opus 5.5 $0.00577 $0.00577
Sonnet 5.5 $0.00289 $0.00289
Haiku 4.5 $0.00144 $0.00144

Measured 4d ago against content hash 4cc151d37eaa, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

web-search-mcp CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 101 lines

How it starts

The opening of the file, as written. The whole thing — 101 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Design docs → wiki — tool selection guide, design decisions, recommended workflows, tools status, plugin setup, and development standards.

Common Commands

Development

  • Install dependencies: uv sync
  • Run server: uv run omnisearch (or uv run python -m web_search_mcp.server)
  • Lint: uv run ruff check .
  • Format: uv run ruff format .
  • Type check: uv run mypy .

Version / Release

  • Bump version: update pyproject.toml, web_search_mcp/__init__.py, .claude-plugin/plugin.json, .claude-plugin/marketplace.json to same version
  • After version bump: run uv sync to update lockfile and rebuild package
  • Plugin auto-updates on reload when version changes

Testing

  • Run all tests: uv run pytest
  • Run single test file: uv run pytest tests/test_module.py
  • Run specific test: uv run pytest tests/test_module.py::test_function_name
  • Run with coverage: uv run pytest --cov=web_search_mcp

Architecture

High-Level Design

The project is a FastMCP server that exposes a suite of web search and data retrieval tools to LLMs. It follows a "Registry-Implementation" pattern:

  • Registry (server.py): The central point where FastMCP is initialized and tools are decorated with @mcp.tool. It handles the mapping between MCP tool definitions and the underlying Python implementations.
  • Implementation Layers:
    • search/: Implements core web search engines (e.g., DuckDuckGo, Exa).
    • social/: Integrates with community platforms (GitHub, Reddit, Hacker News, X, LinkedIn).
    • tools/: Contains specialized utilities (arXiv, Wikipedia, Digg, Techmeme, Polymarket, Rerank).
  • Internal Infrastructure (_ prefixed folders):
    • _http/: Centralized HTTP client logic to ensure consistent timeouts, headers, error handling, and SSRF protection (blocks private/internal IP addresses).
    • _models/: Shared Pydantic models for requests and responses to ensure type safety across the server.
    • _config/: Manages settings, environment variables, and global rate limits. See limits.py for hard-coded result depth constraints (e.g., quick, default, deep) used by social tools.
    • _utils/: Low-level helpers for markdown formatting, result scoring, and date-window utilities.

Read the full file on GitHub · 101 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago Changed · +1 lines · +30 tokens per session 4cc151d37eaa
  2. 7d ago Changed · +13 lines · +269 tokens per session ddb06728b905
  3. 8d ago Changed · +6 lines · +82 tokens per session 61e423038efb
  4. 1mo ago Changed · -2 tokens per session 938e20b36eeb
  5. 2mo ago First seen · 81 lines · 1,064 tokens per session scan A e6b09196d6c8

Subscribe to this mod's changes

web-search-mcp CLAUDE.md is an instructions file published in the GitHub repository sydasif/web-search-mcp (25 stars, last pushed 4d ago), licensed MIT. It adds 1,443 tokens to every session, about $0.0058 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

web-search-mcp CLAUDE.md compared with instructions from other repositories

web-search-mcp CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
web-search-mcp CLAUDE.mdsydasif/web-search-mcpInstructions file254d agoMITA1,443Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode