O

Onyx MCP

by ByWaleed · io.github.ByWaleed/onyx-mcp

Enables MCP clients to securely access Onyx search, chat, agents, projects, documents, connectors, ingestion, and deployment-specific APIs through configurable tool profiles.

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-bywaleed-onyx-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "onyx-mcp"
      ],
      "env": {
        "ONYX_API_URL": "<VALUE>",
        "ONYX_API_TOKEN": "<YOUR_VALUE>",
        "ONYX_DEFAULT_PERSONA_ID": "0",
        "ONYX_MCP_ENABLE_WEB_FETCH": "false",
        "ONYX_MCP_WEB_FETCH_ALLOWLIST": "<VALUE>",
        "ONYX_MCP_TIMEOUT_MS": "30000",
        "ONYX_MCP_ENABLE_ADMIN": "false",
        "ONYX_MCP_ENABLE_WRITE": "false",
        "ONYX_MCP_ENABLE_RAW_API": "false",
        "ONYX_MCP_MAX_CONCURRENCY": "8",
        "ONYX_MCP_ENABLE_DESTRUCTIVE": "false",
        "ONYX_MCP_MAX_RESPONSE_BYTES": "1000000"
      }
    }
  }
}

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-bywaleed-onyx-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "onyx-mcp"
      ],
      "env": {
        "ONYX_API_URL": "<VALUE>",
        "ONYX_API_TOKEN": "<YOUR_VALUE>",
        "ONYX_DEFAULT_PERSONA_ID": "0",
        "ONYX_MCP_ENABLE_WEB_FETCH": "false",
        "ONYX_MCP_WEB_FETCH_ALLOWLIST": "<VALUE>",
        "ONYX_MCP_TIMEOUT_MS": "30000",
        "ONYX_MCP_ENABLE_ADMIN": "false",
        "ONYX_MCP_ENABLE_WRITE": "false",
        "ONYX_MCP_ENABLE_RAW_API": "false",
        "ONYX_MCP_MAX_CONCURRENCY": "8",
        "ONYX_MCP_ENABLE_DESTRUCTIVE": "false",
        "ONYX_MCP_MAX_RESPONSE_BYTES": "1000000"
      }
    }
  }
}

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-bywaleed-onyx-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "onyx-mcp"
      ],
      "env": {
        "ONYX_API_URL": "<VALUE>",
        "ONYX_API_TOKEN": "<YOUR_VALUE>",
        "ONYX_DEFAULT_PERSONA_ID": "0",
        "ONYX_MCP_ENABLE_WEB_FETCH": "false",
        "ONYX_MCP_WEB_FETCH_ALLOWLIST": "<VALUE>",
        "ONYX_MCP_TIMEOUT_MS": "30000",
        "ONYX_MCP_ENABLE_ADMIN": "false",
        "ONYX_MCP_ENABLE_WRITE": "false",
        "ONYX_MCP_ENABLE_RAW_API": "false",
        "ONYX_MCP_MAX_CONCURRENCY": "8",
        "ONYX_MCP_ENABLE_DESTRUCTIVE": "false",
        "ONYX_MCP_MAX_RESPONSE_BYTES": "1000000"
      }
    }
  }
}

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-bywaleed-onyx-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "onyx-mcp"
      ],
      "env": {
        "ONYX_API_URL": "<VALUE>",
        "ONYX_API_TOKEN": "<YOUR_VALUE>",
        "ONYX_DEFAULT_PERSONA_ID": "0",
        "ONYX_MCP_ENABLE_WEB_FETCH": "false",
        "ONYX_MCP_WEB_FETCH_ALLOWLIST": "<VALUE>",
        "ONYX_MCP_TIMEOUT_MS": "30000",
        "ONYX_MCP_ENABLE_ADMIN": "false",
        "ONYX_MCP_ENABLE_WRITE": "false",
        "ONYX_MCP_ENABLE_RAW_API": "false",
        "ONYX_MCP_MAX_CONCURRENCY": "8",
        "ONYX_MCP_ENABLE_DESTRUCTIVE": "false",
        "ONYX_MCP_MAX_RESPONSE_BYTES": "1000000"
      }
    }
  }
}

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-bywaleed-onyx-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "onyx-mcp"
      ],
      "env": {
        "ONYX_API_URL": "<VALUE>",
        "ONYX_API_TOKEN": "<YOUR_VALUE>",
        "ONYX_DEFAULT_PERSONA_ID": "0",
        "ONYX_MCP_ENABLE_WEB_FETCH": "false",
        "ONYX_MCP_WEB_FETCH_ALLOWLIST": "<VALUE>",
        "ONYX_MCP_TIMEOUT_MS": "30000",
        "ONYX_MCP_ENABLE_ADMIN": "false",
        "ONYX_MCP_ENABLE_WRITE": "false",
        "ONYX_MCP_ENABLE_RAW_API": "false",
        "ONYX_MCP_MAX_CONCURRENCY": "8",
        "ONYX_MCP_ENABLE_DESTRUCTIVE": "false",
        "ONYX_MCP_MAX_RESPONSE_BYTES": "1000000"
      }
    }
  }
}

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-bywaleed-onyx-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "onyx-mcp"
      ],
      "env": {
        "ONYX_API_URL": "<VALUE>",
        "ONYX_API_TOKEN": "<YOUR_VALUE>",
        "ONYX_DEFAULT_PERSONA_ID": "0",
        "ONYX_MCP_ENABLE_WEB_FETCH": "false",
        "ONYX_MCP_WEB_FETCH_ALLOWLIST": "<VALUE>",
        "ONYX_MCP_TIMEOUT_MS": "30000",
        "ONYX_MCP_ENABLE_ADMIN": "false",
        "ONYX_MCP_ENABLE_WRITE": "false",
        "ONYX_MCP_ENABLE_RAW_API": "false",
        "ONYX_MCP_MAX_CONCURRENCY": "8",
        "ONYX_MCP_ENABLE_DESTRUCTIVE": "false",
        "ONYX_MCP_MAX_RESPONSE_BYTES": "1000000"
      }
    }
  }
}

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
ONYX_API_URL Yes Onyx API base URL, for example https://onyx.example.com/api
ONYX_API_TOKEN secret Yes Onyx PAT or API key
ONYX_DEFAULT_PERSONA_ID No Default agent used for new chats Default: 0
ONYX_MCP_ENABLE_WEB_FETCH No Enable web search and allowlisted URL fetching Default: false
ONYX_MCP_WEB_FETCH_ALLOWLIST No Comma-separated hostnames permitted for HTTPS URL fetching
ONYX_MCP_TIMEOUT_MS No Request timeout Default: 30000
ONYX_MCP_ENABLE_ADMIN No Registers administrative tools Default: false
ONYX_MCP_ENABLE_WRITE No Registers tools that create or modify data Default: false
ONYX_MCP_ENABLE_RAW_API No Registers the advanced raw API tool; admin access is also required Default: false
ONYX_MCP_MAX_CONCURRENCY No Maximum concurrent requests to Onyx Default: 8
ONYX_MCP_ENABLE_DESTRUCTIVE No Registers destructive tools; write must also be enabled Default: false
ONYX_MCP_MAX_RESPONSE_BYTES No Maximum accepted response body Default: 1000000

Similar servers