# MDDB

> MDDB is an open-source MCP server for knowledge and memory. Embedded knowledge database with 116 MCP tools for agents needing search and RAG. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** Linux, macOS, Windows, API, CLI, Self-hosted
- **Website:** https://mddb.tradik.com
- **Repository:** https://github.com/tradik/mddb
- **MCP Registry name:** com.tradik/mddb
- **Categories:** [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory), [AI models and LLM tooling](https://ai-powered.com/categories/ai-and-llm)
- **Listing updated:** 2026-11-23

## About

MDDB keeps Markdown, office documents and source code in one embedded store, then lets you find them by keyword, by meaning or by both. Files such as PDF, DOCX, XLSX, EPUB and email are converted to Markdown on upload, and each document keeps its full revision history.

The server ships as a single Go binary built on BoltDB, so there is no separate database to run. It exposes its features over REST, gRPC, GraphQL and an MCP server that speaks stdio and Streamable HTTP. Tool groups can be limited per agent or API key, so a client only sees the search or code tools it needs.

It suits developers building retrieval pipelines or coding assistants that need to query a codebase by symbol, and teams who want a self-hosted knowledge base for AI agents without operating a separate vector database.

## Features

- **Hybrid keyword and vector search:** Combines BM25 full-text ranking with embedding similarity, merged by alpha blending or Reciprocal Rank Fusion.
- **Document conversion to Markdown:** Converts PDF, DOCX, spreadsheets, slides, e-books and email uploads into Markdown as they are ingested.
- **Code symbol lookup:** Returns definitions, references, callers and callees of a symbol in a single call for repository search.
- **Scoped MCP toolsets:** Exposes only selected tool groups per agent or API key, with destructive tools optionally gated by confirmation.
- **Single binary deployment:** Runs as one roughly 36MB executable with embedded storage and no configuration file required to start.
- **Automatic embedding on ingest:** Background workers embed each document as it arrives, using OpenAI, Ollama, Cohere, Voyage or an offline provider.
- **Replication and TLS:** Leader-follower replication, optional leader election, TLS and mutual TLS, and JWT authentication with role-based access.

## Good for

- Give a coding agent searchable access to a repository by function and symbol
- Build a retrieval-augmented question answering layer over internal documents
- Store and recall conversational memory for a chat assistant
- Index a sitemap or S3 prefix so an agent can search it and stay current
- Expose a self-hosted knowledge base to Claude, Cursor or Windsurf over MCP

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add mddb --env MDDB_MCP_STDIO='<MDDB_MCP_STDIO>' -- docker run -i --rm -e MDDB_MCP_STDIO docker.io/tradik/mddb:2.19.14
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "mddb": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "MDDB_MCP_STDIO",
        "docker.io/tradik/mddb:2.19.14"
      ],
      "env": {
        "MDDB_MCP_STDIO": "<MDDB_MCP_STDIO>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mddb": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "MDDB_MCP_STDIO",
        "docker.io/tradik/mddb:2.19.14"
      ],
      "env": {
        "MDDB_MCP_STDIO": "<MDDB_MCP_STDIO>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "mddb": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "MDDB_MCP_STDIO",
        "docker.io/tradik/mddb:2.19.14"
      ],
      "env": {
        "MDDB_MCP_STDIO": "<MDDB_MCP_STDIO>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "mddb": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "MDDB_MCP_STDIO",
        "docker.io/tradik/mddb:2.19.14"
      ],
      "env": {
        "MDDB_MCP_STDIO": "<MDDB_MCP_STDIO>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add mddb --env MDDB_MCP_STDIO='<MDDB_MCP_STDIO>' -- docker run -i --rm -e MDDB_MCP_STDIO docker.io/tradik/mddb:2.19.14
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.mddb]
command = "docker"
args = ["run", "-i", "--rm", "-e", "MDDB_MCP_STDIO", "docker.io/tradik/mddb:2.19.14"]
env = { MDDB_MCP_STDIO = "<MDDB_MCP_STDIO>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "mddb": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "MDDB_MCP_STDIO",
        "docker.io/tradik/mddb:2.19.14"
      ],
      "env": {
        "MDDB_MCP_STDIO": "<MDDB_MCP_STDIO>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e MDDB_MCP_STDIO='<MDDB_MCP_STDIO>' mddb docker -- run -i --rm -e MDDB_MCP_STDIO docker.io/tradik/mddb:2.19.14

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "mddb": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "MDDB_MCP_STDIO",
        "docker.io/tradik/mddb:2.19.14"
      ],
      "env": {
        "MDDB_MCP_STDIO": "<MDDB_MCP_STDIO>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "mddb": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "MDDB_MCP_STDIO",
        "docker.io/tradik/mddb:2.19.14"
      ],
      "env": {
        "MDDB_MCP_STDIO": "<MDDB_MCP_STDIO>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "mddb": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "MDDB_MCP_STDIO",
        "docker.io/tradik/mddb:2.19.14"
      ],
      "env": {
        "MDDB_MCP_STDIO": "<MDDB_MCP_STDIO>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "mddb": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "MDDB_MCP_STDIO",
        "docker.io/tradik/mddb:2.19.14"
      ],
      "env": {
        "MDDB_MCP_STDIO": "<MDDB_MCP_STDIO>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "mddb": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "MDDB_MCP_STDIO",
        "docker.io/tradik/mddb:2.19.14"
      ],
      "env": {
        "MDDB_MCP_STDIO": "<MDDB_MCP_STDIO>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "mddb": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "MDDB_MCP_STDIO",
        "docker.io/tradik/mddb:2.19.14"
      ],
      "env": {
        "MDDB_MCP_STDIO": "<MDDB_MCP_STDIO>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "mddb": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "MDDB_MCP_STDIO",
        "docker.io/tradik/mddb:2.19.14"
      ],
      "env": {
        "MDDB_MCP_STDIO": "<MDDB_MCP_STDIO>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "mddb": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "MDDB_MCP_STDIO",
        "docker.io/tradik/mddb:2.19.14"
      ],
      "env": {
        "MDDB_MCP_STDIO": "<MDDB_MCP_STDIO>"
      }
    }
  }
}
```

## FAQ

### How is MDDB installed?

It can be run as a Docker image, installed from Homebrew or Snap, downloaded as a binary, or built from source with make.

### Which MCP transports does MDDB support?

It serves MCP over stdio, Streamable HTTP and SSE.

### Which file formats can be uploaded?

It accepts about 20 formats, including PDF, DOCX, XLSX, CSV, PPTX, EPUB, EML, MBOX, HTML, ODT and Markdown or plain text.

### Does MDDB need an external vector database?

No. Vector indexes are built into the server, which stores its data in an embedded BoltDB file.

### Is MDDB free?

Yes. MDDB is open source, so you can use and self-host it for free.

### How do I add MDDB to Claude Code?

Run this command in your terminal: claude mcp add mddb --env MDDB_MCP_STDIO='<MDDB_MCP_STDIO>' -- docker run -i --rm -e MDDB_MCP_STDIO docker.io/tradik/mddb:2.19.14

### What are the best alternatives to MDDB?

The closest alternatives to MDDB are Local Vector Search MCP, kbdb, MCP Local Rag, QMD MCP and Rag.

## Where this comes from

- Description: written from the project's README, the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Local Vector Search MCP](https://ai-powered.com/mcp/local-vector-search-mcp): Local Vector Search MCP is an open-source MCP server for knowledge and memory.
- [kbdb](https://ai-powered.com/mcp/kbdb): kbdb is an open-source MCP server for knowledge and memory.
- [MCP Local Rag](https://ai-powered.com/mcp/mcp-local-rag): MCP Local Rag is an open-source MCP server for knowledge and memory.
- [QMD MCP](https://ai-powered.com/mcp/qmd-mcp): QMD MCP is an open-source MCP server for knowledge and memory.
- [Rag](https://ai-powered.com/mcp/rag): Rag is an open-source MCP server for knowledge and memory.
- [second-brain MCP](https://ai-powered.com/mcp/second-brain-mcp-2): second-brain MCP is an open-source MCP server for knowledge and memory.
- [Doctree MCP](https://ai-powered.com/mcp/doctree-mcp): Doctree MCP is an open-source MCP server for knowledge and memory.
- [Rag Vault](https://ai-powered.com/mcp/rag-vault): Rag Vault is an open-source MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/mddb
