SERA
by GuraQwQ
README.md
<div align="center">
**English** · [简体中文](docs/readme/README_zh.md)
<img src="docs/assets/sera-icon.svg" alt="SERA magnifying glass" width="128" height="128" />
# SERA: Search Everything
### One CLI to search the web, communities, databases, and archives. Optional MCP for agents.
**Find the original sources. Read the material. Answer with evidence.**
[](https://github.com/GuraQwQ/sera-search/actions/workflows/ci.yml)
[](https://nodejs.org/)
[](LICENSE)
[Quick start](#quick-start) · [Connect your agent](#connect-your-agent) · [How it works](#how-it-works) · [What you can search](#what-you-can-search) · [Documentation](#documentation)
</div>
Need to verify a product specification, trace a claim to its source, or recover a page that disappeared? Ask your agent to investigate with SERA. It finds relevant sources, reads the original material, follows unresolved leads, and returns evidence you can revisit.
SERA connects your agent to tools for searching websites, code, communities, academic records, media databases, and internet archives. Use the CLI with the bundled Skill for agent workflows; MCP exposes the same core when your client needs it. Search results lead to original pages, posts, comments, structured records, or historical snapshots, with URLs, versions, timestamps, and saved evidence IDs.
## Quick start
For Windows x64, download the [lightweight ZIP](https://github.com/GuraQwQ/sera-search/releases/download/v2.0.0/SERA-v2.0.0-lite-windows-x64.zip) or [full ZIP](https://github.com/GuraQwQ/sera-search/releases/download/v2.0.0/SERA-v2.0.0-full-windows-x64.zip), extract it, and run `node portable.mjs` in PowerShell, or `sera.cmd` in Command Prompt. Packages built from the current source also provide `.\sera.ps1` for PowerShell 7.3+. Both PowerShell paths preserve URL query strings and inline JSON arguments. The full package includes all six optional components and their dependencies. See the [release package guide](docs/releases.md).
Requires **Node.js 22 or later**. Run from source; an npm release is not yet available.
```bash
git clone https://github.com/GuraQwQ/sera-search.git
cd sera-search
npm ci --cache ./.cache/npm
npm run build
node dist/cli.js install --home ./.sera
node dist/cli.js capabilities --home ./.sera --sources bing,web --json
```
Search public sources and read the original pages:
```bash
node dist/cli.js research "TypeScript official release notes" --home ./.sera --sources bing --read-sources web --read-limit 3 --json
```
In a terminal, `install` starts a setup wizard: it finds existing tool entry points, fills missing credentials from supported environment variables, rechecks saved platform sessions, and lets you select additional platforms. For unattended setup, run `node dist/cli.js install --home ./.sera --yes --json`; `--sources github,youtube` limits this setup run. API credentials are recorded for later request validation. Free-tier confirmation and platform login are separate choices; see [setup options](docs/cli.md#安装配置与调用后端).
Choose `--home` before setup so data, dependencies, and caches go to your intended drive; the source example uses the checkout's `.sera/` instead of the default user directory. Repeating setup keeps existing credential fields and user-disabled settings while filling missing items. Use the same `--home` or `SERA_HOME` for later calls. Available public sources can be requested directly; actual network, authentication, and quota outcomes appear in `runs`.
Setup discovers local tools; downloads require an explicit `--components` selection. Add repository tools, browser extraction, and HTML metadata parsing when needed:
```bash
node dist/cli.js install --home F:/tools/sera-data --components ghgrab,scrapling,metadata-parser --python D:/Python/python.exe --browser "D:/Apps/Edge/msedge.exe"
```
Use paths to your existing Python and Chromium-based browser. Components live under `<home>/tools`, with managed caches under `<home>/cache/integrations`. Repeating `install` verifies or repairs the selected components. See [optional integrations](docs/integrations.md) for compatibility and backend tool discovery.
Optional account and geospatial extensions add scoped username discovery, profile correlation, avatar matching, and queries for geographic objects and events. Install `aliens-eye`, `sherlock`, or `gods-eye-view` with `install --components`, then discover each extension's tools with `backend SOURCE`. Your agent chooses the sites, signals, areas, and follow-up steps; structured results are saved as evidence. See [account and geospatial extensions](docs/extensions.md).
Already have a URL or object ID? Read it directly:
```bash
node dist/cli.js read-many "steam:105600" "sm8628149" --home ./.sera --keyword "release_date" --keyword "firstRetrieve" --json
```
See the [CLI guide](docs/cli.md) for commands and the [configuration guide](docs/configuration.md) for API keys, proxies, and platform backends.
## Connect your agent
Start with the CLI and bundled Skill. Link the Skill to your agent's standard skill directory, replacing the destination with that client's actual directory:
```bash
node dist/cli.js install --home ./.sera --skill-dir /absolute/path/to/agent-skills --json
```
Keep the package directory available: the Skill links to it. For each task, the agent inspects the relevant `capabilities` and `config`, chooses an operation, registers an available environment Key with `login --from-env` when needed, and verifies the selected platform session. It then searches, reads original material, and follows missing evidence using the same `--home`.
MCP is optional. Registration supports Codex, Pi, OMP, Claude Code, Hermes, OpenClaw, and Antigravity. Select the clients you use; for example, register an existing local Codex installation:
```bash
node dist/cli.js install --home ./.sera --mcp-client codex --json
```
`--mcp-client` accepts comma-separated IDs and reports each registration separately. Clients must already be installed. For one client, `--mcp-command` selects its existing CLI; JSON clients can use `--mcp-config` to select an existing data drive. Registration stores absolute Node, package entry, data, and configuration paths; Keys stay in SERA's credential store. Start a new session or refresh the client's tool list after registration. MCP offers `sera_setup`, `sera_config`, and `sera_login` for the same setup and session workflow; see [client adapters and configuration](docs/mcp.md).
Then ask your agent:
```text
Use SERA to trace Chinese-language support in the Steam edition of AIR.
Identify the exact product and version, then check the official store,
announcements, and historical snapshots. Report interface, subtitles,
and audio separately, with evidence, conflicts, and unresolved fields.
```
## How it works
```mermaid
flowchart LR
A[Your question] --> B[Agent identifies entities and missing facts]
B --> C[SERA selects sources, searches, and reads]
C --> D[Original material, versions, dates, evidence IDs]
D --> E[Agent verifies and answers]
E -->|Unresolved leads| B
```
- **Choose the right material.** Prefer official pages for versions, dates, and specifications; read original posts and comments for user feedback; locate original URLs and snapshots for historical questions. Account sources without valid credentials report that they are unavailable.
- **Read less, keep the original.** Use `query` and `keywords` to locate relevant passages. `read-many` deduplicates URLs and reads up to three documents concurrently. Fresh cached evidence can be reused; `refresh` requests a new copy.
- **Follow the missing evidence.** `research` tracks subjects, required criteria, and preferences, reuses saved material, and searches for remaining gaps. The agent reviews claims and cited passages; SERA checks coverage and counts. Save CLI progress with `--state`; see the [research workflow](skills/sera-search/references/workflows.md).
- **Inspect the route taken.** Ordinary queries use the general search providers. Inferred material types suggest optional actions in the plan. Explicit `sources` queries providers in parallel and preserves their result order. Follow `runs` and any `retryAfterSeconds` before retrying a limited source.
Full material remains available under its evidence ID. Passages retain Unicode offsets, and ranking organizes retrieval results. Multiple engines finding the same article still provide one original source. See the [evidence guide](docs/evidence.md) for reading scope, content types, and follow-up retrieval.
## What you can search
SERA currently registers **126 built-in source IDs** and exposes **18 MCP tools**. Configuration can add source IDs through structured connectors. Registration does not mean every source is available: operations depend on configuration, permissions, coverage, and the provider's actual response.
| Material | Example sources | What you get |
|---|---|---|
| Websites, news, and official documentation | Bing, Exa, Tavily, Brave, Zhipu, Doubao, SerpAPI | Candidate URLs and snippets; original text through supported reading backends |
| Repositories, code, and platform content | GitHub, Agent Reach, OpenCLI, Bilibili, V2EX | Repositories, release notes, files, posts, or platform records through discoverable operations |
| Academic records and encyclopedias | Crossref, OpenAlex, PubMed, MediaWiki, Wikidata | Bibliography, abstracts, page source, revisions, and structured entity IDs |
| Research artifacts and public data | OpenReview, Europe PMC, Hugging Face, UniProt, World Bank, Eurostat | Reviews, open research material, scientific records, and bounded data queries |
| Subtitles, live archives, and event histories | Filmot, Holodex, Aicu, Danmakus, GH Archive | Matching segments, timestamps, event records, and reported collection limits |
| Games, animation, music, and media records | Steam, Niconico, VNDB, Bangumi, MusicBrainz, and others | Object IDs, release versions, public game reviews, specifications, credits, and metadata |
| Historical pages and lost information | Wayback Machine, Internet Archive | Capture indexes, actual snapshots, collection metadata, and file listings |
| Communities, comments, and image sources | LinuxDo, Heybox, YouTube, NetEase Music, image and reverse-image providers | Original posts, comment pages, reply relationships, hosting pages, and match clues |
| Repository and browser tools, news feeds, and channel catalogs | ghgrab, Scrapling, metadata_parser, Google News RSS, Free-TV IPTV | Repository trees and files, browser responses, declared HTML metadata, RSS records, and channel metadata |
| Account and geospatial extensions | Aliens_eye, Sherlock, God's Eye View | Scoped account candidates, profile links, avatar similarity, geographic records, observations, and predictions |
| Known QQ resources and WeChat publications | QQ avatar and profile connectors, WeChat account and article connectors | Visible object metadata, article discovery, and authorized publication records within each operation's scope |
Discover relevant connector definitions with `sera connectors --sources modrinth,scryfall --json`, or `node dist/cli.js connectors` from source. MCP clients use `sera_connectors`. Definitions describe operations, input schemas, access conditions, quotas, and limitations; configure `sources`, `connectorFiles`, or `connectors` to add or customize them. See the [connector guide](docs/connectors.md).
For a known video, discover `channels --sources opencli --platform youtube --json`, then use the declared `read` operation to select video metadata or subtitles. `read --content-type subtitle` selects YouTube transcripts or Bilibili subtitles through the configured OpenCLI session. Release versions, reviews, and continuation parameters are documented in the [material and operation guide](docs/specialist-sources.md).
Automatic routing prefers anonymous free access, then free authenticated access, then recurring free quotas; authenticated quota sources rank below anonymous quota sources. Paid operations and one-time trials are excluded. Mixed or unverified billing requires `freeTierConfirmed: true` in the source configuration after checking the account's free tier. This declaration does not cap the provider's billing; verify account settings and reported quotas.
Game Wikis and visual-novel communities use catalogs loaded on demand:
```bash
node dist/cli.js search "Guide" --home ./.sera --sources wiki --platform terraria --group game-wikis --json
node dist/cli.js search "CLANNAD impressions" --home ./.sera --sources sites --platform fuwanovel --group galgame --json
```
MCP calls accept `group:"game-wikis"` or `group:"galgame"` within the same connection. See the [source guide](skills/sera-search/references/sources.md) and [domain routing guide](skills/sera-search/references/domains.md) for exact objects and reading scope.
Use `backend ghgrab` or `backend scrapling` to discover the upstream tools and their schemas; MCP clients use `sera_backend`. Scrapling sessions remain available within the same MCP connection. Google News aggregation records remain metadata until publisher text is actually retrieved; IPTV results describe catalog entries and stream URLs, with playback availability unverified. HTML metadata records page declarations, which require separate factual verification.
## Results and evidence
Responses distinguish snippets, original text, metadata, subtitles, and comments. Partial failures preserve successful results; `status`, `runs`, and `cacheWarnings` identify follow-up work. Login, paid API access, rate limits, and snapshot availability are determined by actual requests.
Saved evidence can be located, paged, or refreshed from the chosen data directory. Multiple engines can lead to the same article; the agent verifies claims against original material, time and version boundaries, and publisher relationships.
## Documentation
| Guide | Contents |
|---|---|
| [Configuration](docs/configuration.md) | Credentials, proxies, Agent Reach, OpenCLI, and data directories |
| [Connectors](docs/connectors.md) | Dynamic source definitions, operation schemas, access policies, and quotas |
| [CLI](docs/cli.md) | Search, research, reading, comments, images, and exit codes |
| [Evidence](docs/evidence.md) | Passages, caching, timestamps, gap tracking, and cleanup |
| [Agent Skill and MCP](docs/mcp.md) | Skill links, server registration, and the tool catalog |
| [Account and geospatial extensions](docs/extensions.md) | Scoped account discovery, profile correlation, avatar matching, and geospatial data queries |
| [Optional integrations](docs/integrations.md) | Component installation, backend tools, sessions, and compatibility |
| [Third-party notices](THIRD_PARTY.md) | Upstream projects, licenses, and content attribution |
| [Routing Skill](skills/sera-search/SKILL.md) | Agent startup, source selection, and references loaded on demand |
Detailed guides and the bundled Skill are currently written in Simplified Chinese.
## Development and contributing
```bash
npm run check
npm run build
npm pack --ignore-scripts --dry-run --cache ./.cache/npm
```
The version comes from `package.json`; `package-lock.json` records reproducible installation inputs. Source code lives in `src/`, and catalogs live in `catalogs/`. CI checks types, builds the project, starts the CLI, and checks packaging on Windows, macOS, and Linux. New providers should declare their search, reading, authentication, and content scope.
Report a reproducible problem or suggest a source in an [issue](https://github.com/GuraQwQ/sera-search/issues), or contribute an implementation or documentation improvement through a pull request.
## Acknowledgments
SERA's shared entry points and evidence organization were inspired by [REA](https://github.com/morluto/rea). Provider integration, platform discovery, and query expansion also draw on [MCP Omnisearch](https://github.com/spences10/mcp-omnisearch), [OpenCLI](https://github.com/jackwener/OpenCLI), and [search-skills](https://github.com/blessonism/search-skills).
## License
[MIT](LICENSE). Third-party services and source material retain their own terms and licenses; see [third-party notices](THIRD_PARTY.md).
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessLimited data