Connecting an AI agent with Money
Automatic translation. View original
Money offers a Model Context Protocol (MCP) server to query and manage financial information from an AI agent. This guide is aimed at developers integrating an MCP-compatible client.
Requirements
You need a user with access to Money and a client compatible with Streamable HTTP and OAuth. Access depends on authorized accounts and your user's permissions.
The server supports queries and changes. Configure the agent to show each change and get your confirmation before executing it.
Address and authentication
| Configuration | Value |
|---|---|
| Server URL | https://money.derose.app/mcp |
| Transport | Streamable HTTP |
| Authentication | OAuth via PADMA Accounts |
| Scopes |
openid, profile, account, money
|
| OAuth Resource | The same server URL, including /mcp
|
For PADMA, use https://money.derose.app/mcp as OAuth URL and resource. Keep the same domain throughout the configuration.
The client discovers the OAuth configuration and manages the session. Log in to Accounts and authorize the accounts you want to use.
You do not need an API key nor a shared Client ID or Client Secret. The client can automatically register its callback via Dynamic Client Registration (DCR) and complete OAuth with PKCE.
Do not paste tokens or authorization codes into the chat. Do not save them in project files, tool arguments, or logs either.
Configuration in Codex
If your installation already includes the Money server, complete its authorization. To add it manually:
codex mcp add money \
--url https://money.derose.app/mcp \
--oauth-resource https://money.derose.app/mcp
codex mcp login money --scopes openid,profile,account,money
Complete the login in the browser and choose the authorized accounts.
If a previous setup uses shared OAuth credentials, close that session and delete the entry before adding it again:
codex mcp logout money
codex mcp remove money
These commands modify the client's connection. They do not delete Money data.
Configuration in Claude Code
claude mcp add --transport http money https://money.derose.app/mcp
Open /mcp, select Money and complete the authorization. Leave Client ID and Client Secret empty to allow automatic registration.
Other MCP clients
Set up a remote server with the indicated URL, Streamable HTTP transport, and OAuth. How to save these values depends on the client.
For clients compatible with this format:
{
"mcpServers": {
"money": {
"type": "http",
"url": "https://money.derose.app/mcp"
}
}
}
This file describes the connection. Authorization is completed by the client, without including credentials in the JSON.
Verify the connection and select the business
In Money, a business corresponds to a Business. A business contains financial accounts, categories, transactions, and plans. A financial account, such as Bank or Cash, belongs to that business.
Ask the agent:
Show the authorized businesses in Money. If there are several, ask me which one to use. Query its currency, time zone, and financial accounts. Do not make changes.
The agent must follow this order:
- Run
list_businesseswithout arguments. - If there is only one business, select it.
- If there are several, use the one indicated by the user or ask.
- Run
get_business_contextwith the chosen business. - Run
list_accountswithin the same business.
With several authorized businesses, the agent must send the same business_id in each call of the flow. That ID must come from list_businesses: typing an ID does not grant access.
Viewing the server in the client configuration does not prove that OAuth works. A successful call to list_businesses allows authorization to be verified.
Troubleshoot connection problems
| Result | Action |
|---|---|
401 or invalid_token
|
Reconnect Money and verify that the OAuth resource matches the URL exactly. |
403 or insufficient_scope
|
Check permissions and reauthorize the four scopes. |
business_required |
Select a business returned by list_businesses and send its business_id. |
| The business does not appear | Reconnect and authorize the corresponding account. |
503 |
Accounts could not validate the session. Retry when the service is available. |
429 |
Respect the retry interval indicated by the server. |
| Tools do not appear | Check the termination /mcp, complete OAuth and reload the client connection. |
Continue with the query and change guides in this section.