MCP cover image
See in Github
2025-04-14

Protocolo de contexto modelo - MCP para MIFOS X

3

Github Watches

3

Github Forks

7

Github Stars

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
    
  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


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

相关推荐

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • https://appia.in
  • Siri Shortcut Finder – your go-to place for discovering amazing Siri Shortcuts with ease

  • apappascs
  • Descubra la colección más completa y actualizada de servidores MCP en el mercado. Este repositorio sirve como un centro centralizado, que ofrece un extenso catálogo de servidores MCP de código abierto y propietarios, completos con características, enlaces de documentación y colaboradores.

  • ShrimpingIt
  • Manipulación basada en Micrypthon I2C del expansor GPIO de la serie MCP, derivada de AdaFruit_MCP230xx

  • modelcontextprotocol
  • Servidores de protocolo de contexto modelo

  • Mintplex-Labs
  • La aplicación AI de escritorio todo en uno y Docker con trapo incorporado, agentes de IA, creador de agentes sin código, compatibilidad de MCP y más.

  • jae-jae
  • Servidor MCP para obtener contenido de la página web con el navegador sin cabeza de dramaturgo.

    Reviews

    5 (1)
    Avatar
    user_4ANYckz3
    2025-04-16

    I've been using mcp-mifosx by openMF and it has been a game-changer for my financial services. The platform is robust, user-friendly, and offers exceptional features for managing financial products. The GitHub repository is well-maintained, providing clear documentation and seamless integration capabilities. Highly recommend this for anyone in the finance sector looking for a reliable solution!