Deploy¶
These pages are for an operator running the server for others over HTTP, as a container or a system service, with every caller authenticated. Each page covers one task. Start with Docker for a container or systemd for the .deb/.rpm package; then Authentication, then the reverse proxy that exposes it.
- Docker: the image, Compose, ports, volumes and health checks.
- systemd and the Linux packages: the package's contents and the environment file; the unit's confinement; upgrades.
- Authentication: bearer tokens or OIDC, and when to use which.
- OIDC: which of the two OIDC modes to run, and how to configure it.
- OIDC providers: Authelia, Keycloak, Google, and GitHub through a broker.
- Reverse proxy: TLS, its own hostname or a path prefix, and the routing OAuth discovery needs.
- MCP Apps: which clients render the server's interface, and the one setting it may need.
- Transfer links: one-time download and upload URLs, for the person holding one and for the operator.
Before exposing the server, read the security model: an authenticated caller has every tool the instance exposes, and under OIDC the identity provider alone decides who gets in.
This server needs one thing to serve: a folder of Markdown notes, MARKDOWN_VAULT_MCP_SOURCE_DIR. With MARKDOWN_VAULT_MCP_GIT_REPO_URL set, an empty folder will do, because the server clones the repository into it. Beyond the vault it calls only what you configure: the git remote, an embedding provider (Ollama, OpenAI or Voyage; FastEmbed runs in the process but downloads its model once), and the language model behind summarize. To keep the embeddings in PostgreSQL rather than in files beside the index, see PostgreSQL embedding store.
Example environment files for common setups are in examples/. They cover a read-only Obsidian vault with Ollama embeddings, a read-write vault with managed git, a read-only vault behind OIDC, and a corpus that requires frontmatter fields.