Skip to main content

Onyx MCP

io.github.ByWaleed/onyx-mcp

v0.2.1Updated Aug 30, 2026stdio · npm

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

Install

Needs 1 secret. Replace 2 placeholders with your own values.

Run in your terminal. Replace 2 placeholders.

claude mcp add onyx-mcp -e 'ONYX_API_URL=<your-onyx-api-url>' -e 'ONYX_API_TOKEN=<your-onyx-api-token>' -e ONYX_DEFAULT_PERSONA_ID=0 -e ONYX_MCP_ENABLE_WEB_FETCH=false -- npx -y [email protected]

Configuration

5 settings, 1 required secret. Snippets use placeholders; keep real values out of shared config.

  • ONYX_API_TOKEN
    Env var· required· secret
    Onyx Personal Access Token or API key
  • ONYX_API_URL
    Env var· required
    Onyx API base URL, for example https://onyx.example.com/api
  • ONYX_DEFAULT_PERSONA_ID
    Env var· optional
    Default Onyx agent ID for new chatsDefault: 0
  • ONYX_MCP_ENABLE_WEB_FETCH
    Env var· optional
    Enable web search and allowlisted URL fetchingDefault: false
  • ONYX_MCP_WEB_FETCH_ALLOWLIST
    Env var· optional
    Comma-separated hostnames permitted for HTTPS URL fetching

Listed in the official MCP Registry since Aug 30, 2026. Mirrored daily; last checked Nov 26, 2026.