• INPUT
  • LOGIC
  • VALIDATION
  • HUMAN

How to generate nested Orama queries with your agent

Connect this MCP to your AI client to turn simple text filters into structured search logic. Your agent handles the heavy lifting of JSON nesting.

Ask AI about this page

Our technology reaches across leading technology and enterprise teams.

  • Amazon
  • NVIDIA
  • Red Hat
  • Fidelity Investments
  • Intuit
  • OLX Brasil
  • Writesonic
  • Artium
  • Trolley
Bunny World Voxel Workspace

Short answer

How can I use AI to make Orama queries?

You give your agent a list of filters or a description of what you want to find. Your agent uses the build_orama_query tool to wrap those filters into the specific nested JSON structure Orama expects. You get a ready-to-use query object.

The query outcomes.

Where your search logic lands.

Your agent converts your intent into a specific technical format.

INPUT

Raw filter lists

Your agent takes your unstructured text or simple key-value pairs. It identifies which fields need to be filtered or searched.

LOGIC

Nested JSON construction

Your agent builds the complex hierarchy required for hybrid search. It nests logical operators like AND and OR correctly.

VALIDATION

Schema alignment

The tool ensures the resulting JSON matches the Orama engine requirements. This prevents syntax errors during execution.

HUMAN

Final review

You check the generated JSON payload. You decide if the logic matches your intent before sending it to the engine.

The workflow

What your agent does when the filter arrives.

Your agent acts as a translator between your intent and the Orama engine.

  1. Parse intent

    Your agent reads your request to find the specific attributes and values you want to filter by.

    build_orama_query
  2. Map structure

    Your agent determines how to nest the filters to satisfy complex search logic.

    build_orama_query
  3. Generate payload

    Your agent produces the final JSON object formatted for the Orama hybrid search engine.

    build_orama_query
  4. Output query

    Your agent presents the structured code to you for use in your application.

    build_orama_query

Vinkius Agentic Execution Platform

State the outcome. Agents take it from there.

You don't have to drive this run by hand. Inside the Vinkius Agentic Execution Platform, agents pick up the task above and carry it to the end: you set the limits, you watch the steps, you keep all decisions.

Run it in Vinkius

Agents carry the task to the end

Agents execute Orama Search Engine tasks from end to end inside the Vinkius Agentic Execution Platform: set the outcome, and the steps run.

Take it to any compatible AI

One connection, any client

Same connection follows you to ChatGPT, Claude, Gemini and any other client you love. Switch whenever you want: your connection, your permissions and your record move with you.

Spaces

One Space per activity

A Space gathers the context, tools and tasks of one activity, so you coordinate several agents at once and follow each execution as it happens.

Limits

Autonomy inside limits you set

Permissions and spending limits are yours to define. Agents halt for your approval on anything sensitive, and you choose how far autonomy goes, step by step or end to end.

Record

All steps, on the record

Each action your agents take lands in a signed audit trail. Results are verified, mistakes are learned from, and an emergency stop is one click away.

Models

Included in your plan

A curated selection of AI models is included in your plan, and you can add your own through BYOK whenever you prefer.

Try it

Copy these to start.

Use these prompts to kick off the query building process.

Starting points

Swap the bracketed text for your actual field names and filter values.

Orama Search Engine Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_BQ7O5IoM6rjvkdusKaOa2Mt3EgaF6wXmj0IWNjuL/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat, Orama Search Engine capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "orama-hybrid-search-query-builder-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_BQ7O5IoM6rjvkdusKaOa2Mt3EgaF6wXmj0IWNjuL/mcp"
    }
  }
}
Copy into chat04
  • 01

    Build an Orama query where the category is 'electronics' and the price is under 500.

  • 02

    Create a nested Orama JSON payload for a search where brand is 'Apple' AND (color is 'silver' OR color is 'space gray').

  • 03

    Generate a hybrid search query for my product list where stock is greater than 10 and tags include 'sale'.

  • 04

    Turn this list of filters into an Orama query: user_id is 123, status is 'active', and region is 'North America'.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect Orama Hybrid Search Query Builder once, then ask.

One connection gives your agent the ability to build these queries. Your credentials stay encrypted and the setup is handled on our end.

Connect Orama Hybrid Search Query Builder to your agent

FAQ

How the query builder behaves.

  • 01

    Can your agent execute the search itself?

    No. Your agent only builds the JSON query payload. You must send that payload to your Orama instance to actually run the search.

  • 02

    Does your agent know my database schema?

    Your agent only knows the fields you tell it about in your prompt. You should provide the field names you want to use for filtering.

  • 03

    Can your agent change my existing Orama index?

    No. This MCP is strictly for generating query objects. It cannot modify, delete, or add data to your Orama index.

  • 04

    Will it handle complex OR/AND logic?

    Yes. Your agent is specifically designed to nest these operators into the correct JSON hierarchy.

  • 05

    Does it support full-text search terms?

    Yes. You can include text search requirements in your prompt, and your agent will include them in the resulting payload.

  • More questions about Orama Hybrid Search Query Builder? The Connector page answers them. See everything the Orama Hybrid Search Query Builder Connector can do

Building with AI? Ship this whole workflow in your product.

Vinkius Connect is the connectivity layer for AI builders. All the capabilities used on this page, from Orama Search Engine to thousands more, arrive through one SDK, already maintained for you. One Application, unlimited seats, each with their own connectors and credentials, isolated and never exposed to Vinkius. No OAuth flows to write, no tokens to store, no APIs to chase.

Explore Vinkius Connect

TypeScript · Python · Java · Go · C# · PHP · Rust

  • 01

    Your customers bring their own keys.

    Each user connects their own apps and keeps their own credentials. Vinkius only sees the identifier your backend sends.

  • 02

    Whole catalog, kept current.

    Orama Search Engine plus thousands more, maintained and growing daily. No integrations to write, no token storage, no OAuth plumbing.

  • 03

    Any agent, any model.

    Capabilities land as framework-neutral objects, with adapters for OpenAI, Anthropic, Gemini, the Vercel AI SDK, LangChain and more.

Connect Orama Search Engine to Claude, Cursor, ChatGPT & more

From idea to done

See what gets done when the agents take over the busywork

Each workflow on this page runs on the same platform. Connect your tools once, and your agents keep working in any AI you trust.