oh-my-search

mcp
Guvenlik Denetimi
Basarisiz
Health Uyari
  • License — License: MIT
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Low visibility — Only 5 GitHub stars
Code Basarisiz
  • process.env — Environment variable access in integrations/pi/free-web.ts
  • process.env — Environment variable access in integrations/pi/oh-my-search.ts
  • spawnSync — Synchronous process spawning in packages/cli/bin/oh-my-search.mjs
  • process.env — Environment variable access in packages/cli/bin/oh-my-search.mjs
  • spawnSync — Synchronous process spawning in packages/cli/src/main.mjs
  • process.env — Environment variable access in packages/cli/src/update-check.mjs
Permissions Gecti
  • Permissions — No dangerous permissions requested

Bu listing icin henuz AI raporu yok.

SUMMARY

Zero-dependency multi-source web search & clean page fetch for humans and AI agents (CLI + MCP + Pi + SKILL.md) — works out of the box with no API keys.

README.md
oh-my-search

Zero-dependency multi-source web search & clean page fetch for humans and AI agents.
Decoupled CLI, Stdio MCP Server, Pi Extension, and ESM Core — works out of the box with no API keys.

version node >=20 zero dependencies 15 providers MIT license

简体中文  ·  Quick Start  ·  MCP Server  ·  Packages  ·  Providers  ·  SKILL.md

Origin — Google Antigravity's built-in search runs a small model to summarize results and never returns raw web content. Pairing a flagship model like Gemini 4 Neon with Antigravity's native search felt like "Lü Bu riding a dog" (吕布骑狗 — a top-tier warrior crippled by an absurdly weak mount). So I wired together a handful of free search and extraction backends, and it ended up completely outclassing search-giant Google's own agent search. That's how oh-my-search was born.


Architecture

oh-my-search architecture

Why oh-my-search?

  • Zero dependencies, zero install friction — pure Node.js (>= 20) ESM. Works straight from git clone with no node_modules required.
  • Cleanly decoupled surfaces — @oh-my-search/core, @oh-my-search/cli, and @oh-my-search/mcp are isolated workspace packages. CLI never imports MCP code; MCP never drags in CLI chrome.
  • Multi-source consensus + vertical fast-paths — races free general engines (Exa, Keenable, Parallel, DDG) with quorum merging, recency bucketing, and low-SNR host demotion; auto-routes site: queries directly to native APIs (GitHub, Hacker News, arXiv, Wikipedia, V2EX).
  • Agent-grade page fetching — structured native reads for GitHub Issues/PRs/Releases/Blobs (with #L10-L40 line slices & ETag 304 zero-quota caching) and X/Twitter posts (FxTwitter), clean Markdown cascade (local → keenable → parallel → jina), honest --offset pagination from a 10-minute full-doc cache, and local zero-dependency BM25 --objective extraction on any page.
  • Shell-safe for coding agents — searches with raw CLI flags (--dangerously-skip-permissions), error codes, and -site:csdn.net work unquoted without breaking option parsing.

Quick Start

Install

# Install globally directly from GitHub (gives you: oh-my-search, oms, oh-my-search-mcp, oms-mcp, and legacy free-web)
npm i -g github:mameikagou/oh-my-search

# Or clone and run directly with ZERO npm install
git clone https://github.com/mameikagou/oh-my-search.git
node oh-my-search/packages/cli/bin/oh-my-search.mjs search "Node.js 24 release notes"

Everyday CLI (oms / oh-my-search)

# Multi-source keyless search (consensus-ranked)
oms search "Model Context Protocol stdio spec"

# site: vertical fast-path & -site: exclusion (flags & error codes need no quoting)
oms search site:github.com/pingdotgg/t3code usage limits
oms search --dangerously-skip-permissions claude code -site:csdn.net

# Time-sensitive queries with recency bucketing
oms search "Anthropic latest release" --recency week

# Clean Markdown fetch + honest pagination + local BM25 objective extraction
oms fetch "https://github.com/pingdotgg/t3code/pull/43026"
oms fetch "https://docs.python.org/3/library/asyncio.html" --objective "TaskGroup exception handling"
oms fetch "https://docs.python.org/3/library/asyncio.html" --offset 8000

# Inspect active providers, quotas, env vars, and check/apply updates
oms providers
oms help config
oms update --check

Single source of truth for flags & config: run oms --help → oms <command> --help → oms help config.


MCP Server

@oh-my-search/mcp is a standalone, zero-dependency Stdio MCP server (JSON-RPC 2.0 over NDJSON) exposing web_search and fetch_content with cancellation (notifications/cancelled) and optional --tools search,fetch filtering.

Add it to Claude Code, Cursor, Windsurf, Codex, or any MCP client:

{
  "mcpServers": {
    "oh-my-search": {
      "command": "oh-my-search-mcp"
    }
  }
}

Or run directly from a local clone without global install:

{
  "mcpServers": {
    "oh-my-search": {
      "command": "node",
      "args": ["/path/to/oh-my-search/packages/mcp/bin/oh-my-search-mcp.mjs"]
    }
  }
}

AI Agent Integrations

  • Agent Skill (SKILL.md) — symlink or copy this repo into ~/.agents/skills/oh-my-search (or ~/.claude/skills/oh-my-search). See SKILL.md.
  • Pi Coding Agent Extension — symlink integrations/pi/oh-my-search.ts into ~/.pi/agent/extensions/oh-my-search.ts for native web_search & fetch_content tools.

Packages

Package Path Entrypoint / Bin Responsibility
@oh-my-search/core packages/core ESM API (searchWeb, fetchPage, runWebSearch, runFetchContent) Search routing, quorum merge, BM25 --objective, cache, ETag, 15 providers. Zero CLI, zero MCP.
@oh-my-search/cli packages/cli oh-my-search, oms Argument parser, two-level --help, terminal formatting, update [--check]. Zero MCP imports.
@oh-my-search/mcp packages/mcp oh-my-search-mcp, oms-mcp Standalone Stdio MCP server (web_search, fetch_content). Zero CLI imports.
Pi Extension integrations/pi oh-my-search.ts Native Pi agent tool adapter over core (plus free-web.ts compat shim).

Upgrading from free-web? Fully backward-compatible: free-web binary alias, FREE_WEB_* env vars, and ~/.config/free-web/config.json continue to work automatically (OMS_* and ~/.config/oh-my-search/config.json take precedence).


Providers

Run oms providers or oms help config for live status, exact env vars, config keys, and free-tier signup links.

Category Providers Notes
Zero-Key General Pool keenable, exa (anon), parallel (MCP), ddg Enabled out of the box, parallel fan-out + consensus merge
Zero-Key Vertical Fast-Path github, hn (Algolia), arxiv, wikipedia, v2ex, fxtwitter Auto-routed on matching site: or URL; GitHub supports ETag 304 + optional GITHUB_TOKEN / OMS_GITHUB_USE_GH_CLI=1
Zero-Key Fetch Cascade local, keenable, parallel, jina Clean Markdown extraction + GBK/GB18030 decoding + anti-bot fallback
Optional Free-Tier BYOK exa (API key), tavily, parallel (REST), baidu Off until you add a key — boosts recall and avoids anonymous rate limits
Self-Hosted / Paid Opt-In searxng, deepseek searxng via SEARXNG_URL; deepseek (paid ¥5/1k) stays opt-in only

License

MIT

Yorumlar (0)

Sonuc bulunamadi