bagel

Extelligence-ai/bagel

3.6

If you are the rightful owner of bagel and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

Bagel is a tool designed for fast extraction, transformation, and analysis of robotics data, supporting various log formats and offering extensibility for additional formats.

Unlike cat videos, most data are trapped in the physical world. Bagel unlocks them and lets you chat with your physical data—just like you do with ChatGPT. For example:

Is my IMU sensor overheating?

Can’t wait to try it out? 👉 Check out the Quickstart.

🥯 Key Features

  • Ask in plain language: No deep domain expertise needed.
  • Transparent calculations: Deterministic SQL queries. No black-box LLM math.
  • Broad LLM support: Claude Code, Gemini, Cursor, Codex, and more.
  • Dockerized environments: No local dependencies required.
  • Extensible capabilities: Bagel can learn new tricks.
  • Wide format coverage: Missing your data format? Open a ticket.

✅ Supported Data Formats

IndustryFormats
RoboticsROS1, ROS2
DronesPX4, ArduPilot, Betaflight
IoTComing soon...

💬 What Can I Prompt?

You can ask Bagel almost anything. For example:

What’s the correlation between current and voltage in the /spot/status/battery_states topic?

I think the robot hit a pothole. Can you check for sudden deceleration on the z-axis to confirm?

Can you help me tune the PID of my drone?

Time to put Bagel to the test: can it catch a drone doing barrel rolls? Spoiler: 🎉 It totally can.

💡 How Bagel Works

When you ask a question, Bagel analyzes your data source’s metadata and topics to build a high-level understanding.

Based on your prompt, if further inspection is needed, Bagel identifies the most relevant topics and interprets their meaning and structure. Bagel then writes the relevant topic messages to an Apache Arrow file and uses DuckDB to generate and execute queries against it.

This process is repeated as needed, running new queries until Bagel finds the best answer to your question.

LLMs excel at language but struggle with math. Bagel overcomes this by generating deterministic DuckDB SQL queries. These queries are displayed for you to audit, and you can guide Bagel to correct any errors.

⚡️ Quickstart

📋 Prerequisites

Install Docker Desktop, then clone this repo:

git clone https://github.com/Extelligence-ai/bagel.git; cd bagel
🐳 Run with Docker

Open and pick a service based on your need (e.g., ros2-kilted).

docker compose run --service-ports ros2-kilted

[!TIP] To give Bagel access to your local files, edit compose.yaml before starting Docker: uncomment and update the volumes section under your chosen service.

Your terminal should show output similar to:

INFO:     Started server process [86]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
🔗 Connect to an LLM

Once the Bagel MCP server is running, connect it to your preferred LLM. Bagel should work with any MCP-enabled LLM, though some setup may be required. We’ve tested several LLMs—expand the runbooks below for setup instructions.

📚 Setup runbooks for tested LLMs

Can't find your favorite LLM? Open a ticket, and we’ll create a runbook for it.

🚀 Launch and Prompt

Now you're ready to launch your LLM and begin prompting. For example:

Summarize the metadata of the ROS2 bag "./data/sample/ros2/mcap".

🐶 Teach Bagel a New Trick

Bagel learns new capabilities through POML files—a structured set of instructions that describe a “trick,” such as .

✍️ Create a .poml file

For example, let’s define ./src/agent/examples/woof.poml.

<poml>
    <task>
        Count the topics in the data source.
        If the count is odd, say "woof", else say "meow".
    </task>

    <output-format>
        Return the sound, the topic count, and a few cute emojis. Nothing else.
    </output-format>
</poml>
🗣️ Use the capability

Prompt Bagel:

Run the POML capability "./src/agent/examples/woof.poml" on the ROS2 bag "./data/sample/ros2/mcap".

Result:

meow 🐱 4 topics 🐱💤🎯

🫶 Contributing

We’d love your help! The easiest way to support the project is by giving it a ⭐ on GitHub.

Other great ways to contribute:

  • Request new features
  • Report bugs
  • Improve documentation
  • Add new capabilities

Before contributing, please review the .

Join the conversation in our Discord server — we hang out there regularly.

📄 License

Bagel is open source under the .