Skip to content
DevAnimecxPublic

About

Self-hosted, MIT-licensed agentic search API: 9 engines, 12 social platforms, cited evidence packets and 26 MCP tools. pip install jirosearch

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

7 stars

Watchers

1 watching

Forks

Latest commit

 

History

376 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jiro logo

Jiro

Agentic Search AI. Self-hosted search, scraping and cited answers for agents.

9 search engines · 12 social platforms · 26 MCP tools · one MIT-licensed API

v0.6.1 "The Agentic Era" - one command, a cited answer, memory that keeps it.

CI CodeQL PyPI Downloads Python License: MIT Container

Quick start · Docs · Agent · MCP · Code Mode · MCP Apps · Agent-to-agent · Web queries · Trust graph · Live monitoring · Self-healing scrapers · Benchmarks · Performance · AEO/GEO guide · Comparisons · Changelog


30 seconds

pip install jirosearch && jiro agent "compare the top 3 vector databases: license, language, GitHub stars"
Jiro agent
────────────────────────────────────────────────────────────
Across 8 cited sources, 3 entities were compared:

 Entity   license    language   GitHub stars
 Qdrant   Apache-2.0 Rust       24k [1][2]
 Milvus   Apache-2.0 Go         31k [3][4]
 Weaviate BSD-3      Go         13k [5][6]

Sources
  [1] Qdrant - GitHub  https://github.com/qdrant/qdrant
  [2] Qdrant docs     https://qdrant.tech/documentation/
  ...

3 entities · 8 cited sources · 3.41s
Saved markdown: jiro_research/compare-the-top-3-vector-...md
Memory episode: mem_...

No account, no API key, no cloud. Jiro searched, read the pages, quoted a value per cell, cited every source it actually fetched, and saved the report. Ask the same question again and it returns from memory in under a second.

What just happened: agent → discover → plan → parallel search → fetch → deterministic extraction → optional BYOK/Ollama synthesis → episodic + semantic memory → trust evidence. See docs/agent.md.

What is new in 0.6.1

  • A CLI you can live in - a home screen, jiro search "..." without the web subcommand, an interactive prompt with history and completion, scannable result cards, --copy/--open, and jiro engines.
  • jiro agent - one question becomes a cited comparison table, a saved Markdown/JSON report, and a memory episode.
  • Memory - episodes, facts, URL snapshots, engine statistics and per-domain trust in the same SQLite file. Repeat questions are cheap; changes are visible.
  • Threads and watches - durable, steerable research plus URL/topic/social monitoring with diffs and alerts.
  • Self-healing scrapers - detect a broken selector, validate a repair against sample pages, hot-patch or roll back.
  • Stateless MCP - 2026-07-28, no handshake, no Mcp-Session-Id, six skills, an MCP Apps dashboard, and agent-to-agent delegation by role.
  • Smaller and measured - Alpine non-root image gated under 500 MB, latency budgets in CI, and jiro bench with 100 published queries.

Full list: RELEASE_NOTES.md and CHANGELOG.md.


What is Jiro?

Jiro is an open-source, self-hosted search API for AI agents. It scrapes 9 search engines and 12 social platforms, reads the pages it finds, and returns either structured SERPs or a cited evidence packet where every claim points at the source that supports it.

It runs on your machine or your server. There is no hosted endpoint, no credit system, no plan tier, and no account. The whole product is MIT licensed.

your agent -> Jiro -> Google, Bing, Brave, DuckDuckGo, YouTube, Amazon, eBay, Yandex, Baidu
                    -> Reddit, X, LinkedIn, TikTok, Instagram, Facebook, Threads, HN, ...
                    -> cited context, evidence packets, normalized social data

Why Jiro

Jiro Typical search API
Runs on your infrastructure Yes No
Price $0, MIT Usage-based
Search engines 9 Usually 1-3
Social platforms 12 Rare
Cited evidence, not just links Yes No
One-command cited research Yes No
Scrapers repair themselves Yes No
MCP server for agents 26 tools Rare
Data leaves your network No Yes
Query graphs with gap reporting Yes No

Quick start

pip install jirosearch

jiro                                   # home screen: status and next steps
jiro search "latest AI research"       # 9 engines, one command
jiro search                            # interactive: history, completion, live toolbar
jiro agent "compare vector databases"  # cited report, saved to memory

Search output is a scannable card with clickable links. Add --copy to put the top URL on your clipboard, --open to open it, or --json for scripts. jiro engines lists every engine and the result types it supports.

Prefer HTTP? Start the server and call the API:

jiro serve
curl -X POST http://localhost:8000/search \
  -H "Content-Type: application/json" \
  -d '{"q": "latest AI research", "engine": "google", "num": 5}'

Connect an agent in one command:

jiro connect            # detect every installed MCP client
jiro connect cursor     # or name one of 16 clients
jiro connect --list

Jiro binds to 127.0.0.1 with auth off by default. Before exposing it to a network, set JIRO_AUTH__ENABLED=true and a >=32-byte JIRO_AUTH__JWT_SECRET. On a fresh database, set JIRO_ADMIN_KEY once so the first admin key exists:

export JIRO_ADMIN_KEY="jsk_$(openssl rand -hex 32)"
jiro keys create --name ci
jiro serve --host 0.0.0.0

Sourced answers

A search API returns links. Jiro can also run a query graph: plan the research shape, execute nodes in parallel, and return an evidence packet with claim-level citations.

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",
  "engine_attribution": { "google": 2, "bing": 1 },
  "budget": { "requests_used": 5, "nodes_used": 9, "tokens_used": 1780 },
  "packet": {
    "claims": [
      { "id": "c1", "text": "Qdrant is written in Rust.", "source_ids": ["s2"] }
    ],
    "sources": [{ "id": "s2", "url": "https://qdrant.tech/documentation/" }],
    "contradictions": []
  }
}
  • Every claim resolves against packet.sources[]; unresolved claims are flagged.
  • plan_search / /v1/graph/plan validates a graph without touching the network.
  • gaps[] records which branch failed and why instead of hiding it.
  • session_handoff packages a finished run for the next agent.

Shaped context

POST /context searches, optionally reads the top pages, filters by domain and date, and returns one cited block that fits a token budget.

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 ...",
  "sources": [{"title": "AI Act", "url": "https://...", "tokens": 412, "fetched": true}],
  "budget": {"requested": 2500, "used": 2331, "remaining": 169}
}

The MCP tool get_context takes the same arguments. Set fetch_pages: false to use snippets only.

Built for AEO, GEO and AIO

Answer engines cite the open web. Jiro gives you the raw material those systems see: multi-engine SERPs, page text, and source ids you can measure over time.

Use it to:

  • Track share of voice for a brand across 9 engines.
  • Find the pages AI answers cite for a question set.
  • Measure competitor citations before and after a content change.
  • Feed RAG and agent workflows with budgeted, cited context.

The repository ships a working starter:

python examples/aeo_visibility.py "acme analytics" \
  --domains acme.com --engines google,bing,brave --json

It reports, per engine: result count, brand mentions, owned-domain results, and the top cited URLs. Read the full playbook in docs/answer-engine-visibility.md.

Scope note: Jiro measures the open web sources that answer engines draw from. It does not call ChatGPT, Perplexity or Google AI Overviews private APIs, and it does not claim to.

Search engines

Engine Type Engine Type
Google Web YouTube Video
Bing Web Amazon Shopping
Brave Web eBay Shopping
DuckDuckGo Web Yandex Web
Baidu Web

Social platforms

Reddit · X/Twitter · YouTube · LinkedIn · TikTok · Instagram · Facebook · Threads · Hacker News · Bluesky · Telegram · Pinterest

MCP integration

Works with Claude Desktop, Claude Code, Cursor, OpenCode, Codex, VS Code, Zed, Cline and more.

jiro connect            # writes each client's config, with backup and rollback
jiro setup --uninstall --client cursor

Manual config:

{
  "mcpServers": {
    "jiro": { "command": "jiro", "args": ["mcp"] }
  }
}
All 26 MCP tools
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
web_query Query the web like a database with SQL-like filters
research_thread Create, steer and collect a persistent research thread
dashboard Interactive MCP Apps panel: engines, threads, cache, trust
session_handoff Package a run as a brief for another agent

SDKs

# pip install jiro-sdk
from jiro_sdk import JiroClient

client = JiroClient(base_url="http://localhost:8000", api_key="optional")
results = client.search("python web scraping")
run = client.search_graph("compare vector databases", fetch_top=3)
// npm install jiro-sdk
import { JiroClient } from "jiro-sdk";

const client = new JiroClient({ baseUrl: "http://localhost:8000" });
const run = await client.searchGraph("compare vector databases", { fetchTop: 3 });
// go get github.com/DevAnimecx/jiro/sdk/go
client := jiro.NewClient(jiro.WithBaseURL("http://localhost:8000"))
run, _ := client.GraphSearch("compare vector databases", &jiro.GraphOptions{FetchTop: 3}, false)

Benchmarks

The benchmark ships with the product, so you can check the claims instead of trusting them.

jiro serve &
jiro bench                       # 100 standard queries, 2 passes
jiro bench --json --out bench.json
        Jiro benchmark
┌────────────────┬───────────┐
│ Queries        │       100 │
│ p50            │    412 ms │
│ p95            │   1180 ms │
│ p99            │   2410 ms │
│ Cache hit rate │     98.0% │
│ Avg citations  │       5.0 │
│ Accuracy       │     74.0% │
│ Cost           │     $0.00 │
└────────────────┴───────────┘

The numbers above show the shape of the report, not a published result; run it on your network and keep the JSON.

Pass 1 forces a fresh search; pass 2 measures the SQLite cache. The query set is published at benchmarks/standard/queries.json. There is no invented Crawl4AI/Firecrawl row: benchmarks/standard/comparison.md explains why and how to run them yourself. See docs/benchmarks.md and docs/performance.md.

Deploy

pip install jirosearch && jiro serve        # local
docker compose up -d                        # Docker
helm install jiro ./helm                    # Kubernetes

The container image is published to ghcr.io/devanimecx/jiro. The compose file and Helm chart are in this repository. There is no hosted option and no license server.

The image is Alpine, runs as a non-root user, ships no browser and is gated below 500 MB (scripts/check_image_size.py). Cache, memory, trust, threads and watches all live in one SQLite file: no Redis, no Postgres, no sidecar.

Architecture

jiro/
  agent/             One-command research: plan, extract, render, remember
  bench/             100-query benchmark harness (jiro bench)
  memory/            Episodic, semantic, temporal, procedural, trust
  threads/           Durable research threads with steering and resume
  watch/             URL/topic/social watches, diffs, alerts
  heal/              Self-healing scrapers with validation and rollback
  trust/             Trust graph, signals, overrides
  query/             SQL-like web queries (web_query)
  a2a/               Agent-to-agent delegation and peer registry
  codemode/          Python/JS stubs and the language-level sandbox
  server/routers/    FastAPI endpoints (115 routes)
  graph/             Query graph: planner, executor, operators, evidence packets
  search/            Hybrid ranking, query expansion, reranking
  scraping/          9 engines, stealth client, 12 social platforms
  runtime/           Durable task execution, leases, recovery
  context.py         Budgeted context assembly (POST /context)
  mcp/               MCP server: 26 tools, skills, apps, extensions
  dashboard.py       Local dashboard for humans

Comparisons

Jiro SerpAPI Tavily ScraperAPI
Self-hosted Yes No No No
License MIT Proprietary Proprietary Proprietary
Search engines 9 Google + others 1 No search
Social platforms 12 No No No
Cited evidence packets Yes No Partial No
MCP server 26 tools No Yes No
Price $0 Usage-based Usage-based Usage-based

More detail: vs SerpAPI · vs Tavily · vs Firecrawl · vs Crawl4AI · vs ScraperAPI.

FAQ

What is Jiro? A self-hosted search and scraping API for AI agents. It aggregates 9 engines and 12 social platforms, reads pages, and returns structured results or cited evidence packets.

Is Jiro really free? Yes. MIT license, every feature, no account and no request quota from us. You pay for the machine you run it on and any proxies you add.

Do I need API keys for the search engines? No. Jiro scrapes the engines directly. There are no Google, Bing or SerpAPI keys to buy.

Does it work with Claude, Cursor and other MCP clients? Yes. jiro connect configures 16 clients, backs up their configs, and supports rollback.

Can Jiro track AI answer engines? It measures the open web sources that answer engines cite: SERPs, page text and citations. It does not access private AI answer APIs, and it does not claim to.

What about Google CAPTCHAs? From datacenter IPs Google will challenge some requests. Jiro reports substitution and falls back to other engines. Add a residential proxy if Google reliability matters to you.

How is this different from SerpAPI? SerpAPI returns links from Google and friends. Jiro searches 9 engines, reads the pages, and returns claims with resolvable source ids, plus social scraping and a 26-tool MCP server, all self-hosted.

Which Python versions are supported? Python 3.11 and newer.

Community

If Jiro saves you a vendor bill, a star helps other people find it.

License

MIT. Use it commercially, privately, or inside a product. See LICENSE.


About

Self-hosted, MIT-licensed agentic search API: 9 engines, 12 social platforms, cited evidence packets and 26 MCP tools. pip install jirosearch

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

7 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages