MCP ( AI Agents )
Automatic translation. View original
Connect Codex or Claude Code with Money to check balances, review expenses, and manage your school's financial information.
This guide is aimed at teachers and administrators. You don't need to program: after installing the plugin; you work through written requests in the chat.
What are MCP and the plugins
MCP is the connection that allows the agent to query Money and perform the operations available to your user.
PADMA AI Plugins is the official plugin catalog. To work only with Money, install Money.
If you also want to combine information from CRM or Learn, install their plugins and PADMA. PADMA coordinates the installed products; by itself it does not connect other products.
In this guide, a business is the organization whose financial information you manage in Money, for example, your school. Within that business are the financial accounts, such as Cash or Bank, with their balances and currencies.
Before starting
You need:
- A user of PADMA with access to Money in your school.
- Codex or Claude Code installed, in a recent version compatible with plugins, remote MCP, and authorization through a browser.
Choose one of the two programs. You do not need to install both.
The installation commands are run in your computer's terminal. Copy each command, paste it, and press Enter. The example requests are written in the program's chat.
Install the plugin
Codex
codex plugin marketplace add dwaynemac/padma-ai-plugins
-
Open
/pluginsin Codex CLI or Plugins in the Codex app. - Choose PADMA AI Plugins and then install Money.
- Start a new task to load the plugin and its tools.
To update the catalog and installed plugins:
codex plugin marketplace upgrade padma-ai-plugins
Claude Code
claude plugin marketplace add dwaynemac/padma-ai-plugins
claude plugin install money@padma-ai-plugins
Start or restart Claude Code to load the plugin and its tools.
To update the Claude Code catalog, execute in the terminal:
claude plugin marketplace update padma-ai-plugins
Authorize access to your school
The installation adds the tools. To consult your data, you also have to authorize the connection.
The program prepares the connection automatically and opens PADMA Accounts in the browser. Log in, select the school accounts, and accept the requested permissions for Money.
Money will only show the enabled businesses that your user can use. Installing the plugin does not expand your permissions.
If you have already authorized CRM or Learn, you also need to authorize Money separately.
Codex
After installing or updating the plugin, start a new task and connect Money when Codex prompts you. If the authorization does not open, run this command in the terminal:
codex mcp login money --scopes openid,profile,account,money
Complete the login and authorization in PADMA Accounts from the browser. Codex saves the session automatically; you do not need to copy codes to the chat.
Claude Code
-
Open Claude Code and run
/mcp. - Select money and choose Authenticate.
- If Client ID and Client Secretappear, leave them empty: the connection registration is automatic.
- Complete the login and authorization in PADMA Accounts.
Verify the connection
In the Codex or Claude Code chat, ask the agent:
List the Money businesses I have authorized.
The agent queries the businesses your user has authorized. You do not need to know their identifiers or write tool names.
- If it returns one, it can select it automatically.
- If it returns multiple, the agent must use the business you indicate or ask which one you want to use; it should not guess.
Then, the agent must verify the permissions and configuration of the selected business, including its currency and time zone. It will keep that business during the query.
Then try a read-only query:
In the business I selected, list my financial accounts and their currencies.
The connection works when the agent returns information from your business. Completing the login alone does not confirm this result.
Before saving a change, the agent must show what it will modify and ask for confirmation, unless you have already authorized that same change in the chat.
What the plugin includes
The plugin Money:
- Connects the agent with Money without requiring you to manually configure the server address.
- Allows authorizing the connection from PADMA Accounts in the browser, without pasting passwords or codes in the chat.
- Queries your authorized businesses and works with the one you select.
- Includes instructions for the agent to interpret your requests and respect Money's permissions and limits.
- Queries accounts, categories, contacts, movements, and reports.
- Analyzes expenses, income, periods, subtotals, and possible anomalies.
- Creates and updates movements, accounts, categories, recurring movements, plans, and automation rules.
- Verifies saved changes and uses controls to avoid duplicates on retries and detect simultaneous changes.
Authorization defines which businesses you can access. Indicating the name or identifier of another school does not grant access to its data.
Using it in daily work
Indicate the business, financial account, period, and currency when applicable. If you ask for a balance, clarify to the agent the closing date you need.
You can start with these queries and requests:
- “How much did we spend last month, separated by category?”
- “Find uncategorized movements and suggest how to classify them.”
- “Register this expense after showing me exactly what you will create.”
- “Compare this month with the previous one and explain significant variations.”
- “Review this account against the statement and list the differences without modifying anything.”
To register an expense, indicate the amount, currency, date, financial account, and concept. For example:
Prepare the expense with the data I gave you. Show me the account, amount, currency, date, and category before saving it. Wait for my confirmation and verify the result.
If there are several similar accounts or contacts, clarify to the agent which one corresponds.
If a change remains without a clear response, ask the agent to verify the result before repeating it.
Combine Money with CRM and Learn
If you installed and authorized the corresponding plugins, you can request:
Link the contact I selected in CRM with Money and show me their movements from last month.
Check access in Learn and movements in Money for the student I selected, verifying their links with CRM.
Indicate the school of each product. The agent must verify the links between records before combining their data.
Security
- Do not paste passwords, authorization codes, or tokens — connection access keys — in the chat or shared documents.
- Each user must authorize their own connection. Do not share access configuration between users or teams.
- If the business you need does not appear in the list, check your access to Money and the accounts included in the authorization.
- The agent must modify only the data and records you have authorized.
- If you suspect that someone else has accessed your connection, disconnect Money from Codex or Claude Code and reauthorize it.
Troubleshooting
- The plugin does not appear: update the catalog with the command of your program indicated above and reopen Plugins.
- The agent does not find Money tools: update or reinstall the plugin, restart the agent, and authenticate money.
- “The requested redirect URI is malformed or doesn't match…”: the authorization configuration may be outdated or incorrect. Delete the connection and add it again so the program can configure it automatically.
- Error 401: the session is missing, expired, or was revoked. Reauthorize Money from the program.
- Error 403: your user or the connection does not have the necessary permissions for that business or action. Check Money access and authorization.
- Error business_required: there are several authorized businesses. Ask the agent to list them and indicate which one you want to use.
- Error 429 during registration: there were too many connection attempts in a short time. Wait the time indicated by the program and try again.
- Expected business missing: Disconnect the session and reauthorize including the corresponding account in PADMA Accounts.
- The agent asks for confirmation before writing: this is the expected behavior and helps to avoid accidental changes.