Cover image
Try Now
2025-04-14

模型上下文协议 - MIFOS X的MCP

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.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

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

  • Daren White
  • A supportive coach for mastering all Spanish tenses.

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

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

  • albert tan
  • Japanese education, creating tailored learning experiences.

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

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

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • jae-jae
  • MCP服务器使用剧作《无头浏览器》获取网页内容。

  • HiveNexus
  • 一个适用于中小型团队的AI聊天机器人,支持DeepSeek,Open AI,Claude和Gemini等车型。 专为中小团队设计的ai聊天应用,支持deepSeek,打开ai,claude,双子座等模型。

  • ravitemer
  • 一个功能强大的Neovim插件,用于管理MCP(模型上下文协议)服务器

  • patruff
  • Ollama和MCP服务器之间的桥梁,使本地LLMS可以使用模型上下文协议工具

  • pontusab
  • 光标与风浪冲浪社区,查找规则和MCP

  • JackKuo666
  • 🔍使AI助手可以通过简单的MCP接口搜索和访问PYPI软件包信息。

    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!