ledgerlens-mcp
v0.1.0
Published
MCP server for LedgerLens document extraction API
Maintainers
Readme
LedgerLens MCP Server
Use LedgerLens document extraction directly in Claude and other AI assistants.
Installation
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"ledgerlens": {
"command": "npx",
"args": ["-y", "@ledgerlens/mcp-server"],
"env": {
"LEDGERLENS_API_KEY": "your-api-key"
}
}
}
}From Source
git clone https://github.com/0xShortx/ledgerlens
cd ledgerlens/mcp-server
npm install
npm run buildAvailable Tools
extract_document
Extract structured data from any financial document.
extract_document(
file_url="https://example.com/invoice.pdf",
document_type="auto", # auto, invoice, receipt, purchase_order, bill_of_lading, bank_statement, custom
verify_math=true
)list_document_types
List all supported document types and their schemas.
get_extraction_schema
Get the extraction schema for a specific document type.
check_api_status
Check API health and account status.
Environment Variables
LEDGERLENS_API_KEY- Your LedgerLens API key (required)LEDGERLENS_API_URL- API base URL (default: https://api.ledgerlens.dev)
Example Usage in Claude
"Extract the data from this invoice: [paste URL or upload file]"
Claude will use the extract_document tool to process the document and return structured data with verified calculations.
Get Your API Key
Sign up at ledgerlens.dev/dashboard
