# mddb [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/tradik/mddb  
**GitHub Stars:** 6  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mddb

## Description
Embedded knowledge base with 114 MCP tools, hybrid BM25+vector search and RAG. One Go binary.

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/tradik/mddb), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Start the server:

```sh
docker run
```

2. Install:

```sh
git clone https://github.com/tradik/mddb.git
```

3. Install:

```sh
cd mddb
```

4. Configure:

```sh
cp .env.example .env && $EDITOR .env
```

5. Start the server:

```sh
docker compose up -d
```

6. Start the server:

```sh
make dev-start
```

## Documentation

## What mddb does

mddb is an AI-oriented document database with an MCP server built in. It gives compatible agents access to document ingestion, search, retrieval, memory, classification, and database operations through 114 MCP tools. The database stores content in embedded BoltDB storage and can run as a single Go binary.

Files including PDF, DOCX, XLSX, CSV, PPTX, EPUB, email, HTML, OpenDocument formats, RTF, TeX, YAML, and TXT can be converted to Markdown before indexing. Wikipedia XML dumps can also be imported with namespace filtering. Documents receive embeddings for semantic retrieval, while full-text indexing supports keyword queries.

Search supports BM25, vector similarity, and hybrid ranking. Retrieval options include parent, chunk, and window modes, result diversification with MMR, metadata-based freshness or recency boosts, and geographic queries using R-tree or geohash indexes. The system also provides conversational memory for storing, recalling, and summarizing chat sessions.

## How it works

Agents connect through the built-in MCP interface and use the available tools to add, inspect, search, and manage content. The service also exposes HTTP, gRPC, and GraphQL APIs for applications that need access outside an MCP client. A collection can have its own embedding provider, retrieval profile, response formatting instructions, and search defaults.

Embedding providers include OpenAI, Ollama, Voyage, Cohere, and an offline lexical option. Vector indexing offers several algorithms, including Flat, HNSW, IVF, PQ, OPQ, SQ, SQ4, and BQ, with an automatic selection mode. Per-collection quantization and a disk-only low-memory mode are available for storage or memory trade-offs.

Code documents can be indexed with source-aware tokenization. Supported code metadata records definitions, uses, and imports, allowing symbol lookups and a derived connection graph for tracing relationships between files and symbols. Custom MCP tools can be defined with YAML for domain-specific workflows.

## Setup and configuration

The quickest MCP setup uses the published `com.tradik/mddb` package from the MCP Registry and a Docker-based client configuration. The project describes the deployment as a single Docker run line and also provides a standalone binary of roughly 32 MB. Storage is embedded, so the basic deployment does not require a separate database service.

Configure embedding behavior at the server or collection level. Collection settings can also hold retrieval type, result count, granularity, hybrid strategy, context-token budget, and answer-formatting instructions. Supported integrations include Docling, Langflow, OpenSearch, Airbyte, WordPress tooling, Grafana, a GitHub Action, a static-site generator, and a Chrome extension.

## Tools and capabilities

- Ingest and convert documents into searchable Markdown.
- Import Wikipedia MediaWiki XML dumps.
- Run keyword, vector, hybrid, geographic, and code-oriented searches.
- Store and retrieve conversational memory.
- Classify documents against candidate labels using embeddings.
- Expose custom YAML-defined MCP tools.

## Limitations and notes

The offline embedding provider supports lexical matching rather than semantic meaning. Semantic search therefore requires a compatible embedding provider such as OpenAI, Ollama, Voyage, or Cohere. The server is licensed under BUSL-1.1, while its clients are covered separately under BSD-3-Clause.

_Full upstream README: https://allmcps.com/mcp/mddb/readme_

