Cover image
Try Now
2025-04-14

Protocole de contexte modèle - MCP pour les mifos x

3 years

Works with Finder

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

相关推荐

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

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

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

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

  • 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

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

  • J. DE HARO OLLE
  • Especialista en juegos de palabras en varios idiomas.

  • apappascs
  • Découvrez la collection la plus complète et la plus à jour de serveurs MCP sur le marché. Ce référentiel sert de centre centralisé, offrant un vaste catalogue de serveurs MCP open-source et propriétaires, avec des fonctionnalités, des liens de documentation et des contributeurs.

  • ShrimpingIt
  • Manipulation basée sur Micropython I2C de l'exposition GPIO de la série MCP, dérivée d'Adafruit_MCP230XX

  • jae-jae
  • MCP Server pour récupérer le contenu de la page Web à l'aide du navigateur sans tête du dramwright.

  • HiveNexus
  • Un bot de chat IA pour les petites et moyennes équipes, soutenant des modèles tels que Deepseek, Open AI, Claude et Gemini. 专为中小团队设计的 Ai 聊天应用 , 支持 Deepseek 、 Open Ai 、 Claude 、 Gemini 等模型。

  • ravitemer
  • Un puissant plugin Neovim pour gérer les serveurs MCP (Protocole de contexte modèle)

  • patruff
  • Pont entre les serveurs Olllama et MCP, permettant aux LLM locaux d'utiliser des outils de protocole de contexte de modèle

  • Sysc4lls
  • Lecteur de documentation IDA (Sort-of) MCP Server

    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!