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.
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
- 🔧 Makefile Commands -
make helpfor all commands - 🧪 Testing Guide
- 📊 Architecture
- 🔐 Security
🛠️ 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?
-
Check Node.js version: Requires Node.js 18+
node --version # Should show v18 or higher -
Test manually:
npx -y @lerianstudio/lerian-mcp-server -
Check secrets:
ls -la ~/.lerian/secrets.json
Tool Not Responding?
- Restart your AI assistant after changing configuration
- Verify MCP is enabled in your AI assistant's settings
- 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:
- Infrastructure - Config, logging, security
- Transport - MCP stdio protocol
- Protocol - Message handling, cursors
- Client Adaptation - Response formatting
- Tool - Single unified lerian tool
- 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
npxand 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
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。