Sponsored by Deepsite.site

Lerian MCP Server

Created By
LerianStudio6 months ago
A MCP server to support all Lerian's platforms. Enables AI assistants to interact with Midaz's core banking APIs for automated ledger operations, account management, and transaction processing. Features comprehensive API coverage, real-time data access, and robust error handling for building AI-powered intelligent fintech workflows
Content

Lerian MCP Server

Give your AI assistant instant access to Lerian documentation and APIs! This plugin connects Claude, ChatGPT, and other AI assistants to the Lerian financial system, so you can get help with integration, APIs, and troubleshooting directly in your conversations.

🔄 Migration Notice: This package was previously known as @lerianstudio/midaz-mcp-server. Both package names work for backward compatibility, but we recommend migrating to the new @lerianstudio/lerian-mcp-server package name.

⚡ 5-Minute Setup

Step 1: Choose your AI assistant Step 2: Copy the configuration below
Step 3: Restart your AI app Step 4: Start asking questions about Lerian!

🖥️ Claude Desktop

Location: ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "lerian": {
      "command": "npx",
      "args": ["@lerianstudio/lerian-mcp-server@latest"]
    }
  }
}
🔄 Backward Compatibility (click to expand)
{
  "mcpServers": {
    "midaz": {
      "command": "npx",
      "args": ["@lerianstudio/midaz-mcp-server@latest"]
    }
  }
}

The old package name still works but is deprecated. Please migrate to @lerianstudio/lerian-mcp-server.

🖥️ Claude Code (Command Line)

# Install once (new package)
npm install -g @lerianstudio/lerian-mcp-server

# Add to Claude Code
claude mcp add lerian "lerian-mcp-server"
🔄 Migration from old package (click to expand)
# Remove old package
npm uninstall -g @lerianstudio/midaz-mcp-server

# Install new package
npm install -g @lerianstudio/lerian-mcp-server

# Update Claude Code
claude mcp remove midaz
claude mcp add lerian "lerian-mcp-server"

💬 ChatGPT Desktop

Add to your ChatGPT Desktop MCP configuration file:

{
  "mcpServers": {
    "lerian": {
      "command": "npx",
      "args": ["@lerianstudio/lerian-mcp-server@latest"]
    }
  }
}

⚡ Cursor IDE

Location: File → Preferences → Cursor Settings → MCP → Add new global MCP Server

{
  "mcp.servers": {
    "lerian": {
      "command": "npm",
      "args": ["exec", "@lerianstudio/lerian-mcp-server@latest"]
    }
  }
}

🌊 Windsurf IDE

Location: File → Preferences → Windsurf Settings → Manage plugins → View raw config

{
  "mcpServers": {
    "lerian": {
      "command": "npm",
      "args": ["exec", "@lerianstudio/lerian-mcp-server@latest"]
    }
  }
}

🔄 Continue IDE

Location: ~/.continue/config.yaml (MacOS / Linux) or %USERPROFILE%\.continue\config.yaml (Windows)

{
  "mcpServers": {
    "lerian": {
      "command": "npm",
      "args": ["exec", "@lerianstudio/lerian-mcp-server@latest"]
    }
  }
}

✨ What You Get

Once connected, you can ask your AI assistant:

  • 📚 "Explain how Lerian accounts work"
  • 🔧 "Show me how to create a transaction"
  • 🏗️ "What's the difference between onboarding and transaction APIs?"
  • 💡 "Generate Go code for creating an organization"
  • 🐛 "Help me debug this Lerian integration error"
  • 📊 "What data models does Lerian use?"

🧙‍♂️ Enhanced Workflow Prompts

NEW! Interactive wizards and troubleshooting assistants:

Basic Workflows

  • 🎯 create-transaction-wizard - Step-by-step transaction creation
  • 🔍 debug-my-balance - Balance troubleshooting with context
  • 🏗️ setup-my-org - Organization setup wizard
  • 📊 explain-my-data - Smart data analysis and insights
  • 🚀 help-me-start - Quick start guide
  • 🔧 help-with-api - API-specific guidance
  • 📚 help-me-learn - Personalized learning paths

Advanced Intelligence (NEW!)

  • 📄 check-file-balances - Multi-format file analysis (CSV/TXT/JSON) with smart UUID extraction
  • 💰 check-external-balance - External account balance checking by asset (USD, EUR, BTC, etc.)
  • 🔍 discover-lerian-hierarchy - Explore complete org → ledger → asset → account chains
  • 🛠️ show-all-tools - Complete catalog of all tools, operations, and parameters

Enhanced Features:

  • File Format Support: Automatic detection of CSV, TXT, and JSON files
  • Smart UUID Extraction: Intelligent parsing with optional LLM confirmation for TXT files
  • External Balance Monitoring: Check system-level asset balances and liquidity
  • Business Intelligence: Asset distribution analysis and treasury management insights

Usage: "Use check-file-balances to analyze my accounts.txt file" or "Use check-external-balance to see USD liquidity"

🆘 Need Help?

Not Working?

  1. Restart your AI app after adding the configuration
  2. Check the file location - make sure you edited the right config file
  3. Try the basic test: Ask your AI "Can you access Lerian documentation?"

Still Having Issues?

  • Claude Desktop Users: Verify MCP is enabled in your Claude Desktop version
  • All Users: Make sure you have Node.js installed on your computer
  • Get Support: GitHub Issues

🔄 Migration Help

Migrating from Midaz MCP Server?

  • Both @lerianstudio/midaz-mcp-server and @lerianstudio/lerian-mcp-server work identically
  • All environment variables work with both MIDAZ_* and LERIAN_* prefixes
  • Configuration files work in both .midaz and .lerian directories
  • Commands midaz-mcp-server and lerian-mcp-server are equivalent

Recommended Migration Steps:

  1. Update your MCP configuration to use @lerianstudio/lerian-mcp-server
  2. Restart your AI assistant
  3. Optionally update environment variables from MIDAZ_* to LERIAN_*
  4. Optionally move config files from .midaz/ to .lerian/ directories

🔒 Safe & Secure

  • ✅ Read-only access (can't modify your data)
  • ✅ No API keys required for basic usage
  • ✅ All data stays on your computer
  • ✅ Open source and auditable

🛠️ Development & Contributing

Quick Start for Developers

# Setup and run locally
make setup                    # Initial project setup
make dev                      # Start development server

# Before committing (matches CI/CD exactly)
make ci-all                   # Run complete CI pipeline locally

Available Commands

  • make ci-all - Run complete CI/CD pipeline locally (recommended before commits)
  • make docs-serve - Generate and serve documentation locally
  • make typecheck - TypeScript type checking
  • make audit - Security vulnerability scan

Documentation


Ready to get started? Copy the configuration for your AI assistant above and restart the app! 🚀

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Playwright McpPlaywright MCP server
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Amap Maps高德地图官方 MCP Server
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
CursorThe AI Code Editor
ChatWiseThe second fastest AI chatbot™
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
Tavily Mcp
WindsurfThe new purpose-built IDE to harness magic
DeepChatYour AI Partner on Desktop
Serper MCP ServerA Serper MCP Server
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code