Lerian MCP Server
Lerian MCP-Server
Ein MCP-Gateway für die Entdeckung des Lerian-Portfolios, Dokumentation, Lernen, SDK-Beispiele, Live-Produkt-API-Zugriff und produktübergreifende Workflows.
Dieser Server verbindet MCP-Clients wie Claude Desktop, Cursor, Windsurf, Continue und ChatGPT Desktop mit dem Lerian-Produktportfolio. Er bietet KI-Assistenten eine strukturierte Möglichkeit, Lerian-Produkte zu entdecken, offizielle Dokumentationen zu lesen, Implementierungsbeispiele zu generieren, Live-API-Verträge zu prüfen, konfigurierte Produkt-APIs auszuführen und produktübergreifende operative Workflows zu steuern.
Laufzeitumfang: Dieser Server ist nicht nur für Dokumentationen gedacht. Das einheitliche
lerian-Tool ist leserorientiert, aber produktspezifische*-execute-Tools können konfigurierte Live-Lerian-APIs aufrufen. Mutierende API-Aufrufe erfordern eine explizite Bestätigung und einen Audit-Grund.
2-Minuten-Einrichtung
Wählen Sie Ihren MCP-kompatiblen KI-Assistenten.
Fügen Sie die Serverkonfiguration hinzu.
Starten Sie die KI-App neu.
Fragen Sie: "Was kannst du mir über Lerian Midaz erzählen?"
Claude Desktop
macOS-Pfad: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows-Pfad: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"lerian": {
"command": "npx",
"args": ["-y", "@lerianstudio/lerian-mcp-server@latest"]
}
}
}Cursor, Windsurf, Continue, ChatGPT Desktop
Fügen Sie denselben MCP-Server-Block zur MCP-Konfiguration Ihres Clients hinzu:
{
"mcpServers": {
"lerian": {
"command": "npx",
"args": ["-y", "@lerianstudio/lerian-mcp-server@latest"]
}
}
}Related MCP server: natural-docs-mcp
Was Sie erhalten
Unterstützte Produkte
Midaz: Plattform für Finanzbuchhaltung mit Onboarding, Salden, Transaktionen, CRM und Ledger-Diensten.
Fetcher: Datenquellenverbindung, Schema-Erkennung und asynchroner Extraktionsdienst.
Reporter: Vorlagenbasierte Berichterstellung, Datenquellenverwaltung, Metriken und Artefakte.
Matcher: Abgleich-Engine für den Abgleich von Midaz-Transaktionen mit externen Systemen.
Tracer: Transaktionsvalidierungs-Engine mit Regeln, Limits, Validierungen und Revisionssicherheit.
Flowker: Workflow-Orchestrierungsplattform für Provider, Executoren, Webhooks und Ausführungsabläufe.
Underwriter: Gerichtsbarkeitsbewusste Kreditplattform für Kreditprodukte und Zeitplanvorschau.
All: Portfolio-weite Entdeckung, Dokumentationssuche und Vergleich.
Kernfunktionen
Portfolio-Entdeckung über
lerianmitoperation="discover".Dokumentationssuche über
lerianmitoperation="docs".Geführtes Lernen über
lerianmitoperation="learn".SDK-Beispiele über
lerianmitoperation="sdk".Produktübergreifende Suche über
lerianmitoperation="search".Live-API-Vertragsentdeckung über produktspezifische
*-discover-Tools.Live-API-Ausführung über produktspezifische
*-execute-Tools.Produktübergreifende Workflows über
portfolio-workflow.Prompt-basierte Anleitung für Onboarding, Lernen, API-Nutzung und operative Workflows.
Laufzeit-Tool-Oberfläche
Der Server stellt einen kleinen Kern sowie Live-API-Paare für jedes unterstützte Produkt bereit.
Kern-Tools
lerian: Einheitliches Portfolio-Tool für Dokumente, Lernen, SDK-Beispiele, Entdeckung und Suche.portfolio-workflow: Produktübergreifende Workflow-Entdeckung, Planung, zustandsbehaftete Sitzungen und Schrittausführung.
Live-API-Tools
midaz-discoverundmidaz-executefetcher-discoverundfetcher-executereporter-discoverundreporter-executematcher-discoverundmatcher-executetracer-discoverundtracer-executeflowker-discoverundflowker-executeunderwriter-discoverundunderwriter-execute
Verwenden Sie das passende *-discover-Tool, bevor Sie ein *-execute-Tool aufrufen. Die Entdeckung liefert Ressourcen, Aktionen, Pfadparameter, Abfrageparameter, Body-Schemas, Beispiele und Ausführungshinweise.
Das lerian-Tool
Das lerian-Tool ist der primäre leserorientierte Einstiegspunkt.
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 searchBeispiel:
{
"product": "midaz",
"operation": "learn",
"topic": "transactions",
"experienceLevel": "beginner"
}Live-API-Workflow
Der Live-API-Zugriff erfolgt bewusst in zwei Schritten.
Überprüfen Sie die Produktoberfläche:
{
"intent": "list-resources"
}Überprüfen Sie einen spezifischen Aktionsvertrag:
{
"intent": "describe-action",
"resource": "transactions",
"action": "create"
}Führen Sie die Aktion mit dem exakten Vertrag aus, der durch die Entdeckung zurückgegeben wurde:
{
"resource": "transactions",
"action": "create",
"pathParams": {
"organizationId": "...",
"ledgerId": "..."
},
"body": {
"description": "Example transaction"
},
"confirmMutation": true,
"mutationReason": "Create example transaction requested by operator"
}Mutierende Live-API-Aktionen erfordern:
confirmMutation: truemutationReasonmit einem für Menschen lesbaren Audit-Grund
Produktübergreifende Workflows
Verwenden Sie portfolio-workflow, wenn die Aufgabe mehrere Lerian-Produkte umfasst.
Aktuelle Workflows:
fetcher-to-reporter: Validieren Sie Extraktionszuordnungen mit Fetcher und generieren oder prüfen Sie dann Reporter-Berichte.matcher-to-fetcher-to-midaz: Konfigurieren Sie den Matcher-Abgleich, verwenden Sie die Matcher-Entdeckung über Fetcher und prüfen Sie Daten auf der Midaz-Ledger-Seite.
Unterstützte Intents:
list-workflowsdescribe-workflowplancreate-sessionget-sessionlist-sessionsexecute-stepexecute-next
Workflow-Sitzungen geben ein opakes sessionToken zurück. Behandeln Sie dieses vertraulich.
Konfiguration
Der Server funktioniert sofort für Dokumentation und Entdeckung. Die Live-API-Ausführung erfordert erreichbare Produktdienste und gegebenenfalls Token oder API-Schlüssel.
Konfigurationsquellen in der Prioritätsreihenfolge:
Befehlszeile
--configoder--config-fileUmgebungsvariablen
./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.jsonGlobale Plattform-Konfigurationspfade
Konfiguration interaktiv erstellen oder aktualisieren:
npx -y -p @lerianstudio/lerian-mcp-server@latest lerian-mcp-configAllgemeine Umgebungsvariablen:
LERIAN_DOCS_URL=https://docs.lerian.studio
LOG_LEVEL=info
MIDAZ_ONBOARDING_URL=http://localhost:3000
MIDAZ_TRANSACTION_URL=http://localhost:3001
MIDAZ_CRM_URL=http://localhost:3002
MIDAZ_LEDGER_URL=http://localhost:3003
MIDAZ_AUTH_TOKEN=...
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=...Sicherheitsmodell
Die Live-Ausführung erfolgt per Opt-in über produktspezifische
*-execute-Tools.Mutierende Methoden erfordern eine explizite Bestätigung und einen Mutationsgrund.
Produkt-API-Basis-URLs müssen
httpoderhttpsverwenden.Nicht-lokale HTTP-URLs werden abgelehnt; HTTPS ist außerhalb der lokalen Entwicklung erforderlich.
URLs mit eingebetteten Anmeldeinformationen werden abgelehnt.
Autorisierungs- und API-Schlüssel-Header sind vor willkürlichem Überschreiben geschützt.
Binäre Upload- und Download-Größen sind durch konfigurierbare Limits begrenzt.
Geheimnisse werden bei Bedarf lokal unter
~/.lerian/secrets.jsongeneriert und verwaltet.
Beispielkonversationen
Portfolio-Entdeckung
Sie: "Bei welchen Lerian-Produkten kann mir dieses MCP helfen?"
KI: Verwendet lerian mit product="all", operation="discover".
Lernpfad
Sie: "Ich bin neu bei Tracer. Bring mir bei, wie Validierungsregeln funktionieren."
KI: Verwendet lerian mit product="tracer", operation="learn", topic="rules".
SDK-Beispiel
Sie: "Zeig mir Go-Code zum Erstellen eines Midaz-Ledgers."
KI: Verwendet lerian mit product="midaz", operation="sdk", language="go".
Live-API-Vertragsentdeckung
Sie: "Prüfe den Vertrag zum Erstellen einer Reporter-Vorlage."
KI: Verwendet reporter-discover vor jedem reporter-execute-Aufruf.
Produktübergreifender Workflow
Sie: "Führe mich durch die Validierung von Fetcher-Zuordnungen, bevor ein Bericht generiert wird."
KI: Verwendet portfolio-workflow mit workflow="fetcher-to-reporter".
Entwicklung
Erfordert Node.js >=20.19.0.
npm ci
npm run build
npm testNützliche Skripte:
npm run dev: Führt den TypeScript-Einstiegspunkt mitts-nodeaus.npm run build: Kompiliert nachdist/und markiert Binärdateien als ausführbar.npm run lint: Führt ESLint aus.npm run typecheck: Führt TypeScript aus, ohne Dateien zu emittieren.npm test: Führt Node-Tests sowie den grundlegenden Server-Test aus.npm run docs: Generiert TypeDoc-Ausgabe indocs/.
Dokumentation
Paketinformationen
npm-Paket:
@lerianstudio/lerian-mcp-serverAktuelle Paketversion:
3.4.0Laufzeit: Node.js ESM
MCP SDK:
@modelcontextprotocol/sdkLizenz: Apache-2.0
Repository: github.com/lerianstudio/lerian-mcp-server
Architekturzusammenfassung
MCP Client
-> stdio transport
-> McpServer from @modelcontextprotocol/sdk
-> core tools and prompts
-> product adapters
-> product routers and schema registries
-> configured Lerian product APIsPrimäre Ebenen:
Transport: MCP JSON-RPC über stdio.
Server-Bootstrap: Sicherheit, Geheimnisse, Dokumentenmanifest, Protokollierung, Client-Erkennung.
Kern-Tools:
lerianundportfolio-workflow.Produktadapter: Entdecken/Ausführen-Paare für unterstützte Produkte.
Schema-Register: Ressourcen/Aktionsverträge für API-Oberflächen.
HTTP-Ausführung: Validierte URL-Konstruktion, Anforderungsausführung, Antwort-Parsing und Fehlerklassifizierung.
Workflow-Orchestrierung: Geführte, zustandsbehaftete produktübergreifende Abläufe.
Fehlerbehebung
Server startet nicht
Überprüfen Sie die Node.js-Version:
node --versionManuell ausführen:
npx -y @lerianstudio/lerian-mcp-server@latestLokale Geheimnisse prüfen:
ls -la ~/.lerian/secrets.jsonLive-API-Aufrufe schlagen fehl
Verwenden Sie zuerst das Produkt-Tool
*-discover.Überprüfen Sie, ob die relevante Basis-URL und der Token/API-Schlüssel konfiguriert sind.
Bestätigen Sie, dass nicht-lokale Remote-URLs HTTPS verwenden.
Fügen Sie bei Mutationen
confirmMutation=trueundmutationReasonhinzu.Prüfen Sie, ob der Zielproduktdienst von der MCP-Laufzeitumgebung aus erreichbar ist.
Tool reagiert nicht im Client
Starten Sie den MCP-Client nach Konfigurationsänderungen neu.
Bestätigen Sie, dass MCP im Client aktiviert ist.
Aktivieren Sie bei Bedarf die Protokollierung mit
LOG_LEVEL=debug.Überprüfen Sie
./logs/, wenn die Protokollierung aktiviert ist.
Available Tools
16 toolsfetcher-discoverARead-onlyIdempotent
Discover Fetcher manager resources, actions, and execution contracts. Use this before fetcher-execute to inspect path params, required headers like organizationId/productName, body shapes, and supported migration/fetcher job operations.
Inputs: intent (required), query, action, resource, +1 more.
fetcher-executeADestructive
Execute Fetcher manager API actions. Use fetcher-discover first to inspect the required organizationId/productName context, path params, query params, and request body shape before calling this tool.
Inputs: action (required), resource (required), body, pathParams, +5 more.
flowker-discoverARead-onlyIdempotent
Discover Flowker API resources, actions, and execution contracts. Use this before flowker-execute to inspect workflow definitions, execution start requirements, provider and executor configuration payloads, audit filters, dashboard summaries, and webhook method/path behavior.
Inputs: intent (required), query, action, resource, +1 more.
flowker-executeADestructive
Execute Flowker API actions. Use flowker-discover first to inspect auth expectations, Idempotency-Key requirements for workflow execution start, provider and executor configuration payloads, and webhook method/path behavior.
Inputs: action (required), resource (required), body, headers, +4 more.
lerianARead-onlyIdempotent
Unified portfolio tool for Lerian products. Discover supported products and current MCP coverage, access documentation and learning resources, generate SDK examples, and search across the portfolio. Live API execution is available through product-specific tools for Midaz, Fetcher, Reporter, Matcher, Tracer, Flowker, and Underwriter, with cross-product workflow support available via portfolio-workflow.
Inputs: product (required), operation (required), topic, format, +5 more.
matcher-discoverARead-onlyIdempotent
Discover Matcher API resources, actions, and execution contracts. The current live slice covers contexts, sources, field maps, discovery-over-Fetcher endpoints, matching runs, exceptions, disputes, governance, reporting, and system operations. Use this before matcher-execute to inspect headers, path params, query filters, payload requirements, and export behavior.
Inputs: intent (required), query, action, resource, +1 more.
matcher-executeADestructive
Execute Matcher API actions. The current live slice covers contexts, sources, field maps, discovery-over-Fetcher endpoints, matching runs, exceptions, disputes, governance, reporting, and system operations. Use matcher-discover first to inspect payloads, required headers, and reporting export behavior.
Inputs: action (required), resource (required), body, headers, +4 more.
midaz-discoverARead-onlyIdempotent
Discover Midaz API resources, actions, and schemas. Use this BEFORE calling midaz-execute to find the right resource+action and understand required parameters. Supports listing all resources, describing specific resources/actions, searching, and filtering by component.
Inputs: intent (required), query, action, resource, +1 more.
midaz-executeADestructive
Execute Midaz API operations. Use midaz-discover first to find the right resource+action and required parameters, then call this tool to execute. Supports all CRUD operations across organizations, ledgers, assets, accounts, transactions, balances, holders, aliases, and more.
Inputs: action (required), resource (required), body, pathParams, +3 more.
portfolio-workflowADestructive
Cross-product workflow tool for orchestrating guided steps across Lerian products. Supports workflow discovery, readiness planning, stateful workflow sessions, step execution, and execute-next progression. Implemented workflows include fetcher-to-reporter and matcher-to-fetcher-to-midaz.
Inputs: intent (required), step, input, limit, +4 more.
reporter-discoverARead-onlyIdempotent
Discover Reporter manager resources, actions, and execution contracts. Use this before reporter-execute to inspect multipart requirements for templates, request headers like X-Idempotency, report download behavior, and the available template/report/deadline/datasource endpoints.
Inputs: intent (required), query, action, resource, +1 more.
reporter-executeADestructive
Execute Reporter manager API actions. Use reporter-discover first to inspect multipart requirements for template upload/update, request headers like X-Idempotency, and binary download behavior for report artifacts.
Inputs: action (required), resource (required), body, headers, +5 more.
tracer-discoverARead-onlyIdempotent
Discover Tracer API resources, actions, and execution contracts. Use this before tracer-execute to inspect rule/limit operations, validation payloads, audit investigation filters, and operational endpoints.
Inputs: intent (required), query, action, resource, +1 more.
tracer-executeBDestructive
Execute Tracer API actions. Use tracer-discover first to inspect rule/limit transitions, validation request bodies, audit filters, and operational endpoints before calling this tool.
Inputs: action (required), resource (required), body, headers, +4 more.
underwriter-discoverARead-onlyIdempotent
Discover Underwriter API resources, actions, and execution contracts. Use this before underwriter-execute to inspect jurisdiction discovery, loan product lifecycle actions, schedule preview payloads, and the example endpoints currently mounted by the service.
Inputs: intent (required), query, action, resource, +1 more.
underwriter-executeADestructive
Execute Underwriter API actions. Use underwriter-discover first to inspect bearer-auth requirements for protected routes, loan product path/query contracts, and the schedule preview payload where decimal amounts are encoded as strings.
Inputs: action (required), resource (required), body, headers, +4 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 16 tools
Each product-specific tool clearly targets a distinct product, and the discover/execute split is unambiguous. The two meta tools (lerian and portfolio-workflow) serve separate discovery and cross-product workflow purposes, so there is no overlap or confusion between any tools.
The 14 product tools follow a highly consistent <product>-discover/<product>-execute pattern. However, the 'lerian' and 'portfolio-workflow' tools deviate from this convention, introducing a minor inconsistency that prevents a perfect score.
With 16 tools, the count is slightly above the typical 3-15 range, but every tool is necessary to cover seven distinct products, each requiring discovery and execution, plus two meta tools. The size is justified by the multi-product scope.
The tool set provides complete coverage for each product with both discovery and execution capabilities, including full CRUD operations. The addition of a unified documentation tool and a cross-product workflow tool ensures no dead ends and covers the entire lifecycle from exploration to execution.
Maintenance
Related MCP Connectors
Docsy gives AI assistants current, version-specific documentation for libraries, frameworks and SDKs. Resolve library IDs and versions, then search and fetch focused official documentation with original source links using five read-only MCP tools. Hosted Streamable HTTP with OAuth 2.1 sign-in.
Gemmein docs, API reference, error explainers and a live integration check for coding agents.
Versioned documentation registry and semantic search for AI tools and coding assistants.
Publish your API docs so AI assistants can look up endpoints and call your API correctly.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to automatically create, update, and publish API documentation through Theneo's platform. Supports OpenAPI specs, Postman collections, AI-powered description generation, and natural language interactions for seamless documentation workflows.MIT
- AlicenseAqualityDmaintenanceProvides read-only tools to search, read, and look up Natural API documentation from an AI agent, enabling documentation lookup without credentials.4MIT
- FlicenseNot gradedqualityDmaintenanceProvides AI assistants with live, searchable documentation for any programming library, eliminating hallucinated APIs by returning current, structured API references.-
- AlicenseAqualityBmaintenanceEnables AI assistants to search API documentation, retrieve endpoint details, get SDK snippets, and check changelogs from an OpenAPI spec.7112 npm4MIT