Kelnix Receipt Mcp Api

by kelnixsolutions

256 downloads
Not rated
GitHub

About

Description: Turn any receipt into structured, accounting-ready JSON or clean Markdown with one API call. AI-powered vision

Details

Author
kelnixsolutions
Downloads
256
Categories
Developer Tools

- AI vision extraction of receipt data and line items
- Suggests GL accounts for accounting entries
- Credit-based pricing with free tier and subscriptions
- Crypto payments for 300+ coins
- MCP protocol compatible with Claude Desktop, Cursor
- Ready-to-use code for LangGraph, CrewAI, AutoGen

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Kelnix Receipt Mcp Api
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Register via POST /register_agent to get an API key and 50 free credits. Then call POST /tools/upload_and_process with a receipt image (costs 1 credit). When credits run low, buy more via Stripe or 300+ cryptocurrencies. The server can also be self-hosted with Python 3.11+.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "kelnix receipt mcp api": {
            "kelnix-receipt": {
                "command": "python",
                "args": [
                    "mcp_server.py"
                ],
                "env": {
                    "RECEIPT_MCP_API_KEY": "<YOUR_API_KEY>",
                    "ANTHROPIC_API_KEY": "<YOUR_ANTHROPIC_KEY>"
                }
            }
        }
    }
}

McpServers

{
    "kelnix-receipt": {
        "command": "python",
        "args": [
            "mcp_server.py"
        ],
        "env": {
            "RECEIPT_MCP_API_KEY": "<YOUR_API_KEY>",
            "ANTHROPIC_API_KEY": "<YOUR_ANTHROPIC_KEY>"
        }
    }
}

<p align="center">
Kelnix Receipt MCP
</p>

<h1 align="center">🧾 Kelnix Receipt MCP API</h1>

> Turn any receipt into structured, accounting-ready JSON with one API call. AI vision extracts everything β€” merchant, date, line items, tax, totals β€” and suggests GL accounts for instant bookkeeping.

Built for AI agents that automate expense management, accounts payable, and bookkeeping. No dashboard, no login β€” just an API that speaks MCP.

🎁 50 free credits on signup. No credit card required.

🌐 Live at receipt-mcp-api.kelnix.org β€” Interactive Docs

πŸ“§ Contact: info@kelnix.org | πŸ”— kelnix.org

---

⚑ Quickstart

1️⃣ Register (instant, no approval)

curl -X POST https://receipt-mcp-api.kelnix.org/register_agent \
  -H "Content-Type: application/json" \
  -d '{"agent_name": "my-expense-bot"}'

βœ… Returns your API key + 50 free credits.

2️⃣ Process a receipt (1 credit)

curl -X POST https://receipt-mcp-api.kelnix.org/tools/upload_and_process \
  -H "X-API-Key: rct_your-key-here" \
  -F "file=@receipt.jpg" \
  -F "mime_type=image/jpeg"

βœ… Returns structured JSON: vendor, date, line items, totals, tax, currency, confidence scores.

3️⃣ Buy more credits when you need them

# πŸ’³ With card (Stripe)
curl -X POST https://receipt-mcp-api.kelnix.org/billing/buy_credits \
  -H "X-API-Key: rct_your-key-here" \
  -H "Content-Type: application/json" \
  -d '{"credits": 1000}'

πŸͺ™ With crypto (300+ coins)

curl -X POST https://receipt-mcp-api.kelnix.org/billing/buy_credits_crypto \ -H "X-API-Key: rct_your-key-here" \ -H "Content-Type: application/json" \ -d '{"credits": 1000, "preferred_coin": "eth"}'

---

πŸ’° Pricing

Credit Packs

| Credits | Price | Per credit |
|---------|-------|-----------|
| 100 | $5 | $0.050 |
| 500 | $20 | $0.040 |
| 1,000 | $40 | $0.040 |
| 5,000 | $150 | $0.030 |
| 10,000 | $300 | $0.030 |

πŸ“… Subscriptions

| Plan | Credits/mo | Price |
|------|-----------|-------|
| πŸ†“ Free | 50 (signup) | $0 |
| ⭐ Basic | 200/mo | $15/mo |
| πŸš€ Pro | 2,000/mo | $99/mo |

πŸ”§ Tool Costs

| Tool | Cost |
|------|------|
| receipts.process | 1 credit |
| receipts.upload_and_process | 1 credit |
| accounting.suggest_gl_account | 1 credit |
| receipts.upload | πŸ†“ Free |
| receipts.get_markdown | πŸ†“ Free |
| credits.check_balance | πŸ†“ Free |
| receipts.list | πŸ†“ Free |

Full pricing also available at GET /pricing (no auth required).

---

πŸ“– API Reference

πŸ”§ Tools

| Method | Endpoint | Cost | Description |
|--------|----------|------|-------------|
| POST | /tools/upload_receipt | Free | Upload receipt image/PDF |
| POST | /tools/process_receipt | 1 credit | Extract structured data |
| POST | /tools/upload_and_process | 1 credit | Upload + process in one call (idempotent) |
| POST | /tools/get_receipt_markdown | Free | Get processed receipt as Markdown |
| POST | /tools/suggest_gl_account | 1 credit | AI-suggest GL account code |
| POST | /tools/check_balance | Free | Check credits and plan |
| POST | /tools/list_receipts | Free | List receipts with filters |
| POST | /tools/process_receipt_async | 1 credit | Queue async processing (requires Redis) |

πŸ’³ Billing

| Method | Endpoint | Description |
|--------|----------|-------------|
| POST | /billing/buy_credits | Buy credit pack (Stripe Checkout) |
| POST | /billing/subscribe | Subscribe to monthly plan |
| POST | /billing/buy_credits_crypto | Buy credits with 300+ cryptocurrencies |
| POST | /billing/check_payment_status | Check crypto payment status |
| GET | /billing/balance | Full balance with transaction history |

πŸ“‘ Discovery & Info

| Method | Endpoint | Description |
|--------|----------|-------------|
| GET | /mcp | Tool catalogue with schemas, examples, constraints |
| GET | /.well-known/mcp.json | MCP server discovery metadata |
| GET | /pricing | Public pricing (no auth) |
| GET | /legal/terms | Terms of Service |
| GET | /legal/privacy | Privacy Policy |
| GET | /integrations | Code snippets for LangGraph, CrewAI, AutoGen |
| GET | /docs | Interactive Swagger documentation |
| GET | /health | Health check |

πŸ” Authentication

All tool and billing endpoints require the X-API-Key header. Get a key via POST /register_agent.

When you run out of credits, paid endpoints return 402 with links to buy more:

{
  "error": "Insufficient credits: 0 available, 1 required.",
  "buy_credits_url": "/billing/buy_credits",
  "buy_credits_crypto_url": "/billing/buy_credits_crypto",
  "pricing_url": "/pricing",
  "cheapest_option": "100 credits for $5.00"
}

---

πŸ”Œ MCP Protocol

Works with Claude Desktop, Cursor, and any MCP-compatible client:

{
  "mcpServers": {
    "kelnix-receipt": {
      "command": "python",
      "args": ["/path/to/mcp_server.py"],
      "env": { "ANTHROPIC_API_KEY": "sk-ant-..." }
    }
  }
}

Also discoverable via /.well-known/mcp.json and listed on Smithery.ai.

---

🧩 Framework Integrations

GET /integrations returns ready-to-use code for:

| Framework | Integration |
|-----------|-------------|
| 🦜 LangGraph | Tool node integration |
| 🚒 CrewAI | BaseTool subclass |
| πŸ€– AutoGen | Registered function |
| 🐍 Raw Python | Full flow with httpx |

See examples/ directory for complete implementations.

---

πŸͺ™ Crypto Payments

Pay with BTC, ETH, SOL, USDC, USDT, DOGE, and 280+ more coins. Credits priced in USD, crypto amount locked at current rate for ~20 minutes.

curl -X POST https://receipt-mcp-api.kelnix.org/billing/buy_credits_crypto \
  -H "X-API-Key: rct_your-key-here" \
  -H "Content-Type: application/json" \
  -d '{"credits": 1000, "preferred_coin": "btc"}'

Returns payment address and exact amount. Credits granted automatically on confirmation.

---

πŸ› οΈ Self-Hosting

git clone https://github.com/kelnixsolutions/Kelnix-Receipt-MCP-API.git
cd Receipt-Accounting-Entry-MCP-Server
pip install -r requirements.txt
export ANTHROPIC_API_KEY=sk-ant-...
uvicorn app:app --host 0.0.0.0 --port 8000

Requires Python 3.11+. See deploy/setup.sh for production deployment with nginx, SSL, and systemd.

| Variable | Required | Description |
|----------|----------|-------------|
| ANTHROPIC_API_KEY | βœ… Yes | Anthropic API key for Claude vision |
| STRIPE_SECRET_KEY | ❌ No | Stripe secret key for billing |
| STRIPE_WEBHOOK_SECRET | ❌ No | Stripe webhook signing secret |
| NOWPAYMENTS_API_KEY | ❌ No | NOWPayments API key for crypto |
| REDIS_URL | ❌ No | Redis URL for async processing |

---

πŸ“œ License

MIT

---

<p align="center">
<b>Built with ❀️ by <a href="https://kelnix.org">Kelnix</a></b><br>
<sub>Powering the next generation of AI expense agents</sub>
</p>

No reviews yet β€” be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.