Listed from the MCP registry; nobody on Odel publishes it.
Embedded knowledge base with 116 MCP tools, hybrid BM25+vector search and RAG. One Go binary.
Runs on your machine from its package; the steps are below.

At most: moves money, runs code or commands, deletes data, or sends messages for you.
Odel charges nothing per call. The publisher may charge for its own service.
Runs locally over stdio
This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).
Run
docker run -i --rm docker.io/tradik/mddb:2.19.13
MCP client config
{
"mcpServers": {
"mddb": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"docker.io/tradik/mddb:2.19.13"
]
}
}
}AI-native document database with built-in MCP server, file upload (PDF/DOCX/XLSX/PPTX/EPUB/EML/HTML/ODT/RTF/TEX/YAML/Wikipedia XML to Markdown), vector search, RAG pipelines, and 116 MCP tools. Plugs directly into Claude, ChatGPT, Cursor, Windsurf, and any MCP-compatible agent.
MDDB is a document database purpose-built for AI agents and LLM workflows. Upload files (PDF, DOCX, XLSX, CSV, PPTX, EPUB, EML/MBOX, HTML, ODT, ODS, ODP, RTF, TEX, YAML, TXT). They are auto-converted to Markdown and embedded for semantic search. Expose everything to AI agents via 116 built-in MCP tools. Integrates with Docling, Langflow, OpenSearch, SSG, wpexporter, Airbyte, WordPress Sync, a GitHub Action, a Grafana datasource, and a Chrome browser extension for production pipelines. Single ~36MB binary, zero configuration, BoltDB embedded storage, triple-protocol APIs (HTTP + gRPC + GraphQL).
MCP quick start: MDDB is in the MCP Registry as com.tradik/mddb, and the whole client configuration is one docker run line.
The snippet for Claude, Cursor and Windsurf is in Connect to Claude / Cursor / Windsurf (MCP);
the tool catalogue, transports and toolsets are in docs/MCP.md.
MDDB gives your AI agents a persistent, searchable knowledge base:
.xml.bz2). Wikitext is auto-converted to Markdown, with namespace filtering, and multi-GB files are handledauto to let the server choose) + per-collection quantization (int8/int4) + disk-only low-memory mode + ARM NEON/SME hardware acceleration + goroutine parallel searchhybrid-search, optional postcode lookupkind: ["code"] convention on the existing flat meta switches to a source-aware tokeniser that keeps .hero-banner and checkoutHandler findable whole and in parts (API.md)defines, uses and imports in its meta, so meta.defines=.hero-banner returns the stylesheet that declares the selector instead of the twelve templates that apply it. CSS, JavaScript/TypeScript, HTML; from 2.18, C, C++ and assembly, with #include resolved against per-collection include paths; from 2.18.6, Go, Rust, Java, Python, Ruby and PHP, plus Terraform, Kubernetes/OpenShift manifests, Kustomize and Ansible (language table in API.md, blog)responsePrompt stored with the collection tells every consumer how its answers should be shaped; MCP agents receive it with their search results, in the same round trip (API.md)fast Ingest Profile - One named trade-off instead of a combination of flags to reverse-engineer: text-only parsing, no revisions, no webhooks, and 43x faster on HTML. Embeddings and full-text stay on, because fast should not mean unsearchable (API.md)oversample Knob - Recall/latency dial per query or per collection, where the topK * 3 constant used to be. At 1x a chunked collection returns half the documents you asked for; at 10x it returns all of them, for about 1% more time on a flat index (SEARCH.md)format: "passages" on every search returns a path, the lines, the enclosing function or type and the text. On 15 find-the-code tasks over this repository, vector passages reached the same answers as grep-and-read with 0.6x the tokens of grep's best case (BENCHMARK.md)code_search MCP tool (exact, words, meaning) and code_symbol with format: "lines" answer like grep: path:line lines and a count that says whether the list is complete (MCP.md)mddb-cli eval --fail-below gates CI, and the advisor recommends from the measurement, BM25 k1/b included. mddb-cli gain reports the tokens retrieval returned and saved (SEARCH.md)expectedRevision, collection aliases for blue/green rebuilds (mddb-cli reindex-swap), and delete/update/TTL by metadata filter with a dry run (API.md)excludeMetaKeys/mcp, 2026-07-28 + 2025-11-25), legacy SSE (/sse), and stdioPerfect for: AI agent memory, RAG pipelines, knowledge bases for LLMs, documentation chatbots, semantic search APIs, document processing (PDF/DOCX to Markdown), static site generation, WordPress migration
Start all services with one command:
git clone https://github.com/tradik/mddb.git
cd mddb
# Production mode (all services). Set the secrets first, see below
cp .env.example .env && $EDITOR .env
docker compose up -d
# Development mode (with hot reload)
make dev-start
# Development + Ollama for embeddings
make dev-start-with-ollama
The production compose refuses to start without credentials. The image defaults to
MDDB_AUTH_ENABLED=false, which suits a throwawaydocker runbut notdocker-compose.yml, which runs the server read-write and publishes HTTP, gRPC and MCP. So the compose file turns authentication on and readsMDDB_AUTH_JWT_SECRETandMDDB_AUTH_ADMIN_PASSWORDfrom.envwith no fallback: leave either unset and compose stops with an error naming the variable, rather than quietly starting an open database.Every port is published on
127.0.0.1by default. A reverse proxy or cloudflared reaches the containers overmddb-networkand needs no published port at all; to expose the stack on the host's interfaces, setMDDB_BIND_ADDR=0.0.0.0, deliberately, and only with authentication on. Behind cloudflared, setMDDB_CLIENT_IP_HEADER=CF-Connecting-IPandMDDB_TRUSTED_PROXIESto the cloudflared container's address or the compose network in.env, or every client shares the tunnel's IP (details).
Importing existing content: MDDB does not automatically index bind-mounted directories. Use
scripts/load-md-folder.shor the ingest API to load existing Markdown files.
Services started:
| Service | Port | Image | Description |
|---|---|---|---|
| mddbd | 11023 (HTTP), 11024 (gRPC), 9000 (MCP), 11443 (HTTP/3) | tradik/mddb:latest | Database server with MCP built-in |
| mddb-panel | 3000 | tradik/mddb:panel | React web admin UI |
mddb-cli autoindex .
Every text file under the directory goes into one collection (named after the
repository), with path, kind, language, size, modified and the git
commit in its metadata; the server extracts symbols, and the search advisor
stores a retrieval profile. Running it again only rewrites what changed;
--prune removes what was deleted, --dry-run shows the plan first. While you
work, mddb-cli autoindex . --watch follows every save, and mddb-cli autoindex hook install re-indexes after each commit in the background. See
Bulk Import.
Add --semantic to take definitions, references and implementations from a
language server — gopls, basedpyright, phpactor, clangd (C/C++) or rust-analyzer — instead of heuristics; see
semantic facts.
Learning from another project before implementing something:
mddb-cli reference add github.com/etcd-io/bbolt indexes it as a reference
collection, and mddb-cli reference search "..." (or the reference_search
MCP tool) answers with path:lines passages and the licence. See
Reference Coding.
MDDB has a built-in MCP server, so no extra service is needed. Add to your MCP config:
{
"mcpServers": {
"mddb": {
"command": "docker",
"args": [
"run", "-i", "--rm", "--network", "host",
"-v", "mddb-data:/app/data",
"-e", "MDDB_MCP_STDIO=true",
"tradik/mddb:latest"
]
}
}
}
That is it. Your AI agent now has full access to your knowledge base with 116 built-in tools (add, search, vector search, classify, and more).
The stdio config above starts a separate local database; it does not connect to a running server. To connect Claude Code to a running server, use its MCP URL (MDDB_MCP_PUBLIC_URL + /mcp, or http://<host>:9000/mcp), with the header when MDDB_MCP_API_KEY_ENABLED=true:
claude mcp add --transport http mddb https://mcp.example.com/mcp --header "X-API-Key: mcp_…"
The panel's LLM Connections → Claude tab generates this command, a project .mcp.json and the custom connector steps for your server.
Full MCP setup guide | MCP server config | Custom MCP tools
# MDDB Server only
docker run -d --name mddb \
-p 11023:11023 -p 11024:11024 -p 9000:9000 \
-v mddb-data:/app/data \
tradik/mddb:latest
# Web Panel (connect to existing server)
docker run -d --name mddb-panel \
-p 3000:3000 \
-e VITE_MDDB_SERVER=host.docker.internal:11023 \
tradik/mddb:panel
# MCP stdio mode (for Claude Desktop, Windsurf, etc.)
docker run -i --rm --network host \
-v mddb-data:/app/data \
-e MDDB_MCP_STDIO=true \
tradik/mddb:latest
# Test it
curl http://localhost:11023/health
Docker Hub: https://hub.docker.com/r/tradik/mddb
Linux (Debian/Ubuntu):
wget https://github.com/tradik/mddb/releases/latest/download/mddbd-latest-linux-amd64.deb
sudo dpkg -i mddbd-latest-linux-amd64.deb
sudo systemctl start mddbd
macOS (Apple Silicon):
wget https://github.com/tradik/mddb/releases/latest/download/mddbd-latest-darwin-arm64.tar.gz
tar xzf mddbd-latest-darwin-arm64.tar.gz
sudo mv mddbd-latest-darwin-arm64/mddbd /usr/local/bin/
mddbd
CLI Client:
# Linux
wget https://github.com/tradik/mddb/releases/latest/download/mddb-cli-latest-linux-amd64.deb
sudo dpkg -i mddb-cli-latest-linux-amd64.deb
# Usage
mddb-cli stats
mddb-cli add blog hello en_US -f post.md
mddb-cli search blog -f "tags=tutorial"
mddb-cli fts blog --query="getting started" --algorithm=bm25
Other platforms: See Installation Guide
| Platform | Release binary | Test suite runs in CI |
|---|---|---|
| linux/amd64, linux/arm64 | ✅ | ✅ every push |
| darwin/amd64, darwin/arm64 | ✅ | compiled and vetted, not run |
| freebsd/amd64, freebsd/arm64 | ✅ | compiled and vetted, not run |
| windows/amd64 | ❌ build from source | ✅ every push, since 2.13 |
| windows/arm64 | ❌ | ❌ not a target |
Two things this table is precise about on purpose.
macOS and FreeBSD ship binaries that no CI job executes. They are built and
type-checked on every push, including test files, which catches a platform-split
that fails to compile. The FreeBSD build broke once on a Statfs_t field width
and that is exactly what it catches. It does not catch a syscall that compiles
and returns the wrong thing.
Windows runs the suite but ships nothing. As of 2.13 the full test suite runs
on windows-latest on every push (in three parallel shards since 2.18.9), and native windows/amd64 binaries build from
source with make build-windows. There are no Windows release artifacts, and
Unix domain sockets are refused there by design, because the listener's security model
is owner-only mode bits, which Windows cannot express. WSL2 remains the route
that runs the same binary every release is built and tested against. See the
Installation Guide.
git clone https://github.com/tradik/mddb.git
cd mddb
make build # host platform
make build-windows # cross-compile windows/amd64 into dist/
./services/mddbd/mddbd
MDDB is a Go monorepo with multiple modules (services/mddbd, services/mddb-cli, clients/go/mddb, tools/bench). A go.work file at the repo root enables Go workspace mode for local development:
services/mddbd immediately updates references in services/mddb-cli via gopls.go build ./services/mddbd/... ./services/mddb-cli/... ./tools/bench/... from the repo root.services/mddbd internal package structure (GO-015)The daemon was refactored from one flat ~58k-LOC package main into importable, independently-testable internal/ packages. Server-independent leaves and dependency-inverted subsystems now live behind compilation boundaries:
| Area | Packages |
|---|---|
| Storage & docs | internal/storage (the Doc type, key builders, proto conversion), internal/binlog (replication log), internal/compression, internal/delta |
| Search | internal/fts (full-text), internal/vector (ANN/embeddings/SIMD), internal/geo, internal/spell, internal/embedding |
| Subsystems | internal/cache, internal/metrics (inverted via StatsProvider), internal/indexqueue (inverted via Store), internal/ttl (inverted via Reaper), internal/encryption, internal/webhooks, internal/automationlog, internal/schema, internal/temporal, internal/audit |
| Shared utilities | internal/envconf, internal/sliceutil, internal/httpclient (pooled SSRF-safe client), internal/wikitext, internal/sentiment |
HTTP/gRPC/MCP/GraphQL handlers stay in package main as thin transport over these packages. The HTTP API client is a separate shared module, clients/go/mddb (github.com/tradik/mddb/clients/go/mddb/v2), consumed by mddb-cli and external Go integrations.
CI runs in module-isolation mode (GOWORK=off in .github/workflows/test.yml and release.yml) so each module builds and tests independently. This catches missing require entries that workspace mode would transparently resolve from sibling modules.
To use the same mode locally for debugging:
GOWORK=off go build ./... # from inside services/mddbd
Regenerating protos (buf generate) and Docker builds are unaffected by go.work. They operate on individual modules.
MDDB ships as a monorepo with multiple packages:
| Package | Language | Location | Description |
|---|---|---|---|
| mddbd | Go | services/mddbd/ | Database server (HTTP + gRPC + GraphQL + MCP) |
| mddb-panel | React/JS | services/mddb-panel/ | Web admin panel |
| mddb-cli | Go | services/mddb-cli/ | Command-line client with GraphQL support |
| mddb-chat | Rust | services/mddb-chat/ | WebSocket chat server with LLM integration |
| mddb-chat-widget | JS/TS | services/mddb-chat-widget/ | Embeddable JS chat widget |
Zero-dependency HTTP clients - copy a single file into your project:
| Library | Language | Location | Install |
|---|---|---|---|
| PHP Extension | PHP 8.0+ | services/php-extension/mddb.php | Copy mddb.php into your project |
| Python Extension | Python 3.8+ | services/python-extension/mddb.py | Copy mddb.py into your project |
PHP:
require_once 'mddb.php';
$db = mddb::connect('localhost:11023', 'write');
$db->collection('blog')->add('hello', 'en_US', ['author' => ['John']], '# Hello');
$results = $db->collection('blog')->vectorSearch('cancel subscription', 5, 0.7);
Python:
from mddb import MDDB
db = MDDB.connect('localhost:11023', 'write').collection('blog')
db.add('hello', 'en_US', {'author': ['John']}, '# Hello')
results = db.vector_search('cancel subscription', top_k=5)
High-performance clients generated from Protocol Buffers:
| Library | Language | Location | Description |
|---|---|---|---|
| Go HTTP client | Go | clients/go/mddb/ | Official HTTP/JSON SDK, shared by mddb-cli and external Go integrations |
| Go gRPC stubs | Go | services/mddbd/proto/ | Native Go gRPC stubs |
| Python gRPC | Python | clients/python/ | Generated Python gRPC client |
| Node.js gRPC | Node.js | clients/nodejs/ | Uses @grpc/grpc-js |
Proto definitions at proto/mddb.proto - generate clients for any language supported by protobuf.
The Go HTTP SDK is a standalone module, github.com/tradik/mddb/clients/go/mddb/v2, tagged clients/go/mddb/vX.Y.Z with each server release (go get github.com/tradik/mddb/clients/go/mddb/v2@latest):
import mddb "github.com/tradik/mddb/clients/go/mddb/v2" // replace => ./clients/go/mddb in the monorepo
c := mddb.New("http://localhost:11023", mddb.WithAPIKey(os.Getenv("MDDB_API_KEY")))
doc, err := c.Add(ctx, mddb.AddRequest{Collection: "blog", Key: "hello", Lang: "en", ContentMD: "# Hi"})
| Image | Size | Description |
|---|---|---|
tradik/mddb:latest | ~47MB | Database server with MCP built-in (Alpine) |
tradik/mddb:panel | ~88MB | Web admin panel (Node Alpine) |
There is no CLI image. mddb-cli ships in the release archives (.tar.gz, .deb, .rpm), Homebrew (brew install tradik/tap/mddb-cli) and snap (snap install mddb-cli). To run it in a container, build it from the repository root: docker build -f services/mddb-cli/Dockerfile -t mddb-cli .
| Format | Platform | Contents |
|---|---|---|
.deb | Debian/Ubuntu | mddbd + systemd unit + man page |
.rpm | RHEL/CentOS/Fedora | mddbd + systemd unit + man page |
.tar.gz | Any (Linux, macOS, FreeBSD) | Standalone binary |
server/discover, tool annotations, prompts, completion, and structured output/v1/chat/scenarios, gRPC and MCP alike), edited in the panel, with a composed-prompt preview and one version counter a chat service polls to pick up changes without a restart (API.md)SKILL.md instruction blocks attached to scenarios in a chosen order and composed after the guardrails; paste or import from an https URL (full text shown before saving, GitHub URLs pinned to a commit), versioned with a diff on update, a "used by" list and size limits; admin only (API.md)wordpress_publish / wordpress_set_status MCP tools create, update and (un)publish posts & pages on sites running the mddb-sync plugin, including tags, categories, meta fields and Polylang/WPML translations included (docs)mddb-cli autoindex; meta.conversionConfidence flags scans and broken files).xml.bz2) with wikitext to Markdown conversion, namespace filtering, batch processingalgorithm: "auto" picks the vector index per query (explain: true shows why); positive/negative examples correct a search with Rocchio or rescoring; client-written document summaries as a second representation (summaryMode: blend|expand); images from Markdown and PDF attached to hits (includeImages) and searchable by picture with Voyage or Cohere; queryDecomposition: "auto" searches a question with several needs clause by clause (v2.18.10); after a restart a collection answers with flat and HNSW as soon as its vectors are loaded, while IVF/PQ/OPQ/SQ train in the background and auto skips them until they are ready (v2.18.10) (guide)facetBy to /v1/fts or /v1/hybrid-search and get per-key value counts alongside results, with no separate aggregate call/v1/curation (CRUD); applied in FTS + Hybrid pipelinesesCompat module (System → Features, or MDDB_ES_COMPAT=true) mounts _search, _count, _doc, _bulk under /es, translated onto MDDB's full-text, vector (auto), hybrid (rrf) and metadata paths with the same auth, permissions and limits as /v1; tested in CI with the unmodified elasticsearch-py (v2.18.10+) — DetailsmaxRevisions, v2.9.14+) trimmed synchronously on every writeMDDB_TEMPORAL=true)MDDB_SPELL=true)mddb-chat stored in mddbd: a host API over REST and gRPC (create, resume with the last N messages, end, export and delete everything of a user for GDPR), every call bound to the user id (sub) of the host's signed join token, per-scenario retention, tenant-scoped, read-only MCP tools (API)mddb-cli corpus install, no re-embedding or reindexing; licences mandatory (v2.18.10)MDDB_MCP_MODE=read (MCP read-only), MDDB_API_MODE, MDDB_GRPC_MODE, MDDB_HTTP3_MODEMDDB_MCP_BUILTIN_TOOLS=false to expose only custom YAML tools; MDDB_MCP_TOOLSETS=search,code (or per API key) to expose only some groupsMDDB_MCP_CONFIRM_DESTRUCTIVE=elicit|require makes deletes, truncation and restore ask the human through MCP elicitation first (guide)maxDocuments, maxBytes, maxVectors and a daily embedding budget per collection (507/429 on every protocol), plus MDDB_DISK_RESERVE_BYTES and MDDB_VECTOR_RAM_LIMIT_BYTESGET /v1/tenants/{id}/usage and mddb_tenant_* metricsMDDB_TLS_ENABLED=true, MDDB_TLS_CERT, MDDB_TLS_KEY, taking a user-supplied PEM cert and key, TLS 1.2 minimumMDDB_TLS_CLIENT_CA points to a PEM bundle of trusted client CAs; MDDB_TLS_CLIENT_AUTH=require (default) or request. Rejects unauthenticated clients when requireMDDB_HTTP_ADDR=unix:/tmp/mddb-http.sock and MDDB_GRPC_ADDR=unix:/tmp/mddb-grpc.sock, a zero-network local transport with 0600 filesystem perms. Clients in Python (MDDB.connect('unix:/tmp/mddb-http.sock')), PHP (mddb::connect('unix:/tmp/mddb-http.sock')), Node/Python gRPC (unix:/tmp/mddb-grpc.sock channel target)MDDB_AUDIT_ENABLED=true persists structured JSON events (auth attempts, writes, deletes) to a dedicated BoltDB bucket. Admin-only GET /v1/audit query with actor / action / result / time-window filters. Retention configurable via MDDB_AUDIT_RETENTION_DAYS (default 90)/v1/webhooks to security.auth_failure_burst, security.rate_limit_exceeded, ops.replication_lag_high, ops.panic_recovered, ops.disk_usage_high. Panic-recovery middleware turns handler crashes into structured 500 + event instead of process killMDDB_ENCRYPTION_KEY (32 B base64) and flip CollectionConfig.encrypted=true per collection. Legacy plaintext stays readable after flip. FTS / vector indexes remain plaintext (queryable). Losing the key is terminal, so store it in an HSM with escrowMDDB_ENCRYPTION_KEY + MDDB_ENCRYPTION_KEY_ID and listing every superseded key in MDDB_ENCRYPTION_KEYS_PREVIOUS (JSON [{"id":1,"key":"..."}]). Old documents stay readable; the admin endpoint POST /v1/encryption/rotate (or panel "Encryption", then "Start rotation") rewrites every encrypted entry under the new primary in the background. V1 (2.9.15) ciphertexts continue to decrypt, so the change is non-breakingMDDB_AUDIT_EXPORT_WEBHOOK_URL mirrors every audit event as JSON to a SIEM (Splunk HEC, Datadog Logs, ELK) with custom auth headers from MDDB_AUDIT_EXPORT_WEBHOOK_HEADER. MDDB_AUDIT_EXPORT_SYSLOG_ADDR=host:port (or tcp://host:port) sends RFC 5424 framed messages to a syslog collector. Both can run together. Per-sink delivered/failed/dropped counters at GET /v1/audit/exporters and in the Security panelMDDB_RATE_LIMIT_ENABLED=true enforces a single sliding-window budget across both transports (per-IP by default, MDDB_RATE_LIMIT_BY=user keys on authenticated username). Emits X-RateLimit-* headers + 429 Retry-After on HTTP; ResourceExhausted on gRPC. Health / metrics endpoints are always exempt. The client IP header (MDDB_CLIENT_IP_HEADER: X-Forwarded-For by default, Forwarded, CF-Connecting-IP, X-Real-IP, ...) and PROXY protocol v1/v2 (MDDB_PROXY_PROTOCOL=on) count only from proxies listed in MDDB_TRUSTED_PROXIES (IPs/CIDRs, empty = trust nobody); setup for nginx, Traefik, Caddy, HAProxy, F5, NetScaler, vTM, Cloudflare/cloudflared and AWS ALB/NLB in config.md — DetailsMDDB_SEARCH_MAX_LIMIT results (default 1000) on REST, gRPC, MCP and GraphQL, lowered further per collection by retrieval.maxTopK; a capped response says "limitCapped": true with the limit used (v2.18.10+) — DetailsMDDB_PRODUCTION=true fails startup unless every compliance guardrail is satisfied (auth on, JWT secret of 32 bytes or more, TLS on, CORS explicit, audit + rate limit enabled). Unset = silent warning; no breaking change for existing deployments. DetailsFull compliance map, threat model, operational checklist
MDDB_CLUSTER_PEERS three or more nodes elect the leader by majority, replace a failed one, answer writes on other nodes with the leader's address, and set aside writes a returning old leader alone had; optional quorum acknowledgements (CLUSTER.md)MDDB_PLACEMENT_GROUPS several clusters (node groups) share the collections, each group holding whole collections; any node routes a request to the group holding its collection, cross-search and stats ask every group, and mddb-cli placement move moves a collection to another group while it takes writes. One collection is never split across groups, and nothing rebalances on its own (CLUSTER.md)instructions); OAuth tokens carry the scope of their key (MCP.md)DELETE /v1/auth/permissions and /v1/auth/group-permissions, GraphQL deletePermission / deleteGroupPermission, and a remove button in the panel (AUTHENTICATION.md)MDDB_MCP_PUBLIC_URL and /v1/config report how MCP is reached; the panel's Claude tab builds the command, the project file and the connector steps for this server (LLM_CONNECTIONS.md)GET /v1/chat/scenarios/{name}/access lists every user with the grant that lets them read the scenario's collections; the panel shows it in the scenario's Access card, with links to LLM Connections, Users and Groups (API.md)/v1/vector_stores, or the Qdrant provider at /qdrant), as its web search, reranker and document loader (/v1/web-search, /v1/rerank, /v1/extract), and mddb-chat serves each chat scenario as a model (/v1/models, /v1/chat/completions); every surface is a module, off by default (OPENWEBUI.md, LLM_CONNECTIONS.md)qdrant-client's query_points searches a collection under /qdrant (QDRANT_COMPAT.md).vscode/mcp.json for the chat built into VS Code, with the key kept in VS Code's secret storage (LLM_CONNECTIONS.md)See all features | Compare with alternatives | Measured benchmarks
MDDB supports leader-follower replication allowing you to scale read operations horizontally.
graph LR
C[Clients] -->|Writes/Reads| L[Leader]
C -->|Reads| F1[Follower 1]
C -->|Reads| F2[Follower 2]
L -->|gRPC StreamBinlog| F1
L -->|gRPC StreamBinlog| F2
Modern React-based UI for managing documents, users, and search with REST/GraphQL API toggle.

Features: Browse collections, view/edit documents, vector search, user management, API mode switching (REST and GraphQL), live markdown preview.
# Upload a PDF, auto-converted to Markdown
curl -X POST http://localhost:11023/v1/upload \
-F "file=@report.pdf" \
-F "collection=docs" \
-F "lang=en_US"
# Upload with custom key and metadata
curl -X POST http://localhost:11023/v1/upload \
-F "file=@manual.docx" \
-F "collection=docs" \
-F "key=user-manual" \
-F "lang=en_US" \
-F 'meta={"category":["documentation"]}'
# Batch upload multiple files
curl -X POST http://localhost:11023/v1/upload \
-F "files[]=@doc1.pdf" \
-F "files[]=@doc2.html" \
-F "files[]=@doc3.txt" \
-F "collection=docs" \
-F "lang=en_US"
# Add a document
curl -X POST http://localhost:11023/v1/add \
-H 'Content-Type: application/json' \
-d '{
"collection": "blog",
"key": "hello-world",
"lang": "en_US",
"meta": {"author": ["John"], "tags": ["tutorial"]},
"contentMd": "# Hello World\n\nWelcome to MDDB!"
}'
# Get document
curl -X POST http://localhost:11023/v1/get \
-H 'Content-Type: application/json' \
-d '{"collection": "blog", "key": "hello-world", "lang": "en_US"}'
# Search by metadata
curl -X POST http://localhost:11023/v1/search \
-H 'Content-Type: application/json' \
-d '{"collection": "blog", "filterMeta": {"tags": ["tutorial"]}, "limit": 10}'
# Documents auto-embedded in background
# Search by meaning, not keywords
curl -X POST http://localhost:11023/v1/vector-search \
-H 'Content-Type: application/json' \
-d '{
"collection": "kb",
"query": "how do I cancel my subscription?",
"topK": 5,
"threshold": 0.7,
"includeContent": true
}'
Combine keyword (BM25/BM25F) and semantic (vector) search in a single query. Two merge strategies:
combined = (1-a) * BM25_score + a * vector_score -- configurable weightcurl -X POST http://localhost:11023/v1/hybrid-search \
-H "Content-Type: application/json" \
-d '{
"collection": "docs",
"query": "machine learning",
"topK": 10,
"strategy": "alpha",
"alpha": 0.5
}'
FTS supports simple, boolean, phrase, wildcard, proximity, range, and fuzzy modes with auto-detection:
# Simple search with metadata pre-filtering
curl -X POST http://localhost:11023/v1/fts \
-H "Content-Type: application/json" \
-d '{
"collection": "blog",
"query": "getting started",
"limit": 10,
"algorithm": "bm25",
"filterMeta": {"category": ["tutorial"]}
}'
# Boolean search (AND, OR, NOT, +required, -excluded)
curl -X POST http://localhost:11023/v1/fts \
-H "Content-Type: application/json" \
-d '{
"collection": "blog",
"query": "rust AND performance NOT garbage",
"mode": "boolean"
}'
# Phrase search (exact sequence)
curl -X POST http://localhost:11023/v1/fts \
-H "Content-Type: application/json" \
-d '{
"collection": "blog",
"query": "\"machine learning\"",
"mode": "phrase"
}'
# Proximity search (terms within N words)
curl -X POST http://localhost:11023/v1/fts \
-H "Content-Type: application/json" \
-d '{
"collection": "blog",
"query": "\"database performance\"~5",
"mode": "proximity",
"distance": 5
}'
# Enable GraphQL
docker run -e MDDB_GRAPHQL_ENABLED=true -p 11023:11023 tradik/mddb
# Query
curl -X POST http://localhost:11023/graphql \
-H 'Content-Type: application/json' \
-d '{
"query": "{ document(collection: \"blog\", key: \"hello-world\", lang: \"en\") { contentMd meta } }"
}'
# Interactive Playground
open http://localhost:11023/playground
# Install CLI
wget https://github.com/tradik/mddb/releases/latest/download/mddb-cli-latest-linux-amd64.deb
sudo dpkg -i mddb-cli-latest-linux-amd64.deb
# Use CLI
mddb-cli add blog hello en_US -f post.md -m "author=John,tags=tutorial"
mddb-cli get blog hello en_US
mddb-cli search blog -f "tags=tutorial"
mddb-cli fts blog --query="getting started"
mddb-cli stats
# Share a collection as a read-only corpus pack
mddb-cli corpus build blog --license CC-BY-4.0 --version 1.0
mddb-cli corpus install ./blog-1.0.mddbpack # on another server
API reference | Use case examples | Client libraries
🌐 Official Website - Complete documentation, downloads, examples
algorithm: "auto"autoindex, passages and the context budget, code symbols and graph, corpus packs, confirming destructive toolsautoindex --semanticesCompat module (or MDDB_ES_COMPAT=true): unmodified Elasticsearch clients index, search (match, bool, term, range, knn, highlight, terms aggs) and delete under /es; unsupported clauses are a 400 naming them (v2.18.10+)mddb-cli autoindex for a directory or repository, and the converters it usesmddbd -verify-db / -repair-db for a damaged database file; scheduled backups with retention to a local directory or S3MDDB_STORAGE_LAYOUT)mddb-cli corpus build / install / list / removeMDDB_OTEL_ENDPOINT), and the diagnose bundle without user data (mddb-cli diagnose) to attach to an issuemake bench-profile PROFILE=small|full measures search latency and recall@10 per vector algorithm, ingest, start-up, kill -9 recovery and follower catch-up into docs/benchmarks/ (TEST-005)┌─────────────────────────────────────────────────────┐
│ AI Agents (Claude, ChatGPT, Cursor, Windsurf) │
│ | MCP (stdio / HTTP :9000) │
├─────────────────────────────────────────────────────┤
│ Other Clients │
├──────────┬──────────┬──────────┬────────────────────┤
│HTTP/JSON │gRPC/Proto│ GraphQL │ HTTP/3 │
│ :11023 │ :11024 │ /graphql │ :11443 │
├──────────┴──────────┴──────────┴────────────────────┤
│ MDDB Server (Go) │
│ - File Upload (PDF/DOCX/HTML/TXT to Markdown) │
│ - Auto-Embeddings (OpenAI, Ollama, Cohere, Voyage) │
│ - Vector + Full-Text + Hybrid Search │
│ - Zero-Shot Classification │
│ - Automation (triggers, crons, webhooks) │
│ - JWT Auth + RBAC │
├─────────────────────────────────────────────────────┤
│ BoltDB (Embedded ACID Storage) │
│ - B+Tree index, single-file, MVCC transactions │
└─────────────────────────────────────────────────────┘
POST /v1/fts,
GET /v1/autocomplete behind nginx) are served by mddb on FreeBSD with ZFS. Its
stats page shows mddb's live memory and
disk use.Running mddb in something public? Open an issue or a PR to be listed here and on mddb.tradik.com.
The logo, its icons and banners live in brand/. Colours, contrast
ratios (WCAG 2.2), clear space, backgrounds and the size matrix are in
brand/USAGE.md. Rasters are generated from the SVG master
with make brand-icons and checked with make test-export-brand.
Contributions welcome! See CONTRIBUTING.md for guidelines.
Security issues: See SECURITY.md
MDDB is source-available. The server, CLI, panel and chat service are under the Business Source License 1.1 (LICENSE): free to run in production inside your organisation, free to modify; offering MDDB itself to third parties as a hosted or embedded product needs a commercial licence. Each version becomes Apache-2.0 four years after its release. The client libraries, integrations and protocol definitions are BSD-3-Clause. The directory map, the FAQ and how to get a commercial licence or support are in LICENSING.md. Releases up to 2.18.10 stay BSD-3-Clause.