How jayanth-mkv/open-agent-search works
Open Agent Search is a self-hostable search and content-retrieval layer for agents and applications. Its main workflow accepts a search or fetch request through either REST or MCP, dispatches it to a capability-specific controller, and returns structured results; unified search fans out across five search types. The README documents local stdio MCP and deployed HTTP/REST plus HTTP MCP, all sharing these capabilities. The graph includes the documented search verticals and content fetching. Evidence is limited to the supplied README and SOURCE INDEX excerpts/references; unsampled internals are not inferred.
Main entry points: app.py FastAPI app · mcp.py MCP server · unified.py Unified search · content.py Content fetch
Components 23
HTTP API
- FastAPI app
open_agent_search/app.py - Text route
open_agent_search/routes/text.py - Image route
open_agent_search/routes/image.py - Video route
open_agent_search/routes/video.py - News route
open_agent_search/routes/news.py - Book route
open_agent_search/routes/book.py - Unified route
open_agent_search/routes/unified.py - Content routes
open_agent_search/routes/content.py
MCP Interface
- MCP server
open_agent_search/mcp.py
Retrieval Capabilities
- Text search
open_agent_search/controllers/text.py - Image search
open_agent_search/controllers/image.py - Video search
open_agent_search/controllers/video.py - News search
open_agent_search/controllers/news.py - Book search
open_agent_search/controllers/book.py - Unified search
open_agent_search/controllers/unified.py - Content fetch
open_agent_search/controllers/content.py
Shared Components
- URL validation
open_agent_search/utils/url_validator.py - Request and response schemas
open_agent_search/models/schemas.py - Rate limits
open_agent_search/config.py
Other components
- Agents and apps
- HTTP service
- MCP clients
- DDGS providers
Connections 41
- Agents and apps → HTTP service: send requests
README.md - HTTP service → FastAPI app: serves API
README.md - FastAPI app → Text route: registers
open_agent_search/app.py - FastAPI app → Image route: registers
open_agent_search/app.py - FastAPI app → Video route: registers
open_agent_search/app.py - FastAPI app → News route: registers
open_agent_search/app.py - FastAPI app → Book route: registers
open_agent_search/app.py - FastAPI app → Unified route: registers
open_agent_search/app.py - FastAPI app → Content routes: registers
open_agent_search/app.py - FastAPI app → MCP server: mounts HTTP MCP
open_agent_search/app.py - MCP clients → MCP server: use MCP tools
README.md - Text route → Text search: dispatches
open_agent_search/routes/text.py - Image route → Image search: dispatches
open_agent_search/routes/image.py - Video route → Video search: dispatches
open_agent_search/routes/video.py - News route → News search: dispatches
open_agent_search/routes/news.py - Book route → Book search: dispatches
open_agent_search/routes/book.py - Unified route → Unified search: dispatches
open_agent_search/routes/unified.py - Content routes → Content fetch: dispatches
open_agent_search/routes/content.py - MCP server → Text search: calls
open_agent_search/mcp.py - MCP server → Image search: calls
open_agent_search/mcp.py - MCP server → Video search: calls
open_agent_search/mcp.py - MCP server → News search: calls
open_agent_search/mcp.py - MCP server → Book search: calls
open_agent_search/mcp.py - MCP server → Unified search: calls
open_agent_search/mcp.py - MCP server → Content fetch: calls
open_agent_search/mcp.py - Unified search → Text search: runs in parallel
open_agent_search/controllers/unified.py - Unified search → Image search: runs in parallel
open_agent_search/controllers/unified.py - Unified search → Video search: runs in parallel
open_agent_search/controllers/unified.py - Unified search → News search: runs in parallel
open_agent_search/controllers/unified.py - Unified search → Book search: runs in parallel
open_agent_search/controllers/unified.py - Text search → DDGS providers: queries provider
README.md - Image search → DDGS providers: queries provider
open_agent_search/controllers/image.py - Video search → DDGS providers: queries provider
- News search → DDGS providers: queries provider
- Book search → DDGS providers: queries provider
- Content fetch → URL validation: validates URLs
open_agent_search/controllers/content.py - Content fetch → DDGS providers: fetches pages
open_agent_search/controllers/content.py - FastAPI app → Request and response schemas: formats errors
open_agent_search/app.py - FastAPI app → Rate limits: configures limits
open_agent_search/app.py - Image route → Rate limits: applies limits
open_agent_search/routes/image.py - Text route → Request and response schemas: uses types
open_agent_search/routes/text.py