# apifare for JetBrains (Junie) 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-jetbrains (shown once). 2. Junie, the JetBrains coding agent, runs MCP servers. In your IDE open Settings | Tools | Junie | MCP Settings and add this server, or put it in ~/.junie/mcp/mcp.json yourself. A .junie/mcp/mcp.json inside a repo applies to that project only, so keep your token out of files you commit. The Junie CLI reads the same file. ``` { "mcpServers": { "apifare": { "command": "npx", "args": ["-y", "apifare-mcp"], "env": { "APIPAY_TOKEN": "" } } } } ``` Replace with your token. Check the Status column in MCP Settings and expand the server to see its tools; in the Junie CLI, /mcp shows it as Active. JetBrains AI Assistant has separate MCP settings; this guide uses Junie because its docs show where the token goes. 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://junie.jetbrains.com/docs/junie-cli-mcp-configuration.html on 2026-09-13.