MCP server
MantisBT MCP Server
MantisBT MCP server – manage issues, notes, files, tags, and relationships. With…
Runs locallyStatus and history
- Runs
- Locally
- Version
- 1.18.4
- Listing updated
- 5 days ago
About MantisBT MCP Server
MantisBT MCP Server is an MCP server. It runs locally on your machine and is started by your AI client.
MantisBT MCP server – manage issues, notes, files, tags, and relationships. With semantic search.
Install
Run in a terminal
claude mcp add mantisbt-mcp-server --env MANTIS_BASE_URL='<MANTIS_BASE_URL>' --env MANTIS_API_KEY='<MANTIS_API_KEY>' --env MCP_HTTP_TOKEN='<MCP_HTTP_TOKEN>' -- npx -y @dpesch/mantisbt-mcp-serverAdd to 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": "<MANTIS_API_KEY>",
"MCP_HTTP_TOKEN": "<MCP_HTTP_TOKEN>"
}
}
}
}Add to ~/.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": "<MANTIS_API_KEY>",
"MCP_HTTP_TOKEN": "<MCP_HTTP_TOKEN>"
}
}
}
}Add to .vscode/mcp.json
{
"servers": {
"mantisbt-mcp-server": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@dpesch/mantisbt-mcp-server"
],
"env": {
"MANTIS_BASE_URL": "<MANTIS_BASE_URL>",
"MANTIS_API_KEY": "<MANTIS_API_KEY>",
"MCP_HTTP_TOKEN": "<MCP_HTTP_TOKEN>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mantisbt-mcp-server": {
"command": "npx",
"args": [
"-y",
"@dpesch/mantisbt-mcp-server"
],
"env": {
"MANTIS_BASE_URL": "<MANTIS_BASE_URL>",
"MANTIS_API_KEY": "<MANTIS_API_KEY>",
"MCP_HTTP_TOKEN": "<MCP_HTTP_TOKEN>"
}
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"mantisbt-mcp-server": {
"command": "npx",
"args": [
"-y",
"@dpesch/mantisbt-mcp-server"
],
"env": {
"MANTIS_BASE_URL": "<MANTIS_BASE_URL>",
"MANTIS_API_KEY": "<MANTIS_API_KEY>",
"MCP_HTTP_TOKEN": "<MCP_HTTP_TOKEN>"
}
}
}
}Configuration
MANTIS_BASE_URLBase URL of the MantisBT REST API, e.g. https://your-mantis.example.com/api/restRequiredMANTIS_API_KEYMantisBT API key (Profile → API Tokens in MantisBT)RequiredMANTIS_USE_INDEX_PHPUse /api/rest/index.php/ for MantisBT installations without URL rewriting. Detected automatically when MANTIS_BASE_URL ends with /api/rest/index.phpMANTIS_CACHE_DIRDirectory for the metadata cache. Defaults to ~/.cache/mantisbt-mcp; each base URL and API key gets its own subdirectoryMANTIS_CACHE_TTLMetadata cache TTL in seconds. Default: 3600 (1 hour)TRANSPORTTransport mode. 'stdio' for local use (default), 'http' for remote/team deploymentsPORTHTTP port when TRANSPORT=http. Default: 3000MCP_HTTP_HOSTBind address when TRANSPORT=http. Default: 127.0.0.1 (local only). Use 0.0.0.0 for Docker/remote.MCP_HTTP_TOKENBearer token protecting the /mcp endpoint. Required when TRANSPORT=http; the server refuses to start without itMCP_HTTP_MAX_BODY_SIZELargest accepted /mcp request body in bytes when TRANSPORT=http. Default: 67108864 (64 MB)MANTIS_SEARCH_ENABLEDEnable offline semantic search (requires ~80 MB model download on first use)MANTIS_SEARCH_BACKENDVector store backend for semantic search. 'vectra' (default, pure JS) or 'sqlite-vec' (faster for >10k issues)MANTIS_SEARCH_DIRDirectory 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 subdirectoryMANTIS_SEARCH_MODELHugging Face model for embeddings. Default: Xenova/paraphrase-multilingual-MiniLM-L12-v2MANTIS_SEARCH_THREADSONNX inference threads for the embedding model. Default: 1MANTIS_UPLOAD_DIRIf set, restricts file uploads to this directory (path traversal protection)
MantisBT MCP Server FAQ
How do I add MantisBT MCP Server to Claude Code?
Run this command in your terminal: claude mcp add mantisbt-mcp-server --env MANTIS_BASE_URL='<MANTIS_BASE_URL>' --env MANTIS_API_KEY='<MANTIS_API_KEY>' --env MCP_HTTP_TOKEN='<MCP_HTTP_TOKEN>' -- npx -y @dpesch/mantisbt-mcp-server