Lerian MCP Server

Lerian MCP Server

Provides AI assistants with comprehensive documentation, tutorials, and SDK code generation for all 5 Lerian products (Midaz, Tracer, Flowker, Reporter) through a single unified tool. Documentation-only mode with no live API access.

Category
Visit Server

README

Lerian MCP Server

Your AI's gateway to Lerian documentation, guides, and learning resources!

This MCP server connects Claude, ChatGPT, and other AI assistants to comprehensive documentation for all 5 Lerian products (Midaz, Tracer, Flowker, Reporter, and more). Get instant help with integration, best practices, and code generationβ€”all through natural conversation.

πŸ“š Documentation-Only Mode: This server provides documentation and learning resources. It does NOT connect to Lerian backend APIs. For live API access, use Lerian SDKs in your application.


⚑ 2-Minute Setup

Step 1: Choose your AI assistant Step 2: Copy the configuration below Step 3: Restart your AI app Step 4: Ask: "What can you tell me about Lerian Midaz?"

πŸ–₯️ Claude Desktop

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

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

πŸ–₯️ Cursor / Windsurf / Continue

Add to your MCP configuration:

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

πŸ’¬ ChatGPT Desktop

Same configuration in your ChatGPT Desktop MCP settings file.


✨ What You Get

ONE powerful tool for ALL 5 Lerian products:

πŸ“¦ Supported Products

  • Midaz - Financial ledger system with double-entry accounting
  • Tracer - Observability and distributed tracing platform
  • Flowker - Workflow orchestration engine
  • Reporter - Reporting and analytics platform
  • All - Cross-product search and comparison

🎯 Operations

πŸ“š Documentation (operation: "docs")

Get comprehensive documentation for any product:

"Show me Midaz transaction documentation"
"Explain Tracer's observability features"
"How does Flowker workflow orchestration work?"

πŸŽ“ Learning (operation: "learn")

Interactive tutorials adapted to your experience level:

"I'm a beginner, teach me about Midaz"
"Advanced guide to Tracer integration"
"Flowker workflows for intermediate developers"

πŸ’» SDK Generation (operation: "sdk")

Production-ready code in 3 languages:

"Generate Go code for Midaz transaction creation"
"TypeScript SDK example for Reporter analytics"
"JavaScript code for Flowker workflow execution"

πŸ” Search (operation: "search")

Find anything across all products:

"Search all products for authentication docs"
"Find transaction examples across Lerian"

πŸš€ Example Conversations

Getting Started

You: "What can you tell me about Lerian Midaz?" AI: Uses lerian tool with product="midaz", operation="docs" β†’ Gets comprehensive Midaz documentation, explains core concepts

Learning Path

You: "I'm new to Tracer, how do I get started?" AI: Uses lerian tool with product="tracer", operation="learn", topic="getting-started" β†’ Provides beginner-friendly tutorial with step-by-step guidance

Code Generation

You: "Show me Go code for creating a Midaz ledger" AI: Uses lerian tool with product="midaz", operation="sdk", language="go" β†’ Generates production-ready Go code with comments and best practices

Cross-Product Search

You: "How do the different Lerian products handle authentication?" AI: Uses lerian tool with product="all", operation="search", topic="authentication" β†’ Searches across all products, provides comparison


🎯 The ONE Tool

The entire MCP server is built around a single, intelligent tool:

Tool: lerian

Parameters:
  product    - midaz | tracer | flowker | reporter | all
  operation  - docs | learn | sdk | search
  topic      - What you want to know about (optional)
  language   - go | typescript | javascript (for SDK operation)
  useCase    - Specific use case (optional, for SDK)

Example:
{
  "product": "midaz",
  "operation": "learn",
  "topic": "transactions"
}

Why ONE tool?

  • 🎯 Simple to discover and use
  • πŸ”„ Consistent experience across all products
  • πŸš€ Easy for AI to understand
  • πŸ“¦ Minimal context usage
  • ⚑ Fast and efficient

πŸ’‘ Key Features

βœ… Zero Configuration

  • Auto-generates required secrets on first run
  • Stores in ~/.lerian/secrets.json (secure, persistent)
  • Works immediately with npx - no manual setup

βœ… All Products, One Interface

  • Unified access to Midaz, Tracer, Flowker, Reporter
  • Cross-product search and comparison
  • Consistent documentation format

βœ… Smart Documentation

  • Auto-loads from docs.lerian.studio/llms.txt
  • Always up-to-date with latest docs
  • Rich formatting optimized for AI understanding

βœ… Multi-Language SDK

  • Go (backend services)
  • TypeScript (type-safe web)
  • JavaScript (Node.js/browser)
  • Production-ready code with best practices

βœ… Experience-Based Learning

  • Beginner-friendly tutorials
  • Intermediate deep-dives
  • Advanced patterns and architecture
  • Role-specific guidance (developer/admin/business)

πŸ”’ Safe & Secure

  • βœ… No API access - Documentation only, can't execute operations
  • βœ… All local - Documentation cached on your machine
  • βœ… Zero vulnerabilities - Comprehensive security audit completed
  • βœ… Auto-secret generation - Cryptographic keys auto-managed
  • βœ… Open source - Fully auditable code

πŸ“– Documentation

Quick Links

For Developers


πŸ› οΈ Advanced Usage

Custom Documentation URL

{
  "mcpServers": {
    "lerian": {
      "command": "npx",
      "args": ["-y", "@lerianstudio/lerian-mcp-server@latest"],
      "env": {
        "LERIAN_DOCS_URL": "https://your-custom-docs.example.com"
      }
    }
  }
}

Enable Logging

{
  "mcpServers": {
    "lerian": {
      "command": "npx",
      "args": ["-y", "@lerianstudio/lerian-mcp-server@latest"],
      "env": {
        "ERROR_LOGGING": "true",
        "PERFORMANCE_TRACKING": "true",
        "LOG_LEVEL": "debug"
      }
    }
  }
}

Logs are stored in ./logs/ directory.


πŸ†˜ Troubleshooting

Server Not Starting?

  1. Check Node.js version: Requires Node.js 18+

    node --version  # Should show v18 or higher
    
  2. Test manually:

    npx -y @lerianstudio/lerian-mcp-server
    
  3. Check secrets:

    ls -la ~/.lerian/secrets.json
    

Tool Not Responding?

  1. Restart your AI assistant after changing configuration
  2. Verify MCP is enabled in your AI assistant's settings
  3. Check logs (if enabled): ./logs/error.log

Getting Help


πŸ“¦ Package Information

npm Package: @lerianstudio/lerian-mcp-server Version: 4.0.0 (Documentation-Only Mode) License: Apache-2.0 Repository: GitHub

Migration from v3.x

Version 4.0.0 is a major breaking change that removes all API connectivity.

What's Removed:

  • ❌ All 18 financial API tools
  • ❌ Backend service connectivity
  • ❌ Live data queries

What You Gain:

  • βœ… Focused documentation experience
  • βœ… 5 products in ONE tool
  • βœ… Faster, simpler, more reliable
  • βœ… Zero configuration required

Need API access? Use Lerian SDKs directly in your application.

See MIGRATION-V4.md for full migration guide.


πŸ—οΈ Architecture

The Ultimate Simplification:

  • Tool Count: 1 (down from 23!)
  • Products: 5 (midaz, tracer, flowker, reporter, all)
  • Operations: 4 (docs, learn, sdk, search)
  • Languages: 3 (Go, TypeScript, JavaScript)
  • Data Source: docs.lerian.studio/llms.txt (auto-updated)

Layers:

  1. Infrastructure - Config, logging, security
  2. Transport - MCP stdio protocol
  3. Protocol - Message handling, cursors
  4. Client Adaptation - Response formatting
  5. Tool - Single unified lerian tool
  6. Business Logic - Documentation workflows

No API/Integration layer - Pure documentation MCP βœ…


🌟 Why This MCP?

For AI Users

  • 🎯 One tool, everything - No complexity, just ask
  • πŸ“š Always current - Auto-updates from official docs
  • πŸŽ“ Learn by doing - Interactive tutorials
  • πŸ’» Copy-paste code - Production-ready examples

For Developers

  • ⚑ Zero setup - Just npx and go
  • πŸ”’ Secure by default - No credentials needed
  • πŸͺΆ Lightweight - Minimal dependencies
  • πŸ”§ Just works - Auto-generates secrets

For Organizations

  • πŸ“– Single source of truth - Official Lerian documentation
  • πŸš€ Faster onboarding - AI-assisted learning
  • βœ… Best practices - Built into examples
  • πŸ” Safe - Read-only, can't modify data

Ready to explore Lerian with AI? Install now and ask your first question! πŸš€

# That's it! Just add to your AI's config and restart
npx -y @lerianstudio/lerian-mcp-server

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured