omnisift-mcp
by DrStrangeVN
README.md
# omnisift
**Zero-login-first multi-platform social & web intelligence engine** built as one unified repository for **Antigravity**, **Codex**, **Muse (local & online)**, **Claude Code**, **Cursor**, and standalone Python/CLI workflows.
Synthesizes the strongest patterns from `FxEmbed`, `twitter-cli`, `twscrape`, `x-tweet-fetcher`, `Scrapling`, `r.jina.ai`, `Crawl4AI`, `Firecrawl`, `Agent-Reach`, `facebook-scraper`, `RSSHub`, `SearXNG`, and `Maigret`:
- **6-tier Zero-Login X Single-Post Cascade**: `FxEmbed v2` -> `FxTwitter v1` -> `VxTwitter` -> `Twitter CDN Syndication` -> `Twitter oEmbed` -> optional `twitter-cli` (supports `/status/`, `/statuses/`, `/i/web/status/`, `/i/status/`).
- **Zero-Login X Timeline via FxEmbed v2**: `api.fxtwitter.com/2/profile/{handle}/statuses` with `cursor` pagination, exact `[:limit]` slicing, profile metadata extraction, and per-post FTS5 indexing.
- **Zero-Login X & Facebook Discovery + Google News Decoder**: `SearXNG` + `Google News RSS` (`batchexecute` URL decoder) + automatic `FxEmbed`/`CDN` tweet hydration + `DuckDuckGo` fallback.
- **Timezone-Aware Watchlists (`Asia/Ho_Chi_Minh`)**: Track curated X, Bluesky, Telegram, Reddit, YouTube, GitHub, and RSS sources, filter by `--since today|morning|24h|7d` in UTC+7, deduplicate, and archive every post to FTS5.
- **Provider Circuit-Breaker & Honest Error Taxonomy**: SQLite-backed `provider_health` cooldowns honoring `Retry-After`, `provider_errors`, `degraded`, `coverage`, distinguishing `NO_RESULTS` from `RATE_LIMITED` / `UPSTREAM_UNAVAILABLE` / `SESSION_EXPIRED`.
- **Optional Read-Only Session & Official X API Backends**: Plug in `jackwener/twitter-cli`, `vladkens/twscrape`, or Official X API v2 (`OMNISIFT_X_BEARER_TOKEN`) when real-time global X search is needed (strictly isolated from web/public layers).
- **4 interfaces out of the box**: CLI (`omnisift`), 15-tool MCP Server (`omnisift-mcp` via `stdio` / `streamable-http` / `sse`), Python SDK (`OmniClient`), and `SKILL.md`.
## Quick Install
```bash
uv tool install --editable git+https://github.com/DrStrangeVN/omnisift
# Or from a local clone:
uv tool install --editable /path/to/omnisift
omnisift doctor
```
## CLI Quick Reference
```bash
# Single X post (supports /i/web/status/ too) & Google News wrapper auto-decode
omnisift fetch "https://x.com/nhutqui2309/status/2122510785717162216" --format markdown
omnisift fetch "https://x.com/i/web/status/2122510785717162216" --format json
# Zero-login X profile & timeline (FxEmbed v2 + cursor pagination)
omnisift profile x simonw --limit 10 --max-pages 2 --format markdown
# Watchlist monitoring with UTC+7 time-window filter
omnisift watchlist add ai x simonw
omnisift watchlist add ai telegram durov
omnisift watchlist run ai --since 24h --tz Asia/Ho_Chi_Minh --format markdown
# Multi-source search & deep research
omnisift search "google ultra thủ thuật" --sources x --limit 5 --format markdown
omnisift search "AI agents" --sources news,hn,github,wikipedia,arxiv --since 7d --format markdown
omnisift research "Model Context Protocol" --fetch-top 3 --format markdown --out briefing.md
# Site map, BFS crawl, structured extract, OSINT, FTS5 archive, provider health
omnisift map "https://example.com" --limit 50
omnisift crawl "https://example.com" --max-pages 10 --depth 2
omnisift extract "https://example.com" --css "headings=h1,h2" --format json
omnisift osint "torvalds" --format markdown
omnisift archive-search "Model Context" --format markdown
omnisift health
```
## Muse Online / Multi-Agent Setup
* **Muse Online (zero-install)**:
* `uvx --from git+https://github.com/DrStrangeVN/omnisift omnisift search "AI agents" --sources all --format markdown`
* MCP stdio: `uvx --from git+https://github.com/DrStrangeVN/omnisift omnisift-mcp`
* **Antigravity / Claude Code / Cursor (`mcp_config.json`)** & **Codex (`~/.codex/config.toml`)**: run `omnisift mcp-config --client all`.
## Environment Variables (All Optional)
- `OMNISIFT_SEARXNG_URL` — Self-hosted SearXNG base URL
- `OMNISIFT_RSSHUB_URL` — Self-hosted RSSHub base URL
- `OMNISIFT_NITTER_MIRRORS` — Comma-separated Nitter/XCancel mirrors
- `OMNISIFT_PROXY` — HTTP/SOCKS5 proxy URL (cloud `NO_PROXY` is bypassed cleanly for external hosts; set `OMNISIFT_RESPECT_NO_PROXY=1` to disable)
- `OMNISIFT_X_BACKEND` — `auto` (default), `session`, `official`, `public`, `web`, or `archive`
- `OMNISIFT_X_SESSION_PROVIDER` — `twitter_cli` (default) or `twscrape`
- `OMNISIFT_X_AUTH_TOKEN` / `OMNISIFT_X_CT0` — Optional read-only X session cookies (passed strictly to `x_session.py` only)
- `OMNISIFT_X_BEARER_TOKEN` — Optional Official X API v2 Bearer token
- `OMNISIFT_TWITTER_CLI_BIN` — Path/name of `twitter-cli` executable (default `twitter`)
- `OMNISIFT_FB_COOKIE` — Optional fallback cookie for Facebook
- `GITHUB_TOKEN` — Optional GitHub token for higher REST rate limits
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues