AI and MCP

How to connect LibreChat to SpendixAI with MCP

Two routes to connect LibreChat to SpendixAI: the MCP Settings screen or the librechat.yaml file, both using OAuth with no API key. Start read-only and check the caveats.

Editorial illustration for How to connect LibreChat to SpendixAI with MCP

LibreChat gives you two ways in. One is a form that any permitted user can fill, and the other is a short block in the configuration file for administrators. Both end at the same place: a browser sign-in and a Connected status.

Why bother

LibreChat is self-hosted, so many people use it to keep their chat history on a machine they control. Adding SpendixAI, the expense tracker we build for India, lets you ask about spending in that same window. Your records stay in your SpendixAI workspace, and LibreChat fetches them only when you ask.

Route one: the interface

  1. Copy the server address from Developer → MCP connections in SpendixAI.
  2. In LibreChat open MCP Settings and choose the plus to add a server.
  3. Enter a Name, paste the address into MCP Server URL and set Transport to Streamable HTTPS.
  4. Set Authentication to OAuth, tick I trust this application and choose Create.
  5. In the Connect dialog choose Continue with OAuth. Sign in to SpendixAI, pick the workspace and a preset.
  6. Finish within 10 minutes. The status changes to Connected.

Servers added through the form can only be remote, which suits SpendixAI. The value you paste is what this guide calls <your SpendixAI server address>.

Route two: librechat.yaml

An administrator can declare the server in the configuration file instead. Under the mcpServers key, add an entry called spendixai with the type set to streamable-http, the url set to <your SpendixAI server address>, and requiresOAuth set to true. Restart LibreChat afterwards. The OAuth sub-keys, such as the authorization and token endpoints, the client ID and secret, a redirect address and a scope, are optional. Leave out the client ID and secret and LibreChat uses dynamic client registration, which SpendixAI supports.

When the sign-in gets stuck

If the status never becomes Connected, the usual cause is time, because the approval has to be finished within 10 minutes. Choose Connect again and repeat the sign-in. If you used the configuration file, check that the entry sits under mcpServers, that the type and url are spelled exactly, and that you restarted LibreChat. Remember that servers added in the interface can only be remote, so a local command-style server needs the file route.

If you ever set explicit OAuth values, LibreChat expects you to register a callback path that includes the server name you chose. With dynamic registration you can skip that, which is one more reason to leave the optional keys out. The name you pick for the entry appears in that path, so keep it short and consistent between your notes and your file.

Comparing the two routes

PointInterfacelibrechat.yaml
Who can do itUsers with permissionAn administrator
Restart neededNoYes
Server typeRemote onlyRemote or local types
Dynamic registrationUsed when no client ID is givenUsed when client ID and secret are omitted
Best forOne person trying it outA shared installation

Caveats from the documentation

We checked these steps against LibreChat's own documentation in November 2026. The pages we read did not state a minimum version or plan and pointed to the compatibility matrix and changelog instead. They also did not say whether LibreChat asks before each tool call. The trust checkbox appears once, at connection time, so do not read it as a per-call approval. Until you have seen how your install behaves, keep the preset on Read only.

The answers you get are generated by the model behind LibreChat. Verify important numbers, such as tax-related totals, against the SpendixAI report.

First questions

  • What did I spend on food last month compared with the month before?
  • Which merchants did I pay most often this quarter?
  • List my recurring charges and what each costs per year.
SPENDIXAI JOURNAL

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

Explore your reports