jiro
Health Warn
- License — License: MIT
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Low visibility — Only 7 GitHub stars
Code Fail
- rm -rf — Recursive force deletion command in .github/workflows/sync-data.yml
Permissions Pass
- Permissions — No dangerous permissions requested
No AI report is available for this listing yet.
Jiro Search: Open-source, self-hosted search API with 9 engines, 12 social scrapers, MCP server, hybrid search & AI synthesis. Free SerpAPI alternative. MIT licensed. pip install jirosearch
JIRO — Search API, Web Scraping & Query Graph Engine
9 search engines. 12 social platforms. 23 MCP tools. One self-hosted API.
What is JIRO?
JIRO is an open-source, self-hosted search API and web scraping platform. It aggregates 9 search
engines and 12 social platforms behind one HTTP API, and adds a query graph engine that plans,
executes and cites multi-step research — every answer traces back to the pages that produced it.
It runs entirely on your own infrastructure. No per-query vendor bill, no data leaving your network.
Answer engine optimization note for the curious: the Sourced answers section below is the part
that replaces a search API. Engines return links; JIRO returns claims plus the source ids behind them.
Quick Start
pip install jirosearch
jiro serve
curl -X POST http://localhost:8000/search \
-H "Content-Type: application/json" \
-d '{"q": "latest AI research", "engine": "google"}'
Running: 9 engines, hybrid ranking, caching and structured extraction, all local.
Binds to 127.0.0.1 with auth off by default. Set JIRO_AUTH__ENABLED=true
and a >=32-byte JIRO_AUTH__JWT_SECRET before exposing it to a network.
On a fresh database there are no API keys yet, so set JIRO_ADMIN_KEY once to
seed the first admin key:
export JIRO_ADMIN_KEY="jsk_$(openssl rand -hex 32)"
jiro keys create --name ci
jiro serve seeds that key when no admin key exists; it never stacks up
extra admins on restart. Remove it from the environment after the first run.
There is no cloud tier and no hosted endpoint. Jiro runs on your machine or your server,
and that is the only place it runs.
Sourced answers
Most search APIs return a list of links and stop. Jiro runs a query graph: it plans the
research shape, executes nodes in parallel, and returns an evidence packet where every claim
carries the source_ids it rests on.
curl -X POST http://localhost:8000/v1/graph/search \
-H "Content-Type: application/json" \
-d '{"query": "compare vector databases", "fetch_top": 3, "max_tokens": 2000}'
{
"graph_id": "g_8f2c1a",
"intent": "comparison",
"status": "ok",
"duration_ms": 1840,
"engine_attribution": { "google": 2, "bing": 1 },
"gaps": [],
"budget": { "requests_used": 5, "bytes_used": 284113, "nodes_used": 9, "tokens_used": 1780 },
"packet": {
"packet_id": "p_41d9",
"used_tokens": 1780,
"claims": [
{ "id": "c1", "text": "Qdrant is written in Rust.", "source_ids": ["s2"] }
],
"sources": [{ "id": "s2", "url": "https://qdrant.tech/documentation/" }],
"contradictions": []
}
}
Plan without paying. /v1/graph/plan is a dry run — it validates the graph and returns a cost
estimate without touching the network.
What the graph engine buys you
| Guarantee | How it shows up in the response |
|---|---|
| Every claim is traceable | packet.claims[].source_ids resolves against packet.sources[] |
| Unknown cost is never invented | budget.requests_used is measured; unknown remainders are null, not a guess |
| Failures are visible | gaps[] records the node, query and reason a branch did not complete |
| Work is bounded | max_tokens, deadline_ms and max_nodes cap the run before it starts |
| You know which engine answered | engine_attribution counts per engine |
Passing work between agents
session_handoff is an MCP tool that packages a finished run into a brief another agent can act on —
resolvable evidence ids, open questions taken from gaps, contradictions, remaining budget, and the
next node to run. Roles: planner, retriever, verifier, writer, observer.
Shaped context (since 0.5.0)
POST /context is one call for the thing agents actually need: web text that fits a token
budget, with numbered sources. It searches, optionally reads the top pages, filters by domain and
date, then assembles the excerpts until the budget is full.
curl -X POST http://localhost:8000/context \
-H "Content-Type: application/json" \
-d '{"query": "EU AI Act obligations for deployers",
"token_budget": 2500, "fresh_days": 90,
"include_domains": ["europa.eu"]}'
{
"context": "[1] AI Act ...\nhttps://...\n\nDeployers must ...\n\n---\n\n[2] ...",
"sources": [{"title": "AI Act", "url": "https://...", "tokens": 412, "fetched": true}],
"budget": {"requested": 2500, "used": 2331, "remaining": 169, "tokenizer": "tiktoken:o200k_base"},
"warnings": []
}
fetch_pages: falseuses snippets only and makes no request to the result pages.fresh_dayssets the engine's coarse time filter and then applies the exact day window.- Results with no parseable date are kept and counted in
search.undated; a window never
silently drops a page because an engine omitted its date. - The MCP tool
get_contexttakes the same arguments and returns the block as text.
Search engines
| Engine | Type | Notes |
|---|---|---|
| Web | Full SERP data, paginated | |
| Bing | Web | Rich snippets, paginated |
| Brave | Web | Privacy-focused |
| DuckDuckGo | Web | Instant answers |
| Yandex | Web | Russian market |
| Baidu | Web | Chinese market, paginated |
| YouTube | Video | Transcripts, metadata |
| Amazon | Shopping | Product data |
| eBay | Shopping | Listings, prices |
Social platforms
Reddit · Twitter/X · YouTube · LinkedIn · TikTok · Instagram · Facebook · Threads · Hacker News · Bluesky · Telegram · Pinterest
Official SDKs
All three expose the query graph and share the server's version.
Python
pip install jiro-sdk
from jiro_sdk import JiroClient
client = JiroClient(api_key="your-key")
# Classic search + scrape
results = client.search("python web scraping")
content = client.scrape("https://example.com")
# Query graph
plan = client.plan_search("compare vector databases") # dry run, no network
run = client.search_graph("compare vector databases", fetch_top=3)
for claim in run["packet"]["claims"]:
print(claim["text"], claim["source_ids"])
JavaScript / TypeScript
npm install jiro-sdk
import { JiroClient } from 'jiro-sdk';
const client = new JiroClient({ apiKey: 'your-key' });
const results = await client.search('python web scraping');
const run = await client.searchGraph('compare vector databases', { fetchTop: 3 });
// WebSocket streaming
const ws = client.createSearchStream('AI news');
ws.onmessage = (event) => console.log(JSON.parse(event.data));
Go
go get github.com/DevAnimecx/jiro/sdk/go
import "github.com/DevAnimecx/jiro/sdk/go"
client := jiro.NewClient(jiro.WithAPIKey("your-key"))
results, _ := client.Search("python web scraping", nil)
run, _ := client.GraphSearch("compare vector databases", &jiro.GraphOptions{FetchTop: 3}, false)
CLI
# Search
jiro search web "python web scraping"
jiro search web "AI news" --parallel --engines 3
jiro search web -i # interactive
# Scrape
jiro scrape https://example.com
jiro scrape "free SaaS directories" # search + scrape top result
# AI
jiro ai ask "What is Python?"
jiro ai setup --provider openai -k sk-...
# Connect an agent (Claude Code, Cursor, OpenCode, Codex, ...)
jiro connect cursor
# System
jiro status && jiro doctor && jiro serve --port 8000
MCP integration
Works with any MCP-compatible client — Claude Desktop, Claude Code, Cursor, OpenCode, Codex, VS Code and more.
jiro connect # detect every installed client
jiro connect cursor # or name one
jiro connect --list # all 16 supported ids
It writes the client's own config file, backs up what was there, and records the
change so jiro setup --uninstall --client <id> can roll it back.
{
"mcpServers": {
"jiro": { "command": "jiro", "args": ["mcp"] }
}
}
23 MCP tools
Expand the full tool list| Tool | What it does |
|---|---|
search |
Search across 9 engines |
get_context |
Search and shape the web to a token budget |
scrape |
Scrape a URL to markdown |
smart_classify |
Classify search intent |
compare_engines |
Compare results across engines |
list_engines |
List available engines |
list_social_platforms |
List social platforms |
monitor_status |
Health and metrics |
health_check |
Live engine probes |
cache_stats |
Cache statistics |
task_submit |
Submit a background task |
task_status |
Poll a task |
task_cancel |
Cancel a task |
plan_search |
Plan a query graph, dry run |
ai_search |
AI research with citations |
search_hybrid |
Hybrid multi-signal search |
search_structured |
Structured data extraction |
social_scrape |
Scrape a social profile or post |
social_search |
Search social platforms |
social_batch |
Batch scrape URLs |
smart_search |
Intent-aware routing |
search_graph |
Execute a query graph, return the evidence packet |
session_handoff |
Package a run as a brief for another agent |
Features
Sourced answers
- Query graph — plans a research shape, then executes it
- Evidence packets — claims paired with resolvable source ids
- Cost estimation — dry-run a graph before paying for it
- Gap reporting — branches that failed say why
- Session handoff — pass a run to another agent as a structured brief
- Durable runtime — lease-based node execution that survives restarts
Search intelligence
- Hybrid search — keyword + semantic + freshness signals
- Multi-query — parallel query expansion
- Answer synthesis — extractive answers from results
- Pagination — walks SERP pages until
numis met or the budget runs out - Substitution reporting — tells you when a fallback engine answered
Web scraping
- Stealth client — TLS/JA3 fingerprint rotation and browser headers
- Anti-bot friction — improves access; it does not solve JS challenges
- JS rendering — optional Playwright browser mode
- Structured extraction — JSON-schema-driven
- Social scraping — 12 platforms, normalized output
Operations
- Rate limiting — sliding window, configurable limits
- Plugin system — custom engines and scrapers
- Advanced caching — LRU/LFU with analytics
- Batch operations — concurrent search and scrape
- Monitoring — Prometheus metrics, health checks
- WebSocket streaming — real-time results
Deploy
docker-compose up -d # Docker
helm install jiro ./helm # Kubernetes
pip install jirosearch && jiro serve # Local
Comparisons
vs SerpAPI
| JIRO | SerpAPI | |
|---|---|---|
| Self-hosted | ✅ | ❌ |
| Cost | $0 | $50+/mo |
| Search engines | 9 | 1 (Google) |
| Social scraping | 12 platforms | ❌ |
| Sourced answers with source ids | ✅ | ❌ |
| MCP integration | ✅ | ❌ |
| Official SDKs | Python, JS, Go | Python, JS |
vs ScraperAPI
| JIRO | ScraperAPI | |
|---|---|---|
| Search engines | 9 | ❌ |
| Social platforms | 12 | ❌ |
| Query graph + citations | ✅ | ❌ |
| Self-hosted | ✅ | ❌ |
vs Bright Data
| JIRO | Bright Data | |
|---|---|---|
| Self-hosted | ✅ | ❌ |
| Query graph + citations | ✅ | ❌ |
| MCP integration | ✅ | ❌ |
| Entry price | $0 | $500+/mo |
Architecture
jiro/
├── server/routers/ FastAPI endpoints (80+ routes)
├── graph/ Query graph
│ ├── planner.py Turns a query into a validated graph
│ ├── executor.py Ready-driven DAG execution
│ ├── operators.py SEARCH / FETCH / VERIFY / SYNTHESIZE nodes
│ └── service.py Plan + run entry points
├── parametric/packet.py Evidence packet assembly
├── search/ Hybrid search, reranking, query expansion
├── scraping/ 9 engines, stealth client, 12 social platforms
├── ai/ LLM integration + MCP tool schemas
├── runtime/ Durable execution, leases, config
├── context.py Budgeted context assembly (POST /context)
├── mcp.py MCP server (23 tools)
├── cache_advanced.py Cache with analytics
└── dashboard.py Web UI
Exit codes
For scripting and CI, the CLI distinguishes outcomes rather than collapsing them:
| Code | Meaning |
|---|---|
0 |
Success |
1 |
Failure |
2 |
Usage error |
3 |
Substituted — a fallback engine answered |
Pricing
Free. All of it. MIT.
| Jiro | |
|---|---|
| Price | $0 |
| Search engines | All 9 |
| Social platforms | All 12 |
| Query graph and citations | ✓ |
| MCP server | ✓ |
| Requests | Unlimited (your hardware, your rules) |
| Commercial use | ✓ (MIT) |
| Cloud account required | No |
No credits, no tiers, no "contact sales." pip install jirosearch && jiro serve.
FAQ
Do I need API keys for the search engines?
No. All 9 engines are scraped directly. No Google, Bing or SerpAPI keys required.
Can I run JIRO fully offline?
The server runs locally, but it reaches out to the engines you query. Point it at an internal
mirror or disable engines you don't want in the config.
What makes the answers checkable?
Every claim in the evidence packet carries source_ids that resolve against packet.sources[].
A claim whose sources can't be resolved is flagged, not silently dropped.
How is this different from a search API like SerpAPI?
SerpAPI returns links from one engine. JIRO searches 9, fetches and extracts the pages, and returns
claims with citations — plus it's self-hosted, so there's no per-query bill.
Is it really free?
Yes. MIT, every feature, no account, no request quota from us. Your only costs are the machine
you run it on and whatever proxies you choose to add.
Can I pass research between AI agents?
Yes — the session_handoff MCP tool packages a run into a brief with evidence ids, open questions
and remaining budget, ready for the next agent to pick up.
Community
License
MIT — use it freely, commercially or privately.
Built by Blackvault Technology
Reviews (0)
Sign in to leave a review.
Leave a reviewNo results found