Skip to content
Cursor

Onyx MCP for Cursor

io.github.bywaleed/onyx-mcp

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

client:Cursor transport:stdio runtime:npm

Install Onyx MCP in Cursor

~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "onyx-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "onyx-mcp"
      ],
      "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>"
      }
    }
  }
}

Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs

Onyx MCP in other clients