M

Mantisbt MCP Server

by dpesch · io.github.dpesch/mantisbt-mcp-server

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

Mantisbt MCP Server is a local (stdio) MCP server by dpesch in the Files category. It runs with npx -y @dpesch/mantisbt-mcp-server, declares 2 secret settings, and is listed in 1 registry.

npm Local · stdio Official MCP Registry Medium confidence
Note

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-dpesch-mantisbt-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@dpesch/mantisbt-mcp-server"
      ],
      "env": {
        "MANTIS_BASE_URL": "https://your-mantis.example.com/api/rest",
        "MANTIS_API_KEY": "<YOUR_VALUE>",
        "MANTIS_USE_INDEX_PHP": "false",
        "MANTIS_CACHE_DIR": "<VALUE>",
        "MANTIS_CACHE_TTL": "3600",
        "TRANSPORT": "stdio",
        "PORT": "3000",
        "MCP_HTTP_HOST": "127.0.0.1",
        "MCP_HTTP_TOKEN": "<YOUR_VALUE>",
        "MCP_HTTP_MAX_BODY_SIZE": "67108864",
        "MANTIS_SEARCH_ENABLED": "false",
        "MANTIS_SEARCH_BACKEND": "vectra",
        "MANTIS_SEARCH_DIR": "<VALUE>",
        "MANTIS_SEARCH_MODEL": "Xenova/paraphrase-multilingual-MiniLM-L12-v2",
        "MANTIS_SEARCH_THREADS": "1",
        "MANTIS_UPLOAD_DIR": "<VALUE>"
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

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-dpesch-mantisbt-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@dpesch/mantisbt-mcp-server"
      ],
      "env": {
        "MANTIS_BASE_URL": "https://your-mantis.example.com/api/rest",
        "MANTIS_API_KEY": "<YOUR_VALUE>",
        "MANTIS_USE_INDEX_PHP": "false",
        "MANTIS_CACHE_DIR": "<VALUE>",
        "MANTIS_CACHE_TTL": "3600",
        "TRANSPORT": "stdio",
        "PORT": "3000",
        "MCP_HTTP_HOST": "127.0.0.1",
        "MCP_HTTP_TOKEN": "<YOUR_VALUE>",
        "MCP_HTTP_MAX_BODY_SIZE": "67108864",
        "MANTIS_SEARCH_ENABLED": "false",
        "MANTIS_SEARCH_BACKEND": "vectra",
        "MANTIS_SEARCH_DIR": "<VALUE>",
        "MANTIS_SEARCH_MODEL": "Xenova/paraphrase-multilingual-MiniLM-L12-v2",
        "MANTIS_SEARCH_THREADS": "1",
        "MANTIS_UPLOAD_DIR": "<VALUE>"
      }
    }
  }
}

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-dpesch-mantisbt-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@dpesch/mantisbt-mcp-server"
      ],
      "env": {
        "MANTIS_BASE_URL": "https://your-mantis.example.com/api/rest",
        "MANTIS_API_KEY": "<YOUR_VALUE>",
        "MANTIS_USE_INDEX_PHP": "false",
        "MANTIS_CACHE_DIR": "<VALUE>",
        "MANTIS_CACHE_TTL": "3600",
        "TRANSPORT": "stdio",
        "PORT": "3000",
        "MCP_HTTP_HOST": "127.0.0.1",
        "MCP_HTTP_TOKEN": "<YOUR_VALUE>",
        "MCP_HTTP_MAX_BODY_SIZE": "67108864",
        "MANTIS_SEARCH_ENABLED": "false",
        "MANTIS_SEARCH_BACKEND": "vectra",
        "MANTIS_SEARCH_DIR": "<VALUE>",
        "MANTIS_SEARCH_MODEL": "Xenova/paraphrase-multilingual-MiniLM-L12-v2",
        "MANTIS_SEARCH_THREADS": "1",
        "MANTIS_UPLOAD_DIR": "<VALUE>"
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-dpesch-mantisbt-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@dpesch/mantisbt-mcp-server"
      ],
      "env": {
        "MANTIS_BASE_URL": "https://your-mantis.example.com/api/rest",
        "MANTIS_API_KEY": "<YOUR_VALUE>",
        "MANTIS_USE_INDEX_PHP": "false",
        "MANTIS_CACHE_DIR": "<VALUE>",
        "MANTIS_CACHE_TTL": "3600",
        "TRANSPORT": "stdio",
        "PORT": "3000",
        "MCP_HTTP_HOST": "127.0.0.1",
        "MCP_HTTP_TOKEN": "<YOUR_VALUE>",
        "MCP_HTTP_MAX_BODY_SIZE": "67108864",
        "MANTIS_SEARCH_ENABLED": "false",
        "MANTIS_SEARCH_BACKEND": "vectra",
        "MANTIS_SEARCH_DIR": "<VALUE>",
        "MANTIS_SEARCH_MODEL": "Xenova/paraphrase-multilingual-MiniLM-L12-v2",
        "MANTIS_SEARCH_THREADS": "1",
        "MANTIS_UPLOAD_DIR": "<VALUE>"
      }
    }
  }
}

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-dpesch-mantisbt-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@dpesch/mantisbt-mcp-server"
      ],
      "env": {
        "MANTIS_BASE_URL": "https://your-mantis.example.com/api/rest",
        "MANTIS_API_KEY": "<YOUR_VALUE>",
        "MANTIS_USE_INDEX_PHP": "false",
        "MANTIS_CACHE_DIR": "<VALUE>",
        "MANTIS_CACHE_TTL": "3600",
        "TRANSPORT": "stdio",
        "PORT": "3000",
        "MCP_HTTP_HOST": "127.0.0.1",
        "MCP_HTTP_TOKEN": "<YOUR_VALUE>",
        "MCP_HTTP_MAX_BODY_SIZE": "67108864",
        "MANTIS_SEARCH_ENABLED": "false",
        "MANTIS_SEARCH_BACKEND": "vectra",
        "MANTIS_SEARCH_DIR": "<VALUE>",
        "MANTIS_SEARCH_MODEL": "Xenova/paraphrase-multilingual-MiniLM-L12-v2",
        "MANTIS_SEARCH_THREADS": "1",
        "MANTIS_UPLOAD_DIR": "<VALUE>"
      }
    }
  }
}

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-dpesch-mantisbt-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@dpesch/mantisbt-mcp-server"
      ],
      "env": {
        "MANTIS_BASE_URL": "https://your-mantis.example.com/api/rest",
        "MANTIS_API_KEY": "<YOUR_VALUE>",
        "MANTIS_USE_INDEX_PHP": "false",
        "MANTIS_CACHE_DIR": "<VALUE>",
        "MANTIS_CACHE_TTL": "3600",
        "TRANSPORT": "stdio",
        "PORT": "3000",
        "MCP_HTTP_HOST": "127.0.0.1",
        "MCP_HTTP_TOKEN": "<YOUR_VALUE>",
        "MCP_HTTP_MAX_BODY_SIZE": "67108864",
        "MANTIS_SEARCH_ENABLED": "false",
        "MANTIS_SEARCH_BACKEND": "vectra",
        "MANTIS_SEARCH_DIR": "<VALUE>",
        "MANTIS_SEARCH_MODEL": "Xenova/paraphrase-multilingual-MiniLM-L12-v2",
        "MANTIS_SEARCH_THREADS": "1",
        "MANTIS_UPLOAD_DIR": "<VALUE>"
      }
    }
  }
}

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

Similar servers