Semantic context for your LLMs — generated automatically
Project description
Databao Context Engine
Semantic context for your LLMs — generated automatically.
No more copying schemas. No manual documentation. Just accurate answers.
Website • Quickstart • Data Sources • Contributing
What is Databao Context Engine?
Databao Context Engine is a CLI tool that automatically generates governed semantic context from your databases, BI tools, documents, and spreadsheets.
Integrate it with any LLM to deliver accurate, context-aware answers — without copying schemas or writing documentation by hand.
Your data sources → Context Engine → Unified semantic graph → Any LLM
Why choose Databao Context Engine?
| Feature | What it means for you |
|---|---|
| Auto-generated context | Extracts schemas, relationships, and semantics automatically |
| Runs locally | Your data never leaves your environment |
| MCP integration | Works with Claude Desktop, Cursor, and any MCP-compatible tool |
| Multiple sources | Databases, dbt projects, spreadsheets, documents |
| Built-in benchmarks | Measure and improve context quality over time |
| LLM agnostic | OpenAI, Anthropic, Ollama, Gemini — use any model |
| Governed & versioned | Track, version, and share context across your team |
| Dynamic or static | Serve context via MCP server or export as artifact |
Installation
Databao Context Engine is available on PyPI and can be installed with uv, pip, or another package manage.
Using uv
-
Install Databao Context Engine:
uv tool install databao-context-engine
-
Add it to your PATH:
uv tool update-shell
-
Verify the installation:
dce --help
Using pip
-
Install Databao Context Engine:
pip install databao-context-engine
-
Verify the installation:
dce --help
Supported data sources
PostgreSQL
MySQL
SQLite
DuckDB
dbt projects
- 📄 Documents & spreadsheets (coming soon)
Supported LLMs
| Provider | Configuration |
|---|---|
| Ollama | languageModel: OLLAMA: runs locally, free |
| OpenAI | languageModel: OPENAI: requires an API key |
| Anthropic | languageModel: CLAUDE: requires an API key |
languageModel: GEMINI: requires an API key |
Quickstart
1. Create a project
-
Create a new directory for your project and navigate to it:
mkdir dce-project && cd dce-project
-
Initialize a new project:
dce init
2. Configure data sources
-
When prompted, agree to create a new datasource. You can also use the
dce datasource addcommand. -
Provide the data source type and its name.
-
Open the config file that was created for you in your editor and fill in the connection details.
-
Repeat these steps for all data sources you want to include in your project.
-
If you have data in Markdown or text files, you can add them to the
dce/src/filesdirectory.
3. Build context
-
To build the context, run the following command:
dce build
4. Use Context with Your LLM
Option A: Dynamic via MCP Server
Databao Context Engine exposes the context through a local MCP Server, so your agent can access the latest context at runtime.
-
In Claude Desktop, Cursor, or another MCP-compatible agent, add the following configuration. Replace
dce-project/with the path to your project directory:# claude_desktop_config.json, mcp.json, or similar { "mcpServers": { "dce": { "command": "dce mcp", "args": ["--project-dir", "dce-project/"] } } }
-
Save the file and restart your agent.
-
Open a new chat, in the chat window, select the
dceserver, and ask questions related to your project context.
Option B: Static artifact
Even if you don’t have Claude or Cursor installed on your local machine, you can still use the context built by Databao Context Engine by pasting it directly into your chat with an AI assistant.
-
Navigate to
dce-project/output/and open the directory with the latest run. -
Attach the
all_results.yamlfile to your chat with the AI assistant or copy and paste its contents into your chat.
Contributing
We’d love your help! Here’s how to get involved:
- ⭐ Star this repo — it helps others find us!
- 🐛 Found a bug? Open an issue
- 💡 Have an idea? We’re all ears — create a feature request
- 👍 Upvote issues you care about — helps us prioritize
- 🔧 Submit a PR
- 📝 Improve docs — typos, examples, tutorials — everything helps!
New to open source? No worries! We're friendly and happy to help you get started. 🌱
For more details, see CONTRIBUTING.
📄 License
Apache 2.0 — use it however you want. See the LICENSE file for details.
Like Databao Context Engine? Give us a ⭐ — it means a lot!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file databao_context_engine-0.2.0.tar.gz.
File metadata
- Download URL: databao_context_engine-0.2.0.tar.gz
- Upload date:
- Size: 81.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
56ca01a95ef1decce5f9c1ce133ee9424f3614e05dc8722019bccf6202a524b0
|
|
| MD5 |
c9230c47e3bca2a9a26af587a31ac6ac
|
|
| BLAKE2b-256 |
d4f2c3a9296a2544aae20350e3a4bcca0767f46bdeeb5d30870d4d06586ae3ca
|
File details
Details for the file databao_context_engine-0.2.0-py3-none-any.whl.
File metadata
- Download URL: databao_context_engine-0.2.0-py3-none-any.whl
- Upload date:
- Size: 141.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e9039062311113e7c7ebc3073c7129844e8137833f1709d1215f3f66e41ca5c
|
|
| MD5 |
e4ea0dd3e4079fbb430014eaade88529
|
|
| BLAKE2b-256 |
bdfa771c7676fc234814e1a1d54a61b913fdf67cd6cbe53618c2c0c3c8e01967
|