MCP server extension to allow agentic access to moneydance data

Hi all,

This is my first post, forgiveness in advance if I'm not doing things the "right" way!
As a Claude chat / cowork user, I wanted a way for the AI agent to access my moneydance data so i can interact with it using natural langage. To that end, I created an MCP extension and a simple skill, which I have open sourced and you can find here (https://github.com/Spotlight250/md-mcp/releases/)
Obviously as an unofficially signed extension you will get warnings, so you use at your own risk - however as all the code is open to see in the repo you can see how it works yourself and hopefully be confident it is doing what I say it does!

Because it runs locally, it is private and secure - no data goes over the internet. However, obviously depending on how you use this, you will be sending data to the LLM and that may not be private depending on the provider and their privacy policy. Only use it if you are comfortable with that.

So far, I have found it incredibly powerful. I have used the subscription-finder skill to build a subscription dashboard and analyse price creep, and I have been talking to AI about my ISA portfolio risk profile and how I can flex this.

I would like to extend further, we shall see what happens time permitting.

For now, if you are interested take a look. If you wish to submit any improvements just raise a PR.

Thanks for listening!

Matt

  1. I have to say this is pretty cool. I was wondering what you were doing and how it worked. For anyone interested, this is my rough take of what it does.

    At a simple level, this extension creates / runs a mini http web server and then listens to commands that are sent to it. You configure AI with knowledge of how to send commands to the local http server. The extension has a set of tools / features coded within it to know how to get the relevant data. So when AI asks for networth (for example), the relevant command is sent from AI via the node Java script bridge to the server that’s been run by the extension. The extension receives the command and then executes that feature. To add data extracts to the extension, additional features would have to be added to the extension.

    Matt’s GitHub documentation covers it quite comprehensively.

    I’m not commenting on the security of this here. But as a concept it’s pretty neat and I will be playing with it. It’s got me wondering about other uses.

  2. Hi, thank you so much for this! As a passionate user of Moneydance, I find this very useful.

    One quick point though: I am not able to start the MCP server from within Moneydance in MacOS. Error returned is "Operation Not Permitted" exactly at the "new ServerSocket" source code line. I could replicate this using a python script to do the same operation via developer console.

    Spent all afternoon trying out different access rights to Moneydance, but it remains unsolved. I can run the base code fine from outside Moneydance.

    So the problem seems to be specific to Moneydance on MacOS...

    Any findings on your side on this will be very useful, thank you very much.


  3. On 27 Jun 2026, at 11:36, Muralee <[email blocked]> wrote:

     pre { width: 92%; margin: 10px 2%; padding: 5px 2%; background: rgb(239, 239, 239); border: 1px solid rgb(214, 214, 214); } blockquote { margin-left: 0px; padding-left: 1em; border-left: 5px solid rgb(204, 204, 204); }

    // Please reply above this line
    ==================================================

    From: Muralee

    Hi, thank you so much for this! As a passionate user of Moneydance, I find this very useful.

    One quick point though: I am not able to start the MCP server from within Moneydance in MacOS. Error returned is "Operation Not Permitted" exactly at the "new ServerSocket" source code line. I could replicate this using a python script to do the same operation via developer console.

    Spent all afternoon trying out different access rights to Moneydance, but it remains unsolved. I can run the base code fine from outside Moneydance.

    So the problem seems to be specific to Moneydance on MacOS...

    Any findings on your side on this will be very useful, thank you very much.

    On Fri, May 15 at 04:56 AM PDT, Stuart Beesley (Mr Toolbox) wrote:

    I have to say this is pretty cool. I was wondering what you were doing and how it worked. For anyone interested, this is my rough take of what it does.

    At a simple level, this extension creates / runs a mini http web server and then listens to commands that are sent to it. You configure AI with knowledge of how to send commands to the local http server. The extension has a set of tools / features coded within it to know how to get the relevant data. So when AI asks for networth (for example), the relevant command is sent from AI via the node Java script bridge to the server that’s been run by the extension. The extension receives the command and then executes that feature. To add data extracts to the extension, additional features would have to be added to the extension.

    Matt’s GitHub documentation covers it quite comprehensively.

    I’m not commenting on the security of this here. But as a concept it’s pretty neat and I will be playing with it. It’s got me wondering about other uses.

    Having trouble reading this? View this discussion online: MCP server extension to allow agentic access to moneydance data.

    To unsubscribe and stop receiving emails from https://infinitekind.tenderapp.com, visit this page

    <moneydance_socket_test.py>
  4. Hi - thanks for the detailed report.

    I only have a windows machine so I'm working a bit blind here, but this hypothesis below seounds reasonable and I need your help to try and pin it down further.

    The short version: I don't think this is a plugin misconfiguration, and it's not something you can fix by granting Moneydance more access rights. The plugin already binds to loopback only, so it's behaving. The "Operation not permitted" is macOS refusing to let the Moneydance process itself open a listening socket. That restriction is attached to the host app, which is exactly why the same code works standalone but dies inside Moneydance — and why nothing you change on your side reaches it. A plugin can't lift a network restriction off the app it runs inside.

    On modern macOS two different mechanisms throw this identical error, and the right fix depends on which one you're hitting:
    - Local Network privacy (macOS 15 Sequoia and up) — apps need to be allowed under System Settings → Privacy & Security → Local Network. Loopback is meant to be exempt, but the Java runtime sometimes trips the gate anyway. - App sandbox / entitlements — listening for incoming connections needs a "server" entitlement baked into the signed app, which only Infinite Kind could add to Moneydance.

    Rather than guess, could you run two quick checks and report back? They'll tell me exactly which fix applies.
    1. System Settings → Privacy & Security → Local Network — make sure Moneydance is listed and toggled on (toggle it off and back on if it's already on), then fully quit and reopen Moneydance and try again. If that alone fixes it, we're done — it was the privacy gate.
    2. If it still fails, from the same console try the opposite direction: open an outbound connection (connect a socket to any port that's already listening) instead of listening. Tell me whether outbound succeeds while listening fails.

    Also handy: your exact macOS version.

    Here's why those two tests matter, so you (and anyone else following) can see where this goes:
    - If check 1 fixes it → settings issue, nothing for us to change. - If outbound works but listening is blocked → it's specifically the "act as a server" capability that's denied, and we can fix it on our side by changing how the plugin and the bridge talk to each other so the plugin never has to listen. There are a couple of ways to do that, but I want your test result before committing to it. - If outbound also fails → it's a hard sandbox restriction on Moneydance itself, and the real fix would have to come from Infinite Kind re-signing the app, which I imagine is not likely to happen. I'd rather tell you that honestly.

    Thanks,

    Matt

  5. Hello, this is likely due to the macOS version of Moneydance being code-signed and running within a secure "sandbox" in which we need to specific which privileges the app is allowed. Such privileges include accessing files outside the sandbox (in the downloadable version but not the Mac App Store version) and making outgoing internet connections. We don't currently specify the ability to listen to network connections, so that's why that is being blocked.

    I'll update our entitlements to include the ability to listen to network ports.

    Thanks,
    Sean

    On 27 Jun 2026, at 11:49, Matt <[email blocked]> wrote:

     pre { width: 92%; margin: 10px 2%; padding: 5px 2%; background: rgb(239, 239, 239); border: 1px solid rgb(214, 214, 214); } blockquote { margin-left: 0px; padding-left: 1em; border-left: 5px solid rgb(204, 204, 204); }

    // Please reply above this line
    ==================================================

    From: Matt <[email blocked]>

    Hi - thanks for the detailed report.

    I only have a windows machine so I'm working a bit blind here, but this hypothesis below seounds reasonable and I need your help to try and pin it down further.

    The short version: I don't think this is a plugin misconfiguration, and it's not something you can fix by granting Moneydance more access rights. The plugin already binds to loopback only, so it's behaving. The "Operation not permitted" is macOS refusing to let the Moneydance process itself open a listening socket. That restriction is attached to the host app, which is exactly why the same code works standalone but dies inside Moneydance — and why nothing you change on your side reaches it. A plugin can't lift a network restriction off the app it runs inside.

    On modern macOS two different mechanisms throw this identical error, and the right fix depends on which one you're hitting:
    - Local Network privacy (macOS 15 Sequoia and up) — apps need to be allowed under System Settings → Privacy & Security → Local Network. Loopback is meant to be exempt, but the Java runtime sometimes trips the gate anyway. - App sandbox / entitlements — listening for incoming connections needs a "server" entitlement baked into the signed app, which only Infinite Kind could add to Moneydance.

    Rather than guess, could you run two quick checks and report back? They'll tell me exactly which fix applies.
    1. System Settings → Privacy & Security → Local Network — make sure Moneydance is listed and toggled on (toggle it off and back on if it's already on), then fully quit and reopen Moneydance and try again. If that alone fixes it, we're done — it was the privacy gate.
    2. If it still fails, from the same console try the opposite direction: open an outbound connection (connect a socket to any port that's already listening) instead of listening. Tell me whether outbound succeeds while listening fails.

    Also handy: your exact macOS version.

    Here's why those two tests matter, so you (and anyone else following) can see where this goes:
    - If check 1 fixes it → settings issue, nothing for us to change. - If outbound works but listening is blocked → it's specifically the "act as a server" capability that's denied, and we can fix it on our side by changing how the plugin and the bridge talk to each other so the plugin never has to listen. There are a couple of ways to do that, but I want your test result before committing to it. - If outbound also fails → it's a hard sandbox restriction on Moneydance itself, and the real fix would have to come from Infinite Kind re-signing the app, which I imagine is not likely to happen. I'd rather tell you that honestly.

    Thanks,

    Matt

    On Sat, Jun 27 at 03:31 AM PDT, Stuart Beesley (Mr Toolbox) wrote:


    On 27 Jun 2026, at 11:36, Muralee <[email blocked]> wrote:

     pre { width: 92%; margin: 10px 2%; padding: 5px 2%; background: rgb(239, 239, 239); border: 1px solid rgb(214, 214, 214); } blockquote { margin-left: 0px; padding-left: 1em; border-left: 5px solid rgb(204, 204, 204); }

    // Please reply above this line
    ==================================================

    From: Muralee

    Hi, thank you so much for this! As a passionate user of Moneydance, I find this very useful.

    One quick point though: I am not able to start the MCP server from within Moneydance in MacOS. Error returned is "Operation Not Permitted" exactly at the "new ServerSocket" source code line. I could replicate this using a python script to do the same operation via developer console.

    Spent all afternoon trying out different access rights to Moneydance, but it remains unsolved. I can run the base code fine from outside Moneydance.

    So the problem seems to be specific to Moneydance on MacOS...

    Any findings on your side on this will be very useful, thank you very much.

    On Fri, May 15 at 04:56 AM PDT, Stuart Beesley (Mr Toolbox) wrote:

    I have to say this is pretty cool. I was wondering what you were doing and how it worked. For anyone interested, this is my rough take of what it does.

    At a simple level, this extension creates / runs a mini http web server and then listens to commands that are sent to it. You configure AI with knowledge of how to send commands to the local http server. The extension has a set of tools / features coded within it to know how to get the relevant data. So when AI asks for networth (for example), the relevant command is sent from AI via the node Java script bridge to the server that’s been run by the extension. The extension receives the command and then executes that feature. To add data extracts to the extension, additional features would have to be added to the extension.

    Matt’s GitHub documentation covers it quite comprehensively.

    I’m not commenting on the security of this here. But as a concept it’s pretty neat and I will be playing with it. It’s got me wondering about other uses.

    Having trouble reading this? View this discussion online: MCP server extension to allow agentic access to moneydance data.

    To unsubscribe and stop receiving emails from https://infinitekind.tenderapp.com, visit this page

    <moneydance_socket_test.py>

    Having trouble reading this? View this discussion onli

  6. fab, thanks Sean!

  7. Hi Mat and Sean,

    this is great. I look forward to a new version in this case... Do let me know if you still need anything from me.

    Thank you!

    Regards,
    Muralee

  8. Resurrecting this thread, I independently made something exactly like this back in December (2025) and just now came here to see if anyone had thought of this. Neat! Hi! I'm going to sweep through the code to make sure it's not too embarrassing and open it up. But I've used it for most of a year and mostly liked the experience. Off the top of my head:

    1. Use case: Everything Stores. A typical trip to Target or Aldi might have stuff in three or four categories. I have a horrendous Python script that remote-drives a browser to see what items we bought, then the AI takes a guess at categorization and puts the transaction with right (or right-ish) splits in the ledger.
    2. Use case: Pay Stubs. My paycheck has probably 20 splits with different taxes, a retirement account, that kind of thing. Just feeding the LLM the PDF and telling it to enter into the ledger based on previous examples works way better than it should.
    3. Use case: Reconciliation Debugging. I recently downloaded a year of history from Vanguard in JSON and told the LLM to figure out why my balance was off, and (to my surprise) it worked on the first go.
    4. Use case: Transactions From Email. I have a read-only access token for my Fastmail corpus, so I can have the LLM read receipts from my inbox there and then use the Moneydance MCP server to enter the relevant transactions.
    5. I gave the MCP server a create_transactions tool but nothing to edit or delete, for safety reasons. All other tools are read-only. That limits the damage if the clanker runs wild. I also have religious backup habits.
    6. Packaging complex Moneydance extensions is tricky, and I think at least some of the reasons are unavoidable. Heaven forbid I am one micro-version off on my version of the Kotlin stdlib or Jackson, or it's straight to NoSuchMethodError hell. Tips are very much appreciated.
  9. Hi Everyone,

    I have been running Moneydance for 20+ years. I love it but as life goes on, the number of accounts keeps growing. Despite the built-in automations, categorizing, merging and downloading transactions from non Moneydance+ providers is becoming a huge time drain. I already developed a number of python scripts but they only go that far. I would like to get AI to help with this monthly reconciliation/clean-up.

    I run Moneydance in a Mac and have a Hermes Agent and local LLM.

    A few questions:

    1) The latest Moneydance version is from 2024. Is anything new coming?
    2) Will the MCP server work with the MacOS version downloaded from infinitekind or will also have issues opening ports/network connections?
    3) The mcd-mcp TODO has creation/modification transactions. Is anyone working on this or should I ask AI to try to extend the existing functionality and build them? Happy to be a beta tester if anyone is already working on this.

    Thank you!

  10. Hi Diego,

    I’m not actively working on this right now and am more than happy to take contributions.
    Funnily enough I’ve also just started with Hermes myself so am interested in where you might take it.

    Thanks

    Matt

  11. Screw it, I went ahead and released what I have: https://github.com/lucasbergman/moneylens. Get a build directly from https://github.com/lucasbergman/moneylens/releases/tag/v0.1. This is not an officially signed extension, so it will correctly put a nasty warning banner at the top of Moneydance. Patches are very much welcome.

    This is dangerous. Make sure you have pristine backup habits. If this blows up your ledger, no one is coming to rescue you.

    This does support creating transactions but by design does not support modifying them. I figure a misbehaving AI modifying transactions would much harder to audit and fix. I've used it extensively for months using Claude Code or Google Antigravity as a harness.

    Will the MCP server work with the MacOS version downloaded from infinitekind?

    I doubt it, based on what I've seen above, but I don't have a Mac. I use NixOS Linux.

  12. Lucas and Matt,

    Thanks for the quick response and the great work. I need to build a dev environment and find the time but I will see what I can do. I am certainly motivated to get some update/write functionality enabled. Just the categorization of new transactions (having AI search the website and recommend) will be a big time saver. The categories/descriptions that come with Plaid are not always correct. I also have issues with 401K transactions downloaded as Buy instead of BuyXfr or classifying them as employer vs employee contribution. A lot is mechanical and a "repair script" assisted by AI will be a big time saver. If I can get it to work reliably I will share.

    Hermes is great. It has MCP connectors and should build an LLM wiki with the Moneydance documentation and API. I need to look into NixOS Linux.

  13. Hey Diego, good luck, and please let me know how it goes. You can just jam the mxt file from GitHub releases into Moneydance. For building from source, you *should* just be able to download Bazel and go from there. If you run into issues, give me a shout. This repo has been public for literally just hours, so I'm sure there are some. I'll make a new thread about this for better visibility too.

    Creating transactions with all the splits in my paychecks was actually my motivating use case, and it's generally been great. And the downloaded transaction from Plaid acts as a good check that the final amounts add up.

  14. Ref: post #2 @Muralee - can you clarify the "I am not able to start the MCP server from within Moneydance in MacOS. Error returned is "Operation Not Permitted" exactly at the "new ServerSocket" source code line" point?

    I tried your script at it started and closed the server. As far as I can see the entitlements are explicitly there for directly downloaded Mac versions. Whilst not there for the AppStore version, I did get it to run once, but then it hung a second time.

    Which version were you testing? And direct download or AppStore version? Also, macOS version too?

    TBH - if AppStore I would not be expecting extensions to run properly - especially any python ones (none of mine will run)....

    Anyone else have issues?

  15. Hi Stuart,

    Thanks for picking this up. I just tried again, and it still not working for me on my MacOS, same error.

    I am using the AppStore version of Moneydance, version 2024.04 (5253). I am running macOS version Golden Gate 27.0.1 (26A434).

    Contrary to your findings, I am actually able to run other Python scripts without errors. I have my own scripts to extract accounts etc. which work very well. It is only the socket opening function that seem to running into “Operation not permitted” error. I have tinkered with various available settings but to no avail.

    I hope this helps.

    Regards,
    Muralee

  16. Hi Stuart,

    Thanks for picking this up. I just tried again, and it still not working for me on my MacOS, same error.

    I am using the AppStore version of Moneydance, version 2024.04 (5253). I am running macOS version Golden Gate 27.0.1 (26A434).

    Contrary to your findings, I am actually able to run other Python scripts without errors. I have my own scripts to extract accounts etc. which work very well. It is only the socket opening function that seem to running into “Operation not permitted” error. I have tinkered with various available settings but to no avail.

    I hope this helps.

    Regards,
    Muralee

  17. Hmm. Ok. Well thanks for confirming. I get very random results with python on AppStore (more extension related).

  18. Hi All,

    The reason that it doesn't work on the mac version is because it requires an "entitlement" saying that the Moneydance process needs to have been code-signed with a claim that it should be allowed to listen to a server socket. I've added that entitlement to the next version of moneydance, which is currently available as an (alpha release)[https://infinitekind.com/prepreview].

    I've also been working on adding a built-in (but optional) MCP server to moneydance and am hoping to include it in the next alpha version. It might be better off as an extension though, in which case I'll make it available as open source and maybe we can combine with yours!

    Cheers,
    Sean

    --
    Sean Reilly
    Developer, The Infinite Kind
    https://infinitekind.com

  19. Best of luck, Sean. If I get to delete my code and rely on yours instead someday, that'd be lovely. :)

  20. I just want to confirm that Lucas' code/extension works on MacOS and Moneydance 2024.4 (5253). I did download this version directly from Infinite Kind when it was released. The Alpha version also works but I will continue on 2024.4 just in case. I managed to install nix and bazel on MacOS and got the code to compile and OpenCode connected. Matt's code and architecture incorporating skills is also great. Now the fun begins. Once I have some enhancements that look reliable I will share.

  21. Oh wow, Diego, I'm pleasantly surprised you got that to work straight away like that. I wonder if my extension didn't need the macOS entitlement because I only open the listening side of the socket on 127.0.0.1. Anyway, thanks, and if you or Matt have straightforward ways to make things better with skills, I'm here for it.

    Also, I know Nix on Darwin is a hassle. I believe the build should work with Bazel (just without the --config=nix build flag) to save you some toil. If it doesn't, let me know.

  22. Hi Sean,

    i can confirm that the new version works like a charm. The python script runs, port opens and closes perfectly.

    I look forward to the stable release!

    Regards,
    Muralee

  23. @Muralee if you're able, do you mind trying out mine as well? At least one user reported that it works on stock Moneydance.

    I confirmed the build works on NixOS (my preferred OS) and on Ubuntu 26.04 without Nix, but I'm also hungry for reports from folks trying to build and contribute on other Linux or macOS or Windows. I don't want my weird environment to be a hindrance.

  24. Hi Lucas et al.,

    A quick update. This week, I moved the moneylens code from the MacOs laptop to a Windows Dev sandbox so I can test write transactions without impacting my main Moneydance setup. I got Bazel and all components to work but skipped nix as it is only recommended with WSL2 - which I didn't install. I can confirm that I can compile the extension and run it in the latest stable Moneydance for Windows without any issues. I also managed to split the code into a bootstrap extension that I only need to load once into Moneydance while the main code remains in a separate monelens-core.jar. The bootstrap reloads the code when the file changes. This avoids unloading/reloading the extension and accepting the warnings for each code change. This worked like magic in MacOS but Windows doesn't want to write into a file that is open (Moneydance must be running) so I had to use a different technique. Ultimately, I will need to merge all this back into one extension and should work in all OS. This is still heavily experimental with AI assistance, and tests produce files and scripts with my financial data. There is a lot to test and reconcile. But I will share back once I have something a bit more stable and clean.

  25. FYI I just added example skills here: https://github.com/lucasbergman/moneylens/tree/main/examples

    These are sanitized versions of the real skills I have actually used for the last half-year or so to do some of the workflows I talked about in #8.

    Just this weekend, I did, "Look at the OFX file I just downloaded from the brokerage. It looks like my fund balance is <0.1 off for a couple of funds. Figure out where the mistake is." And it just worked on an account whose balance had been a bit off for years, using the relatively cheap Gemini Flash 3.8.

    I am completely hooked on this workflow. Sean, if you want me to shepherd this to official status or help in your efforts, please let me know. After the last year, I can never give up this new hammer. (I've discovered a great many nails.)

Reply to this discussion Internal reply only staff will see it

Markdown

Attaching KB article:

» »

Read more…

Attach files

Up to 10MB each.

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac