Skip to content
المشاريع

حول

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.

الذكاء الاصطناعي وتعلّم الآلة

كيف تُقاس هذه الأرقام

النمو المقاس للنجوم

خلال 24 ساعة
٠
خلال 7 أيام
جارٍ جمع السجل
خلال 15 يومًا
جارٍ جمع السجل
خلال شهر
جارٍ جمع السجل

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

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)
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 (search, fetchPage, runWebSearch, runFetchContent) Search routing, quorum merge, BM25 --objective, cache, ETag, 16 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.

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), anysearch (anon), 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, anysearch, jina Clean Markdown extraction + GBK/GB18030 decoding + anti-bot fallback
Optional Free-Tier BYOK anysearch (1k/day), exa (API key), tavily, parallel (REST), baidu Optional free keys lift anonymous caps and boost recall
Self-Hosted / Paid Opt-In searxng, deepseek searxng via SEARXNG_ENDPOINT; deepseek (paid ¥5/1k) stays opt-in only

License

MIT

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…