AI and MCP

How to connect Junie to SpendixAI with MCP

Connect JetBrains' Junie CLI to SpendixAI over MCP: add the server, choose Authorize in the /mcp screen and ask read-only questions about your expenses.

Editorial illustration for How to connect Junie to SpendixAI with MCP

JetBrains builds Junie as a coding agent, and its command-line version can call outside tools through MCP, a common standard for linking AI tools to other services. The service in this guide is SpendixAI, the expense tracker we build for people in India, where statements and cash entries sit in one workspace without any bank login.

Junie CLI first, the IDE plugin later

The documentation we read describes OAuth sign-in for remote servers in Junie CLI. For Junie inside a JetBrains IDE we could not confirm the same, so this guide covers only the command-line version. If you use the plugin, check JetBrains' current notes before trying it.

What to have ready

  • Junie CLI installed on your computer
  • A SpendixAI workspace with transactions in it
  • The server address under Developer → MCP connections
  • A browser to complete the authorization step

Setting it up step by step

  1. Copy the server address from Developer → MCP connections.
  2. In Junie CLI, type /mcp to open the MCP server screen.
  3. Press Ctrl+A to open the MCP Installation Assistant. If the server is not in the registry, press Ctrl+A once more and follow the prompts, choosing the Remote connection type and a scope.
  4. Or skip the assistant and save a JSON file, described in the next section.
  5. The new server appears with the status Authorization required. Select it and choose Authorize.
  6. Finish the browser login, return to /mcp and check that the status reads Active.

The JSON file in words

The file has one top-level object called mcpServers. Inside it, add an entry named spendixai with a single url field, and set that field to <your SpendixAI server address>. Save it as .junie/mcp/mcp.json to apply to one project, or as ~/.junie/mcp/mcp.json to apply everywhere. An optional timeout field, in milliseconds, replaces the default of 60 seconds. We suggest the user-level file, since a project-level file sits inside a repository that others may share.

What the permission presets allow

After you choose Authorize, SpendixAI shows its consent screen. You sign in, pick the workspace and then one of three presets.

PresetWhat Junie could do
Read onlyView transactions and reports
Read and addEverything above, plus create transactions and upload documents
Full accessEverything above, plus categorisation rules and insights

Your role in the workspace sets a ceiling as well, because an assistant never gets more than you could do yourself. Billing and member settings stay in the SpendixAI console.

Gaps in what we could confirm

  • Whether Junie asks before it runs an MCP tool is not described on the page we read, so watch every tool call
  • No minimum Junie version or plan was stated
  • Plugin support for OAuth sign-in was not confirmed

If the status will not turn Active

A server stuck on Authorization required usually means the browser step was not finished. Select it in /mcp and choose Authorize again, and make sure you complete the SpendixAI consent screen rather than closing the tab. If the page never opens, confirm that Junie CLI is running on the same machine as your browser. Slow replies can be a timeout problem, which is where the optional timeout field helps.

Leaving the connection

Access can be withdrawn from SpendixAI at any time. Under Developer → MCP connections you will see each connected assistant, with a way to disconnect it. Because access is checked again on every call, a member whose role is reduced loses the extra access straight away.

We checked these steps against JetBrains' documentation in November 2026. Menus and commands change, so follow JetBrains' current guide if something differs. With read-only access, try asking which merchants you paid most often this quarter, and compare any figure that matters with the matching report in SpendixAI.

SPENDIXAI JOURNAL

Useful ideas start with a clearer picture of your own spending.

Explore your reports