Onyx MCP for VS Code
io.github.bywaleed/onyx-mcp
Secure MCP access to Onyx search, chat, projects, and administration.
client:VS Code
transport:stdio
runtime:npm
Install Onyx MCP in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "onyx-api-url",
"description": "ONYX_API_URL",
"password": true
},
{
"type": "promptString",
"id": "onyx-api-token",
"description": "ONYX_API_TOKEN",
"password": true
},
{
"type": "promptString",
"id": "onyx-default-persona-id",
"description": "ONYX_DEFAULT_PERSONA_ID",
"password": true
},
{
"type": "promptString",
"id": "onyx-mcp-enable-web-fetch",
"description": "ONYX_MCP_ENABLE_WEB_FETCH",
"password": true
},
{
"type": "promptString",
"id": "onyx-mcp-web-fetch-allowlist",
"description": "ONYX_MCP_WEB_FETCH_ALLOWLIST",
"password": true
}
],
"servers": {
"onyx-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"onyx-mcp"
],
"env": {
"ONYX_API_URL": "${input:onyx-api-url}",
"ONYX_API_TOKEN": "${input:onyx-api-token}",
"ONYX_DEFAULT_PERSONA_ID": "${input:onyx-default-persona-id}",
"ONYX_MCP_ENABLE_WEB_FETCH": "${input:onyx-mcp-enable-web-fetch}",
"ONYX_MCP_WEB_FETCH_ALLOWLIST": "${input:onyx-mcp-web-fetch-allowlist}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs