M

Mothdex MCP

by Or4cu1o · io.github.Or4cu1o/mothdex-mcp

Enables read-only search and retrieval across a catalog API, including entries, random picks, platforms, regions, database info, and download-link resolution; an opt-in, directory-confined download tool is also available.

npm Local · stdio GlamaOfficial MCP Registry High confidence

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-or4cu1o-mothdex-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "mothdex-mcp"
      ],
      "env": {
        "MOTHDEX_MCP_ENABLE_DOWNLOAD": "<VALUE>",
        "MOTHDEX_DOWNLOAD_DIR": "<VALUE>",
        "MOTHDEX_API_BASE_URL": "https://api.mothdex.net/v1",
        "MOTHDEX_ALLOWED_HOSTS": "proxy.mothdex.net",
        "MOTHDEX_API_RATE_LIMIT": "5",
        "MOTHDEX_DOWNLOAD_MAX_FILE_BYTES": "64 GiB",
        "MOTHDEX_DOWNLOAD_MAX_TOTAL_BYTES": "64 GiB"
      }
    }
  }
}

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-or4cu1o-mothdex-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "mothdex-mcp"
      ],
      "env": {
        "MOTHDEX_MCP_ENABLE_DOWNLOAD": "<VALUE>",
        "MOTHDEX_DOWNLOAD_DIR": "<VALUE>",
        "MOTHDEX_API_BASE_URL": "https://api.mothdex.net/v1",
        "MOTHDEX_ALLOWED_HOSTS": "proxy.mothdex.net",
        "MOTHDEX_API_RATE_LIMIT": "5",
        "MOTHDEX_DOWNLOAD_MAX_FILE_BYTES": "64 GiB",
        "MOTHDEX_DOWNLOAD_MAX_TOTAL_BYTES": "64 GiB"
      }
    }
  }
}

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-or4cu1o-mothdex-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "mothdex-mcp"
      ],
      "env": {
        "MOTHDEX_MCP_ENABLE_DOWNLOAD": "<VALUE>",
        "MOTHDEX_DOWNLOAD_DIR": "<VALUE>",
        "MOTHDEX_API_BASE_URL": "https://api.mothdex.net/v1",
        "MOTHDEX_ALLOWED_HOSTS": "proxy.mothdex.net",
        "MOTHDEX_API_RATE_LIMIT": "5",
        "MOTHDEX_DOWNLOAD_MAX_FILE_BYTES": "64 GiB",
        "MOTHDEX_DOWNLOAD_MAX_TOTAL_BYTES": "64 GiB"
      }
    }
  }
}

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-or4cu1o-mothdex-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "mothdex-mcp"
      ],
      "env": {
        "MOTHDEX_MCP_ENABLE_DOWNLOAD": "<VALUE>",
        "MOTHDEX_DOWNLOAD_DIR": "<VALUE>",
        "MOTHDEX_API_BASE_URL": "https://api.mothdex.net/v1",
        "MOTHDEX_ALLOWED_HOSTS": "proxy.mothdex.net",
        "MOTHDEX_API_RATE_LIMIT": "5",
        "MOTHDEX_DOWNLOAD_MAX_FILE_BYTES": "64 GiB",
        "MOTHDEX_DOWNLOAD_MAX_TOTAL_BYTES": "64 GiB"
      }
    }
  }
}

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-or4cu1o-mothdex-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "mothdex-mcp"
      ],
      "env": {
        "MOTHDEX_MCP_ENABLE_DOWNLOAD": "<VALUE>",
        "MOTHDEX_DOWNLOAD_DIR": "<VALUE>",
        "MOTHDEX_API_BASE_URL": "https://api.mothdex.net/v1",
        "MOTHDEX_ALLOWED_HOSTS": "proxy.mothdex.net",
        "MOTHDEX_API_RATE_LIMIT": "5",
        "MOTHDEX_DOWNLOAD_MAX_FILE_BYTES": "64 GiB",
        "MOTHDEX_DOWNLOAD_MAX_TOTAL_BYTES": "64 GiB"
      }
    }
  }
}

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-or4cu1o-mothdex-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "mothdex-mcp"
      ],
      "env": {
        "MOTHDEX_MCP_ENABLE_DOWNLOAD": "<VALUE>",
        "MOTHDEX_DOWNLOAD_DIR": "<VALUE>",
        "MOTHDEX_API_BASE_URL": "https://api.mothdex.net/v1",
        "MOTHDEX_ALLOWED_HOSTS": "proxy.mothdex.net",
        "MOTHDEX_API_RATE_LIMIT": "5",
        "MOTHDEX_DOWNLOAD_MAX_FILE_BYTES": "64 GiB",
        "MOTHDEX_DOWNLOAD_MAX_TOTAL_BYTES": "64 GiB"
      }
    }
  }
}

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
MOTHDEX_MCP_ENABLE_DOWNLOAD No Set to exactly 1 to enable the opt-in download_file tool.
MOTHDEX_DOWNLOAD_DIR No Absolute path to an existing allowed folder where downloads are written; required together with MOTHDEX_MCP_ENABLE_DOWNLOAD=1 to enable downloads.
MOTHDEX_API_BASE_URL No Base URL for the Mothdex API. Default: https://api.mothdex.net/v1
MOTHDEX_ALLOWED_HOSTS No Comma-separated list of allowed hosts. Default: proxy.mothdex.net
MOTHDEX_API_RATE_LIMIT No API requests per second, clamped to 1..10. Default: 5
MOTHDEX_DOWNLOAD_MAX_FILE_BYTES No Optional cap on the maximum size of a single downloaded file. Default: 64 GiB
MOTHDEX_DOWNLOAD_MAX_TOTAL_BYTES No Optional cap on the maximum total downloaded bytes. Default: 64 GiB

Similar servers