Requires Node 18+ on your system so npx can fetch the package on first run. VS Code (Copilot) uses a `servers` root key with an explicit `type` field — different from the `mcpServers` shape used by Claude Desktop and Cursor. Paste the config below, then follow the reload step to register stock-scanner-mcp.
.vscode/mcp.json (project root — committed with the repo)~/.vscode/mcp.json{
"servers": {
"stock-scanner": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"stock-scanner-mcp",
"--enable-workspace"
],
"env": {
"FINNHUB_API_KEY": "your-key-here",
"ALPHA_VANTAGE_API_KEY": "your-key-here",
"FRED_API_KEY": "your-key-here"
}
}
}
}