← Index

MantisBT MCP Server

io.github.dpesch/mantisbt-mcp-server·v1.10.0·Search
Quality Score
80
/100

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

§01  Install
Claude Desktop (claude_desktop_config.json)
{
  "mcpServers": {
    "mantisbt-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@dpesch/mantisbt-mcp-server"
      ],
      "env": {
        "MANTIS_BASE_URL": "<mantis_base_url>",
        "MANTIS_API_KEY": "<your-mantis_api_key>",
        "MANTIS_CACHE_DIR": "<mantis_cache_dir>",
        "MANTIS_CACHE_TTL": "3600",
        "TRANSPORT": "stdio",
        "PORT": "3000",
        "MCP_HTTP_HOST": "127.0.0.1",
        "MCP_HTTP_TOKEN": "<your-mcp_http_token>",
        "MANTIS_SEARCH_ENABLED": "false",
        "MANTIS_SEARCH_BACKEND": "vectra",
        "MANTIS_SEARCH_DIR": "<mantis_search_dir>",
        "MANTIS_SEARCH_MODEL": "Xenova/paraphrase-multilingual-MiniLM-L12-v2",
        "MANTIS_SEARCH_THREADS": "1",
        "MANTIS_UPLOAD_DIR": "<mantis_upload_dir>"
      }
    }
  }
}
Cursor (.cursor/mcp.json)
{
  "mcpServers": {
    "mantisbt-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@dpesch/mantisbt-mcp-server"
      ],
      "env": {
        "MANTIS_BASE_URL": "<mantis_base_url>",
        "MANTIS_API_KEY": "<your-mantis_api_key>",
        "MANTIS_CACHE_DIR": "<mantis_cache_dir>",
        "MANTIS_CACHE_TTL": "3600",
        "TRANSPORT": "stdio",
        "PORT": "3000",
        "MCP_HTTP_HOST": "127.0.0.1",
        "MCP_HTTP_TOKEN": "<your-mcp_http_token>",
        "MANTIS_SEARCH_ENABLED": "false",
        "MANTIS_SEARCH_BACKEND": "vectra",
        "MANTIS_SEARCH_DIR": "<mantis_search_dir>",
        "MANTIS_SEARCH_MODEL": "Xenova/paraphrase-multilingual-MiniLM-L12-v2",
        "MANTIS_SEARCH_THREADS": "1",
        "MANTIS_UPLOAD_DIR": "<mantis_upload_dir>"
      }
    }
  }
}
Cline (cline_mcp_settings.json)
npx -y @dpesch/mantisbt-mcp-server
§02  Environment variables
MANTIS_BASE_URL
required

Base URL of the MantisBT REST API, e.g. https://your-mantis.example.com/api/rest

MANTIS_API_KEY
requiredsecret

MantisBT API key (Profile → API Tokens in MantisBT)

MANTIS_CACHE_DIR

Directory for the metadata cache. Defaults to ~/.cache/mantisbt-mcp

MANTIS_CACHE_TTL

Metadata cache TTL in seconds. Default: 3600 (1 hour)

TRANSPORT

Transport mode. 'stdio' for local use (default), 'http' for remote/team deployments

PORT

HTTP port when TRANSPORT=http. Default: 3000

MCP_HTTP_HOST

Bind address when TRANSPORT=http. Default: 127.0.0.1 (local only). Use 0.0.0.0 for Docker/remote.

MCP_HTTP_TOKEN
secret

Optional Bearer token to protect the /mcp endpoint when TRANSPORT=http

MANTIS_SEARCH_ENABLED

Enable offline semantic search (requires ~80 MB model download on first use)

MANTIS_SEARCH_BACKEND

Vector store backend for semantic search. 'vectra' (default, pure JS) or 'sqlite-vec' (faster for >10k issues)

MANTIS_SEARCH_DIR

Directory for the semantic search index. Defaults to ~/.cache/mantisbt-mcp/search

MANTIS_SEARCH_MODEL

Hugging Face model for embeddings. Default: Xenova/paraphrase-multilingual-MiniLM-L12-v2

MANTIS_SEARCH_THREADS

ONNX inference threads for the embedding model. Default: 1

MANTIS_UPLOAD_DIR

If set, restricts file uploads to this directory (path traversal protection)

§03  MCP Quality Score  ·  methodology
freshness
25
completeness
10
installability
25
documentation
10
stability
10
§04  Alternatives in Search