Install
Add to ~/Library/Application Support/Claude/claude_desktop_config.json
Windows / Linux path
%APPDATA%\Claude\claude_desktop_config.json~/.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
.cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global).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
.mcp.json (project) or %USERPROFILE%\.claude.json (global).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
.vscode\mcp.json.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
%USERPROFILE%\.codeium\windsurf\mcp_config.json~/.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
%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json~/.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.
| Name | Required | Description |
|---|---|---|
| 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) |