# apifare for GitHub Copilot (VS Code) One prepaid, capped key for every API your agent needs, under hard caps and a kill switch. 1. Get a token: https://apifare.com/start?origin=page:integrations-vscode (shown once). 2. Add this to .vscode/mcp.json in your workspace, or run MCP: Open User Configuration to add it for every workspace. VS Code uses a servers key; the inputs block makes it ask for your token once and store it securely instead of saving it in the file. ``` { "inputs": [ { "type": "promptString", "id": "apifare-token", "description": "apifare token", "password": true } ], "servers": { "apifare": { "type": "stdio", "command": "npx", "args": ["-y", "apifare-mcp"], "env": { "APIPAY_TOKEN": "${input:apifare-token}" } } } } ``` Start the server from the file (or reload VS Code) and enter your token when prompted: Copilot's agent can then use the apifare tools. 3. Try it: "search the web for X", then "fetch a URL", then "what's the weather in London". 4. Caps and the kill switch are checked before dispatch. An empty balance returns HTTP 402 with a top-up link (see /errors.md). Prices: https://apifare.com/capabilities. Config checked against https://code.visualstudio.com/docs/agents/reference/mcp-configuration on 2026-09-12.