mcp server for VS Code
io.github.oilpriceapi/mcp-server
Source-timestamped energy data and reviewed OilPriceAPI product facts for MCP clients.
client:VS Code
transport:stdio
runtime:npm
Install mcp server in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "oilpriceapi-key",
"description": "OILPRICEAPI_KEY",
"password": true
},
{
"type": "promptString",
"id": "oilpriceapi-mcp-scope",
"description": "OILPRICEAPI_MCP_SCOPE",
"password": true
},
{
"type": "promptString",
"id": "oilpriceapi-mcp-profile",
"description": "OILPRICEAPI_MCP_PROFILE",
"password": true
},
{
"type": "promptString",
"id": "oilpriceapi-mcp-categories",
"description": "OILPRICEAPI_MCP_CATEGORIES",
"password": true
}
],
"servers": {
"mcp-server": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"oilpriceapi-mcp"
],
"env": {
"OILPRICEAPI_KEY": "${input:oilpriceapi-key}",
"OILPRICEAPI_MCP_SCOPE": "${input:oilpriceapi-mcp-scope}",
"OILPRICEAPI_MCP_PROFILE": "${input:oilpriceapi-mcp-profile}",
"OILPRICEAPI_MCP_CATEGORIES": "${input:oilpriceapi-mcp-categories}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs