NestDaddy

Onyx MCP

io.github.ByWaleed/onyx-mcp · v0.2.1

Secure MCP access to Onyx search, chat, projects, and administration.

Connect Runs on your machine

Terminal
claude mcp add onyx-mcp -e ONYX_API_URL=<ONYX_API_URL> -e ONYX_API_TOKEN=<ONYX_API_TOKEN> -e ONYX_DEFAULT_PERSONA_ID=<ONYX_DEFAULT_PERSONA_ID> -e ONYX_MCP_ENABLE_WEB_FETCH=<ONYX_MCP_ENABLE_WEB_FETCH> -e ONYX_MCP_WEB_FETCH_ALLOWLIST=<ONYX_MCP_WEB_FETCH_ALLOWLIST> -- npx -y [email protected]
claude_desktop_config.json
{
  "mcpServers": {
    "onyx-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "ONYX_API_URL": "<ONYX_API_URL>",
        "ONYX_API_TOKEN": "<ONYX_API_TOKEN>",
        "ONYX_DEFAULT_PERSONA_ID": "<ONYX_DEFAULT_PERSONA_ID>",
        "ONYX_MCP_ENABLE_WEB_FETCH": "<ONYX_MCP_ENABLE_WEB_FETCH>",
        "ONYX_MCP_WEB_FETCH_ALLOWLIST": "<ONYX_MCP_WEB_FETCH_ALLOWLIST>"
      }
    }
  }
}
~/.cursor/mcp.json
{
  "mcpServers": {
    "onyx-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "ONYX_API_URL": "<ONYX_API_URL>",
        "ONYX_API_TOKEN": "<ONYX_API_TOKEN>",
        "ONYX_DEFAULT_PERSONA_ID": "<ONYX_DEFAULT_PERSONA_ID>",
        "ONYX_MCP_ENABLE_WEB_FETCH": "<ONYX_MCP_ENABLE_WEB_FETCH>",
        "ONYX_MCP_WEB_FETCH_ALLOWLIST": "<ONYX_MCP_WEB_FETCH_ALLOWLIST>"
      }
    }
  }
}
.vscode/mcp.json
{
  "servers": {
    "onyx-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "ONYX_API_URL": "<ONYX_API_URL>",
        "ONYX_API_TOKEN": "<ONYX_API_TOKEN>",
        "ONYX_DEFAULT_PERSONA_ID": "<ONYX_DEFAULT_PERSONA_ID>",
        "ONYX_MCP_ENABLE_WEB_FETCH": "<ONYX_MCP_ENABLE_WEB_FETCH>",
        "ONYX_MCP_WEB_FETCH_ALLOWLIST": "<ONYX_MCP_WEB_FETCH_ALLOWLIST>"
      }
    }
  }
}

Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.

Tools

This server runs locally, so its tools are listed by your MCP client once it starts.

Environment variables

NameDescription
ONYX_API_URL
Required
Onyx API base URL, for example https://onyx.example.com/api
ONYX_API_TOKEN
Required, secret
Onyx Personal Access Token or API key
ONYX_DEFAULT_PERSONA_ID
Optional
Default Onyx agent ID for new chats
ONYX_MCP_ENABLE_WEB_FETCH
Optional
Enable web search and allowlisted URL fetching
ONYX_MCP_WEB_FETCH_ALLOWLIST
Optional
Comma-separated hostnames permitted for HTTPS URL fetching

Details

Package[email protected] (NPM, stdio)
First published30 Aug 2026
Last updated30 Aug 2026
Registry nameio.github.ByWaleed/onyx-mcp

More search and web servers See all

Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.