Logo von Lerian MCP 服务器

Lerian MCP 服务器

Organisation
LerianStudio

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

HerausgeberLerianStudio
Repositorylerian-mcp-server
SpracheJavaScript
Forks
4
Sterne
8
Verfügbare Tools
0
Transporttypstdio
Kategorien
LizenzApache-2.0
Links
  • Tools mit KI-Workflows verbinden

    Lerian MCP 服务器 stellt MCP-Funktionen bereit, die kompatible KI-Clients und Agenten nutzen können.

  • Verfügbare Tools: 0

    Unten finden Sie die aufrufbaren Aktionen. Namen und Beschreibungen werden angezeigt, sofern der Server sie bereitstellt.

  • Konfiguration zum Kopieren

    Nutzen Sie die Installationsbeispiele, um diesen Server in Ihrem bevorzugten MCP-Client zu konfigurieren.

  • Open-Source-Kennzahlen

    Kennzahlen des verlinkten Repositorys: Sterne (8) und Forks (4).

Lerian MCP Server

An MCP gateway for Lerian portfolio discovery, documentation, learning, SDK examples, live product API access, and cross-product workflows.

This server connects MCP clients such as Claude Desktop, Cursor, Windsurf, Continue, and ChatGPT Desktop to the Lerian product portfolio. It gives AI assistants a structured way to discover Lerian products, read official documentation, generate implementation examples, inspect live API contracts, execute configured product APIs, and guide multi-product operational workflows.

Runtime scope: this server is not documentation-only. The unified lerian tool is read-oriented, but product-specific *-execute tools can call configured live Lerian APIs. Mutating API calls require explicit confirmation and an audit reason.


2-Minute Setup

  1. Choose your MCP-compatible AI assistant.
  2. Add the server configuration.
  3. Restart the AI app.
  4. Ask: "What can you tell me about Lerian Midaz?"

Claude Desktop

macOS location: ~/Library/Application Support/Claude/claude_desktop_config.json

Windows location: %APPDATA%\Claude\claude_desktop_config.json

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

Cursor, Windsurf, Continue, ChatGPT Desktop

Add the same MCP server block to your client's MCP configuration:

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

What You Get

Supported Products

  • Midaz: unified double-entry ledger — organizations, ledgers, accounts, balances, transactions, and CRM behind a single service.
  • Fetcher: datasource connection, schema discovery, and asynchronous extraction service.
  • Reporter: template-driven report generation, datasource management, metrics, and artifacts.
  • Matcher: reconciliation engine for matching Midaz transactions against external systems.
  • Tracer: transaction validation engine with rules, limits, validations, and auditability.
  • Flowker: workflow orchestration platform for providers, executors, webhooks, and execution flows.
  • Underwriter: jurisdiction-aware lending surface for loan products and schedule preview.
  • All: portfolio-wide discovery, documentation search, and comparison.

Core Capabilities

  • Portfolio discovery through lerian with operation="discover".
  • Documentation lookup through lerian with operation="docs".
  • Guided learning through lerian with operation="learn".
  • SDK examples through lerian with operation="sdk".
  • Cross-product search through lerian with operation="search".
  • Live API contract discovery through product-specific *-discover tools.
  • Live API execution through product-specific *-execute tools.
  • Cross-product workflows through portfolio-workflow.
  • Prompt-based guidance for onboarding, learning, API use, and operational workflows.

Runtime Tool Surface

The server exposes a small core plus live API pairs for each supported product.

Core Tools

  • lerian: unified portfolio tool for docs, learning, SDK examples, discovery, and search.
  • portfolio-workflow: cross-product workflow discovery, planning, stateful sessions, and step execution.

Live API Tools

  • midaz-discover and midaz-execute
  • fetcher-discover and fetcher-execute
  • reporter-discover and reporter-execute
  • matcher-discover and matcher-execute
  • tracer-discover and tracer-execute
  • flowker-discover and flowker-execute
  • underwriter-discover and underwriter-execute

Use the matching *-discover tool before calling a *-execute tool. Discovery returns resources, actions, path parameters, query parameters, body schemas, examples, and execution hints.


The lerian Tool

The lerian tool is the primary read-oriented entry point.

text
Tool: lerian

Parameters:
  product          midaz | fetcher | reporter | matcher | tracer | flowker | underwriter | all
  operation        discover | docs | learn | sdk | search
  topic            Topic to inspect, learn, or search
  language         go | typescript | javascript, for SDK examples
  useCase          Specific implementation scenario for SDK examples
  experienceLevel  beginner | intermediate | advanced
  format           summary | detailed | examples-only
  includeExamples  true | false
  maxResults       1-50, for search

Example:

json
{
  "product": "midaz",
  "operation": "learn",
  "topic": "transactions",
  "experienceLevel": "beginner"
}

Live API Workflow

Live API access is intentionally two-step.

  1. Inspect the product surface:
json
{
  "intent": "list-resources"
}
  1. Inspect a specific action contract:
json
{
  "intent": "describe-action",
  "resource": "transactions",
  "action": "create"
}
  1. Execute with the exact contract returned by discovery:
json
{
  "resource": "transactions",
  "action": "create",
  "pathParams": {
    "organizationId": "...",
    "ledgerId": "..."
  },
  "body": {
    "description": "Example transaction"
  },
  "confirmMutation": true,
  "mutationReason": "Create example transaction requested by operator"
}

Mutating live API actions require:

  • confirmMutation: true
  • mutationReason with a human-readable audit reason

Cross-Product Workflows

Use portfolio-workflow when the task spans multiple Lerian products.

Current workflows:

  • fetcher-to-reporter: validate extraction mappings with Fetcher, then generate or inspect Reporter reports.
  • matcher-to-fetcher-to-midaz: configure Matcher reconciliation, use Matcher discovery over Fetcher, and inspect Midaz ledger-side data.

Supported intents:

  • list-workflows
  • describe-workflow
  • plan
  • create-session
  • get-session
  • list-sessions
  • execute-step
  • execute-next

Workflow sessions return an opaque sessionToken. Keep it private.


Configuration

The server works immediately for documentation and discovery. Live API execution requires reachable product services and, where applicable, tokens or API keys.

Configuration sources, in priority order:

  • Command-line --config or --config-file
  • Environment variables
  • ./lerian-mcp-config.json
  • ./midaz-mcp-config.json
  • ~/.lerian/mcp-config.json
  • ~/.midaz/mcp-config.json
  • ~/.config/lerian/mcp-config.json
  • ~/.config/midaz/mcp-config.json
  • Platform global config paths

Create or update configuration interactively:

bash
npx -y -p @lerianstudio/lerian-mcp-server@latest lerian-mcp-config

Midaz is a single unified ledger service reached through one base URL. Onboarding, accounts, balances, transactions, and CRM are all resources of that one service, so there is exactly one Midaz URL to configure.

Common environment variables:

bash
LERIAN_DOCS_URL=https://docs.lerian.studio
LOG_LEVEL=info

MIDAZ_BASE_URL=http://localhost:3002
MIDAZ_AUTH_TOKEN=...
MIDAZ_API_TIMEOUT=30000

FETCHER_MANAGER_URL=http://localhost:4006
FETCHER_AUTH_TOKEN=...

REPORTER_MANAGER_URL=http://localhost:4005
REPORTER_AUTH_TOKEN=...

MATCHER_BASE_URL=http://localhost:4018
MATCHER_AUTH_TOKEN=...

TRACER_BASE_URL=http://localhost:4020
TRACER_API_KEY=...

FLOWKER_BASE_URL=http://localhost:4021
FLOWKER_AUTH_TOKEN=...
FLOWKER_API_KEY=...

UNDERWRITER_BASE_URL=http://localhost:8080
UNDERWRITER_AUTH_TOKEN=...

Migrating to 4.0.0

Breaking change: Midaz configuration. Releases before 4.0.0 expected four separate Midaz URLs, one per legacy service (onboarding, transaction, CRM, ledger). Those variables are gone — they are not read and not accepted. Point MIDAZ_BASE_URL at your unified Midaz ledger instead, and keep MIDAZ_AUTH_TOKEN as is. Nothing else in the configuration changed.


Safety Model

  • Live execution is opt-in through product-specific *-execute tools.
  • Mutating methods require explicit confirmation and a mutation reason.
  • Product API base URLs must use http or https.
  • Non-localhost HTTP URLs are rejected; HTTPS is required outside local development.
  • URLs with embedded credentials are rejected.
  • Authorization and API-key headers are protected from arbitrary override.
  • Binary upload and download sizes are bounded by configurable limits.
  • Secrets are generated and managed locally under ~/.lerian/secrets.json when needed.

Example Conversations

Portfolio Discovery

You: "What Lerian products can this MCP help with?"

AI: Uses lerian with product="all", operation="discover".

Learning Path

You: "I'm new to Tracer. Teach me how validation rules work."

AI: Uses lerian with product="tracer", operation="learn", topic="rules".

SDK Example

You: "Show me Go code for creating a Midaz ledger."

AI: Uses lerian with product="midaz", operation="sdk", language="go".

Live API Contract Discovery

You: "Inspect the contract for creating a Reporter template."

AI: Uses reporter-discover before any reporter-execute call.

Cross-Product Workflow

You: "Guide me through validating Fetcher mappings before generating a report."

AI: Uses portfolio-workflow with workflow="fetcher-to-reporter".


Development

Requires Node.js >=20.19.0.

bash
npm ci
npm run build
npm test

Useful scripts:

  • npm run dev: run the TypeScript entrypoint with ts-node.
  • npm run build: compile to dist/ and mark binaries executable.
  • npm run lint: run ESLint.
  • npm run typecheck: run TypeScript without emitting files.
  • npm test: run Node tests plus the basic server test.
  • npm run docs: generate TypeDoc output into docs/.

Documentation


Package Information


Architecture Summary

text
MCP Client
  -> stdio transport
  -> MCP server runtime
  -> core tools and prompts
  -> product adapters
  -> product routers and schema registries
  -> configured Lerian product APIs

Primary layers:

  1. Transport: MCP JSON-RPC over stdio.
  2. Server bootstrap: security, secrets, docs manifest, logging, client detection.
  3. Core tools: lerian and portfolio-workflow.
  4. Product adapters: discover/execute pairs for supported products.
  5. Schema registries: resource/action contracts for API surfaces.
  6. HTTP execution: validated URL construction, request execution, response parsing, and error classification.
  7. Workflow orchestration: guided, stateful multi-product flows.

Troubleshooting

Server Not Starting

Check Node.js version:

bash
node --version

Run manually:

bash
npx -y @lerianstudio/lerian-mcp-server@latest

Check local secrets:

bash
ls -la ~/.lerian/secrets.json

Live API Calls Failing

  • Use the product *-discover tool first.
  • Verify the relevant base URL and token/API key are configured.
  • Confirm non-local remote URLs use HTTPS.
  • For mutations, include confirmMutation=true and mutationReason.
  • Check whether the target product service is reachable from the MCP runtime.

Tool Not Responding In The Client

  • Restart the MCP client after configuration changes.
  • Confirm MCP is enabled in the client.
  • Enable logging with LOG_LEVEL=debug if needed.
  • Check ./logs/ when logging is enabled.

Installation

TypingMind
Voraussetzungen:

Node.js 18+

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

Lerian MCP 服务器 MCP mit mehreren KI-Modellen nutzen

TypingMind bindet MCP-Tools auf Arbeitsbereichsebene ein. Sobald Lerian MCP 服务器 verbunden ist, können Sie die Integration mit verschiedenen KI-Modellen in TypingMind verwenden, statt sie für jedes Modell separat einzurichten. Diese MCP-Integration läuft lokal über den TypingMind-MCP-Konnektor auf Ihrem Gerät.

Einrichtungsanleitung für den lokalen Konnektor

Nutzen Sie diese Option, wenn der MCP-Server Zugriff auf lokale Dateien, Apps oder private Ressourcen auf Ihrem Computer benötigt.

1

MCP-Einstellungen öffnen

Gehen Sie in TypingMind zu „Einstellungen“, „Erweiterte Einstellungen“ und dann „Model Context Protocol“ und wählen Sie „Konnektor einrichten“.

  1. Öffnen Sie TypingMind in Ihrem Browser.
  2. Klicken Sie auf das Symbol „Einstellungen“.
  3. Gehen Sie zu „Erweiterte Einstellungen“.
  4. Öffnen Sie den Abschnitt „Model Context Protocol“.
  5. Klicken Sie auf „Konnektor einrichten“ und wählen Sie „Dieses Gerät“.
Einrichtungsbildschirm des TypingMind-MCP-Konnektors mit ausgewählter Option „Dieses Gerät“
2

Konnektor-Befehl ausführen

Wählen Sie „Dieses Gerät“, kopieren Sie den Befehl aus TypingMind und führen Sie ihn im Terminal aus. Lassen Sie den Prozess laufen, solange Sie MCP verwenden.

  1. Kopieren Sie den in TypingMind angezeigten Einrichtungsbefehl.
  2. Öffnen Sie „Terminal“ (macOS) bzw. „Windows Terminal“ (Windows).
  3. Fügen Sie den Befehl ein und führen Sie ihn aus.
  4. Bestätigen Sie die Paketinstallation, wenn Sie im Terminal zum Fortfahren aufgefordert werden.
  5. Lassen Sie das Terminalfenster geöffnet und den Prozess darin laufen, solange Sie MCP-Tools verwenden.
3

Lerian MCP 服务器 als Server hinzufügen

Wenn der Konnektorstatus „Bereit“ anzeigt, klicken Sie auf „Server bearbeiten“ und fügen Sie die MCP-Server-Konfiguration ein.

  1. Warten Sie, bis der Konnektorstatus „Bereit“ anzeigt.
  2. Klicken Sie auf „Server bearbeiten“.
  3. Fügen Sie die MCP-Server-Konfiguration für Lerian MCP 服务器 ein.
  4. Speichern Sie die Serverliste.
  5. Aktualisieren Sie die Ansicht, um bei Bedarf zu prüfen, ob der Konnektor weiterhin bereit ist.
MCP-Einstellungen in TypingMind mit aktivem Server und der Schaltfläche „Server bearbeiten“
{
  "mcpServers": {
    "lerianstudio-lerian-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@lerianstudio/lerian-mcp-server"
      ]
    }
  }
}
4

Verbindung modellübergreifend nutzen

Speichern Sie die Serverliste, öffnen Sie „Plugins“ und aktivieren Sie die MCP-Tools von Lerian MCP 服务器. Wählen Sie dann ein beliebiges unterstütztes KI-Modell in TypingMind und verwenden Sie die Tools im Chat oder weisen Sie sie einem KI-Agenten zu.

  1. Öffnen Sie die Seite „Plugins“ in TypingMind.
  2. Aktivieren Sie die MCP-Tools von Lerian MCP 服务器.
  3. Starten Sie einen Chat und wählen Sie das KI-Modell, das Sie verwenden möchten.
  4. Nutzen Sie die MCP-Tools im Chat oder weisen Sie sie einem KI-Agenten zu.
  5. Wechseln Sie bei Bedarf zu einem anderen KI-Modell, ohne die MCP-Verbindung erneut herzustellen.
TypingMind-Chat mit aktivierten MCP-Tools und einem ausgewählten KI-Modell
Können Sie mir mit Lerian MCP 服务器 bei dieser Aufgabe helfen?
Lerian MCP 服务器
Gerne. Ich habe es gelesen.
Das habe ich mit Lerian MCP 服务器 gefunden.

Häufig gestellte Fragen

Wofür wird der MCP-Server Lerian MCP 服务器 verwendet?

Lerian MCP 服务器 ist ein MCP-Server, über den kompatible KI-Clients auf externe Tools und Kontext zugreifen können. In TypingMind können Sie diesen MCP-Server einmal hinzufügen und seine Tools in Ihrem KI-Arbeitsbereich verfügbar machen.

Kann ich den MCP-Server Lerian MCP 服务器 mit mehreren KI-Modellen in TypingMind verwenden?

Ja. TypingMind bindet MCP-Tools auf Arbeitsbereichsebene ein. So können Sie Lerian MCP 服务器 mit verschiedenen KI-Modellen wie Claude, ChatGPT, Gemini oder anderen in TypingMind konfigurierten Modellen verwenden, ohne den MCP-Server für jedes Modell separat einzurichten.

Warum den MCP-Server Lerian MCP 服务器 mit TypingMind nutzen?

TypingMind ist eine der besten Oberflächen für LLM-Chats, da es mehrere KI-Modelle, Prompts, Plugins, KI-Agenten, API-Schlüssel und MCP-Tools in einem Arbeitsbereich vereint. Sobald Lerian MCP 服务器 verbunden ist, können Sie die zugehörigen MCP-Tools mit Ihren bevorzugten Modellen nutzen und Ihre Chat-Abläufe in TypingMind übersichtlich organisieren.

Wie verbinde ich den MCP-Server Lerian MCP 服务器 mit TypingMind?

Lerian MCP 服务器 wird über den lokalen MCP-Konnektor von TypingMind angebunden. Das ist die beste Wahl, wenn der MCP-Server auf lokale Dateien, Desktop-Apps, Befehlszeilentools oder private Ressourcen auf Ihrem Computer zugreifen muss.

Welche Tools stellt der MCP-Server Lerian MCP 服务器 in TypingMind bereit?

Lerian MCP 服务器 stellt MCP-Funktionen bereit, die Sie auf der Plugins-Seite in TypingMind aktivieren und im Chat verwenden oder KI-Agenten zuweisen können.

Muss ich meine API-Schlüssel mit TypingMind teilen, um den MCP-Server Lerian MCP 服务器 zu verwenden?

Nein. TypingMind arbeitet vorrangig lokal. Sie wählen Ihre Modellanbieter selbst und behalten die Kontrolle über Ihre API-Schlüssel, Prompts und MCP-Konfiguration. Falls Lerian MCP 服务器 eine Authentifizierung erfordert, fügen Sie beim Erstellen der Verbindung die erforderlichen Header, OAuth-Einstellungen oder die lokale Konfiguration für diesen MCP-Server hinzu.

Ähnliche MCP-Server

Alle anzeigen

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇