Skip to main content

MantisBT MCP Server

io.github.dpesch/mantisbt-mcp-server

v1.18.4Updated Nov 13, 2026stdio · npm

MantisBT MCP server – manage issues, notes, files, tags, and relationships. With semantic search.

Install

Needs 1 secret. Replace 2 placeholders with your own values.

Run in your terminal. Replace 2 placeholders.

claude mcp add mantisbt-mcp-server -e 'MANTIS_BASE_URL=<your-mantis-base-url>' -e 'MANTIS_API_KEY=<your-mantis-api-key>' -e MANTIS_USE_INDEX_PHP=false -e MANTIS_CACHE_TTL=3600 -e TRANSPORT=stdio -e PORT=3000 -e MCP_HTTP_HOST=127.0.0.1 -e MCP_HTTP_MAX_BODY_SIZE=67108864 -e MANTIS_SEARCH_ENABLED=false -e MANTIS_SEARCH_BACKEND=vectra -e MANTIS_SEARCH_MODEL=Xenova/paraphrase-multilingual-MiniLM-L12-v2 -e MANTIS_SEARCH_THREADS=1 -- npx -y @dpesch/[email protected]

Configuration

16 settings, 1 required secret. Snippets use placeholders; keep real values out of shared config.

  • MANTIS_API_KEY
    Env var· required· secret
    MantisBT API key (Profile → API Tokens in MantisBT)
  • MANTIS_BASE_URL
    Env var· required
    Base URL of the MantisBT REST API, e.g. https://your-mantis.example.com/api/rest
  • MCP_HTTP_TOKEN
    Env var· optional· secret
    Bearer token protecting the /mcp endpoint. Required when TRANSPORT=http; the server refuses to start without it
  • MANTIS_USE_INDEX_PHP
    Env var· optional
    Use /api/rest/index.php/ for MantisBT installations without URL rewriting. Detected automatically when MANTIS_BASE_URL ends with /api/rest/index.phpDefault: false
  • MANTIS_CACHE_DIR
    Env var· optional
    Directory for the metadata cache. Defaults to ~/.cache/mantisbt-mcp; each base URL and API key gets its own subdirectory
  • MANTIS_CACHE_TTL
    Env var· optional
    Metadata cache TTL in seconds. Default: 3600 (1 hour)Default: 3600
Show 10 more
  • TRANSPORT
    Env var· optional
    Transport mode. 'stdio' for local use (default), 'http' for remote/team deploymentsDefault: stdio
  • PORT
    Env var· optional
    HTTP port when TRANSPORT=http. Default: 3000Default: 3000
  • MCP_HTTP_HOST
    Env var· optional
    Bind address when TRANSPORT=http. Default: 127.0.0.1 (local only). Use 0.0.0.0 for Docker/remote.Default: 127.0.0.1
  • MCP_HTTP_MAX_BODY_SIZE
    Env var· optional
    Largest accepted /mcp request body in bytes when TRANSPORT=http. Default: 67108864 (64 MB)Default: 67108864
  • MANTIS_SEARCH_ENABLED
    Env var· optional
    Enable offline semantic search (requires ~80 MB model download on first use)Default: false
  • MANTIS_SEARCH_BACKEND
    Env var· optional
    Vector store backend for semantic search. 'vectra' (default, pure JS) or 'sqlite-vec' (faster for >10k issues)Default: vectra
  • MANTIS_SEARCH_DIR
    Env var· optional
    Directory for the semantic search index. Defaults to the search subdirectory of the instance cache directory; when set, each base URL and API key gets its own subdirectory
  • MANTIS_SEARCH_MODEL
    Env var· optional
    Hugging Face model for embeddings. Default: Xenova/paraphrase-multilingual-MiniLM-L12-v2Default: Xenova/paraphrase-multilingual-MiniLM-L12-v2
  • MANTIS_SEARCH_THREADS
    Env var· optional
    ONNX inference threads for the embedding model. Default: 1Default: 1
  • MANTIS_UPLOAD_DIR
    Env var· optional
    If set, restricts file uploads to this directory (path traversal protection)

Listed in the official MCP Registry since Nov 13, 2026. Mirrored daily; last checked Nov 26, 2026.