C

Contextator

by Contextator · io.github.Contextator/contextator

Enables turning any collection of documentation into a private, semantically searchable MCP endpoint, with one URL per project and self-hosted in a single Docker container.

Remote GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-contextator-contextator": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://{host}/mcp/{project}"
      ]
    }
  }
}

Restart Claude Desktop to activate the new server. If the server uses OAuth (not known from registry metadata), mcp-remote opens a browser to sign in on first start and caches tokens in ~/.mcp-auth.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-contextator-contextator": {
      "url": "https://{host}/mcp/{project}"
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-contextator-contextator": {
      "type": "http",
      "url": "https://{host}/mcp/{project}"
    }
  }
}

The server will be available in the next Claude Code session. If the server uses OAuth, run /mcp inside Claude Code to authenticate.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-contextator-contextator": {
      "type": "http",
      "url": "https://{host}/mcp/{project}"
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-contextator-contextator": {
      "serverUrl": "https://{host}/mcp/{project}"
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-contextator-contextator": {
      "type": "streamableHttp",
      "url": "https://{host}/mcp/{project}"
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
HOST No The host interface to bind the server to. Default: 0.0.0.0
PORT No The port to bind the server to. Default: 3444
DATA_DIR No Writable directory holding the materialised sources (git checkouts, uploads, Notion pulls). /data inside the container. Default: .data
SECRET_KEY No At least 32 characters (e.g. openssl rand -hex 32). Encrypts git/Notion tokens at rest (AES-256-GCM). Needed only once such a source exists; changing it invalidates stored tokens.
SETUP_CODE No One-time code required by /setup to create the first account. If unset, the server generates one and prints it at every start until an account exists. Case, dashes and punctuation are ignored when checked.
ADMIN_TOKEN No Machine access token for /api/*, acting with root permissions. Treat like a root password; do not use in a browser.
DATABASE_URL No Local development database connection string. The container ignores it and talks to its embedded PostgreSQL via PG* variables set by the entrypoint. Default: postgres://contextator:contextator@localhost:5432/contextator
IGNORE_GLOBS No Comma-separated glob patterns to ignore, e.g. '**/CHANGELOG.md,drafts/**'. Applies to every source.
RESET_VECTORS No Set to '1' to drop all existing vectors and re-type the vector column (used when changing embedding dimension). Default: 0
DOCS_HOST_PATH No Host folder mounted read-only at /docs (docker-compose only). Default: ./docs
OPENAI_API_KEY No OpenAI API key, used when EMBEDDING_PROVIDER is 'openai'.
ALLOWED_ORIGINS No Extra browser origins allowed on /mcp/* (non-browser clients are always allowed).
EMBEDDING_DTYPE No Data type for the local embedding model. 'fp32' or 'q8' (q8 downloads a ~4× smaller quantized model). Default: fp32
EMBEDDING_MODEL No Embedding model to use. Any transformers.js feature-extraction model. English-only & faster: Xenova/all-MiniLM-L6-v2 (also 384-d). Default: Xenova/paraphrase-multilingual-MiniLM-L12-v2
MODEL_CACHE_DIR No Model download directory; /app/.cache/models inside the container. Default: .cache/models
PUBLIC_BASE_URL No Public base URL, e.g. https://docs.example.com, used for URLs shown in the dashboard.
CHUNK_MAX_TOKENS No Maximum tokens per document chunk. Default: 400
ALLOWED_DOC_ROOTS No Comma-separated list of directories that project document roots must reside in. Path-escape protection. On Windows dev, e.g. C:/path/to/docs. Default: /docs
EMBEDDING_OFFLINE No Set to '1' to prevent the embedding model from downloading at startup (for air-gapped hosts). Default: 0
POSTGRES_PASSWORD No Password of the embedded PostgreSQL (loopback only), applied when the cluster is first created. Default: contextator
AUTH_COOKIE_SECURE No Cookie Secure flag: 'auto' sets Secure when the request arrives over HTTPS. Force with '1', use '0' for plain-HTTP LAN installs. Default: auto
EMBEDDING_PROVIDER No Embedding provider: 'local' or 'openai'. Default: local
ARCHIVE_MAX_ENTRIES No Zip-bomb guard: maximum number of entries in an archive (applied while extracting). Default: 20000
PASSWORD_MIN_LENGTH No Minimum password length for all passwords, including temporary ones. No composition rules. Default: 12
SESSION_IDLE_TTL_MS No Idle Streamable HTTP sessions are closed after this many milliseconds. Default: 1800000
AUTH_SESSION_IDLE_MS No Dashboard session idle timeout in milliseconds. A session unused for this long must sign in again. Default: 43200000
CHUNK_OVERLAP_TOKENS No Token overlap between consecutive chunks. Default: 50
EMBEDDING_DIMENSIONS No Dimension of the embedding vectors. Must match the model. 1536 for text-embedding-3-small. Default: 384
AUTH_LOGIN_WINDOW_MIN No The IP window (in minutes) and the first lockout step (doubles, capped at an hour). Default: 15
AUTH_SESSION_TTL_DAYS No Hard maximum lifetime of a dashboard session in days, however actively used. Default: 30
UPLOAD_MAX_FILE_BYTES No Maximum size per uploaded file. Default: 52428800
OPENAI_EMBEDDING_MODEL No OpenAI embedding model to use when EMBEDDING_PROVIDER is 'openai'. Default: text-embedding-3-small
ARCHIVE_MAX_TOTAL_BYTES No Zip-bomb guard: maximum total uncompressed size of an archive (applied while extracting). Default: 1073741824
AUTH_LOGIN_MAX_ATTEMPTS No Maximum failed sign-in attempts per account and per IP before lockout or 429. Default: 10
CONTEXTATOR_MODELS_PATH No Absolute host directory used for embedding models instead of the volume (docker-compose only).
CONTEXTATOR_PGDATA_PATH No Absolute host directory used for PostgreSQL data instead of the volume (docker-compose only).
UPLOAD_MAX_ARCHIVE_BYTES No Maximum size per uploaded archive. Default: 268435456
CONTEXTATOR_MODELS_VOLUME No Docker volume name for embedding models (docker-compose only). Default: contextator-models
CONTEXTATOR_PGDATA_VOLUME No Docker volume name for PostgreSQL data (docker-compose only). Default: contextator-pgdata
UPLOAD_MAX_FILES_PER_REQUEST No Maximum number of files per upload request. Default: 500

Remote headers

HTTP headers the remote endpoint expects.

NameRequiredDescription
Authorization secret No Only for a project in token mode: a static MCP token created on the project's page. A project in account mode signs in with OAuth instead, and an open project needs no header.

Similar servers