MCP server for LedgerLens document extraction API
npm install ledgerlens-mcpUse LedgerLens document extraction directly in Claude and other AI assistants.
Add to your claude_desktop_config.json:
``json`
{
"mcpServers": {
"ledgerlens": {
"command": "npx",
"args": ["-y", "@ledgerlens/mcp-server"],
"env": {
"LEDGERLENS_API_KEY": "your-api-key"
}
}
}
}
`bash`
git clone https://github.com/0xShortx/ledgerlens
cd ledgerlens/mcp-server
npm install
npm run build
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 all supported document types and their schemas.
Get the extraction schema for a specific document type.
Check API health and account status.
- LEDGERLENS_API_KEY - Your LedgerLens API key (required)LEDGERLENS_API_URL
- - API base URL (default: https://api.ledgerlens.dev)
> "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.
Sign up at ledgerlens.dev/dashboard