Fire in da houseTop Tip:Paying $100+ per month for Perplexity, MidJourney, Runway, ChatGPT and other tools is crazy - get all your AI tools in one site starting at $15 per month with Galaxy AI Fire in da houseCheck it out free

mcp-mifosx

MCP.Pizza Chef: openMF

mcp-mifosx is an MCP server that integrates with Apache Fineract's API, allowing AI agents to securely access and interact with financial data and operations. It supports multiple implementations in Python, Java (Quarkus), and Node.js, facilitating flexible deployment. This server enables real-time, structured financial context for AI workflows, enhancing automation and decision-making in fintech applications.

Use This MCP server To

Access Apache Fineract financial data via AI agents Perform financial operations through AI-driven workflows Integrate fintech data into AI-enhanced applications Test and debug MCP server with MCP Inspector tool Deploy MCP server in Python, Java, or Node.js environments

README

Mifos X - AI - Model Context Protocol (MCP) for Apache Fineract®

This project provides Model Context Protocol (MCP) servers for interacting with the Apache Fineract API, enabling AI agents to access financial data and operations. Implementations are available in Python, Java (Quarkus), and Node.js.


MCP Developer Tools

Use the MCP Inspector to test and debug your server:

npx @modelcontextprotocol/inspector

This starts a local web UI to connect to your MCP server via STDIO or SSE.


Getting Started

1. Choose Your Implementation

Python (Flask)

Prerequisites: Python 3.8+, flask, mcp.server.fastmcp

Steps:

  1. Install dependencies:

    pip install mcp[cli] uv flask

    Note for zsh users: If you're using zsh, be sure to quote extras to avoid shell expansion errors:

    pip install 'mcp[cli]' uv flask
  2. Run the server:

    mcp dev app.py

Java (Quarkus)

Prerequisites: JDK 17+, Maven

Steps:

  1. Configure environment variables in your shell or IDE:
    export MIFOSX_BASE_URL="https://your-fineract-instance"
    export MIFOSX_BASIC_AUTH_TOKEN="your_api_token"
    export MIFOS_TENANT_ID="default"
  2. Run via JBang (for quick execution):
    jbang --quiet org.mifos.community.ai:mcp-server:1.0.0-SNAPSHOT:runner
  3. (Optional) Build a native executable:
    ./mvnw package -Dnative
    ./target/mcp-server-1.0.0-SNAPSHOT-runner

Node.js

Prerequisites: Node.js 16+, npm

Steps:

  1. Install dependencies:
    cd nodejs && npm install
  2. Configure environment variables in .env:
    cp .env.example .env
  3. Run the server:
    npm run dev
  4. Test with the built-in inspect script:
    npm run inspect

Configuration

All implementations require the following environment variables:

Variable Description
FINERACT_BASE_URL Base URL of your Fineract instance
FINERACT_BASIC_AUTH_TOKEN API authentication token
FINERACT_TENANT_ID Tenant identifier (default: default)

Note: Java uses MIFOSX_ prefixed variables (e.g., MIFOSX_BASE_URL).


Available Resources

The MCP server exposes these resources:

Core Resources

  • fineract://clients
    List all clients
  • fineract://clients/{clientId}
    Get details for a specific client
  • fineract://loans
    List all loans
  • fineract://loans/{loanId}
    Get details for a specific loan

Tools

  • search_clients
    Search clients by name/attributes
  • create_client
    Create a new client (Node.js/Python only)
  • update_loan_status
    Update loan status (Java/Python only)

Building Native Executables (Java Only)

For Java (Quarkus), create a native executable:

./mvnw package -Dnative -Dquarkus.native.container-build=true
./target/mcp-server-1.0.0-SNAPSHOT-runner

Testing with MCP Inspector

  1. Start your MCP server (Python/Java/Node.js).
  2. Run the inspector:
    npx @modelcontextprotocol/inspector
  3. Connect to the server using the STDIO transport.

Contributing

  • Python: Modify python/app.py and server.js for new resources.
  • Java: Extend src/main/java/org/mifos/community/ai/... for new endpoints.
  • Node.js: Update nodejs/src/server.js and add Zod schemas for validation.

Contact

  • Apache Fineract Community: https://community.apache.org/
  • MCP Specification: https://modelcontextprotocol.org

Guides

  • Java/Quarkus: Quarkus MCP Guide
  • Node.js: Use npm run inspect for live reloading
  • Python: Run with python app.py and configure .env

Key Features:

  • Standardized API access via fineract:// URIs
  • MCP-compliant with STDIO/SSE transports
  • Environment-agnostic configuration

mcp-mifosx FAQ

How do I start the mcp-mifosx server in Python?
Install dependencies with pip and run the server using 'mcp dev app.py'.
What programming languages are supported for mcp-mifosx?
Python, Java (Quarkus), and Node.js implementations are available.
How can I test and debug the mcp-mifosx server?
Use the MCP Inspector tool via 'npx @modelcontextprotocol/inspector' to connect and debug.
What is Apache Fineract in relation to mcp-mifosx?
Apache Fineract is the financial API platform that mcp-mifosx connects to for data and operations.
Can mcp-mifosx be used in production environments?
Yes, it supports robust implementations suitable for production fintech applications.
Does mcp-mifosx support real-time financial data access?
Yes, it enables real-time, structured access to financial data through MCP.
Is there a recommended way to deploy mcp-mifosx?
Choose the implementation that fits your stack: Python, Java, or Node.js, and follow the respective setup instructions.