Invoice Collector MCP

Invoice Collector MCP

by devaditya

Automates invoice collection from Razorpay, PayPal, and Stripe. Generates PDF/JSON exports, emails reports automatically, and supports AI-ready MCP mo...

2 runs
1 users
Try This Actor

Opens on Apify.com

About Invoice Collector MCP

Automates invoice collection from Razorpay, PayPal, and Stripe. Generates PDF/JSON exports, emails reports automatically, and supports AI-ready MCP mode for agent workflows.

What does this actor do?

Invoice Collector MCP is a web scraping and automation tool available on the Apify platform. It's designed to help you extract data and automate tasks efficiently in the cloud.

Key Features

  • Cloud-based execution - no local setup required
  • Scalable infrastructure for large-scale operations
  • API access for integration with your applications
  • Built-in proxy rotation and anti-blocking measures
  • Scheduled runs and webhooks for automation

How to Use

  1. Click "Try This Actor" to open it on Apify
  2. Create a free Apify account if you don't have one
  3. Configure the input parameters as needed
  4. Run the actor and download your results

Documentation

πŸš€ InvoiceCollector MCP β€” Unified Invoice Automation for Razorpay, PayPal & Stripe InvoiceCollector MCP is a production-grade automation tool designed for businesses, accountants, SaaS vendors, and AI agents who need a fully automated pipeline to fetch, organize, export, and deliver invoices from multiple payment platforms. It works in two powerful modes: - NORMAL MODE β†’ Bulk-fetch invoices (PDF/JSON) from selected platforms - MCP MODE β†’ Runs as a WebSocket MCP server so AI agents (ChatGPT, Claude, LangChain, custom tools) can call it programmatically Whether you're reconciling payments, filing GST, preparing financial reports, or integrating AI workflows β€” this Actor gives you a complete, automated invoice pipeline. --- # ⭐ Why This Actor Exists Modern businesses use multiple payment platforms. But invoices are scattered, inconsistent, and hard to download in bulk. πŸ›‘ Razorpay doesn’t provide unified bulk exports πŸ›‘ Stripe splits charges, payments, and invoices across APIs πŸ›‘ PayPal separates Invoicing API vs Reporting API πŸ›‘ No single dashboard fetches everything πŸ›‘ No AI-ready automation framework existed… until now InvoiceCollector MCP solves this. It provides: - Unified fetch across platforms - Bulk PDF download - JSON summaries for missing PDFs - Optional email delivery - MCP server automation for AI tools --- # ✨ Key Features ### βœ… 3-in-1 Platform Support No scraping β€” 100% official API integrations. | Platform | Fetch Type | PDF Support | Notes | |----------|------------|-------------|-------| | Razorpay | Payments / Invoices | βœ” Yes | Fastest, stable | | PayPal | Invoicing API + Reports | βœ” Yes | Thick records | | Stripe | Charges + Hosted Invoices | βœ” Yes | Best metadata | --- ### βœ… Full Invoice Automation Pipeline βœ” Authenticate βœ” Fetch date-range transactions βœ” Download invoice PDFs βœ” Save JSON summaries when PDFs missing βœ” Upload results to KV store βœ” (Optional) Email all invoices βœ” Return unified flattened output --- ### βœ… AI Automation Ready (MCP Mode) Run as a WebSocket MCP server the same way ChatGPT tools work: - listPlatforms - validateCredentials - collectInvoices Perfect for: - Accounting bots - ERP automations - AI assistants - Internal finance agents --- ### βœ… Zero UI Scraping β†’ Fully Compliant All integrations use official APIs, making it: - Faster - More reliable - Safe for enterprise - Allowed by payment providers --- ### βœ… Built for Pro Use - Modular adapters - Scalable architecture - Clean SDK-based structure - Extensible for future platforms --- # 🧠 Who This Actor Is For - Founders / Startups - Fintech apps - Accounting firms - CAs & auditors - No-code automation builders - ERP developers - AI agent engineers - Automation enthusiasts Anyone dealing with Razorpay, PayPal, or Stripe invoices β€” this is for you. --- # πŸ”§ Quick Start (Normal Mode) ### 🟦 Example INPUT json { "mode": "normal", "platforms": ["razorpay", "stripe"], "dateFrom": "2024-01-01", "dateTo": "2024-12-31", "emailTo": "yourname@example.com" } --- # πŸ” Environment Variables (Required) Set these in Apify β†’ Actor Settings β†’ Environment variables: | Variable | Purpose | |---------|---------| | RAZORPAY_API_KEY | Razorpay access key | | RAZORPAY_API_SECRET | Razorpay secret key | | PAYPAL_CLIENT_ID | PayPal REST API | | PAYLAY_SECRET | PayPal REST API | | STRIPE_API_KEY | Stripe secret key | | SMTP_USER | Gmail address / SMTP user | | SMTP_PASS | Gmail App Password / SMTP key | | SMTP_HOST | Optional β€” default smtp.gmail.com | | SMTP_PORT | Optional β€” default 587 | --- # πŸ“€ Output Example json { "mode": "normal", "processedPlatforms": "razorpay, stripe", "successCount": "2", "errorCount": "0", "totalInvoices": "14", "pdfFiles": "inv001.pdf, inv002.pdf", "jsonFiles": "invoice_summary_12.json", "emailSent": "yes", "emailTo": "yourname@example.com" } --- # πŸ“¨ Email Delivery If emailTo is provided and invoices were fetched: βœ” PDFs and JSON summaries are attached βœ” Message is delivered using SMTP/Gmail βœ” Skipped automatically if SMTP not configured --- # πŸ€– MCP Mode β€” For AI Agents Turn the Actor into a WebSocket automation backend. ### 🟦 Example MCP Input json { "mode": "mcp", "mcpPort": 8080 } Server launches at: ws://localhost:8080 --- ### Supported Commands (MCP) | Command | Description | |---------|-------------| | listPlatforms | Returns: razorpay, paypal, stripe | | validateCredentials | Ensures API keys work | | collectInvoices | Triggers normal invoice flow | Perfect for: - ChatGPT MCP tools - Claude MCP tools - LangChain tool wrappers - Internal automation APIs --- # πŸ“¦ Storage Usage The Actor stores: πŸ“ Key-value store - PDF invoices - JSON summaries - Error logs πŸ“ Dataset (UI preview) - Flattened summary table of the run --- # βš™ Architecture Overview main.js β”œβ”€β”€ normal mode β†’ orchestrator.js └── mcp mode β†’ mcp/server.js orchestrator.js β”œβ”€β”€ connectorManager.js β”œβ”€β”€ email/sendEmail.js └── adapters/ β”œβ”€β”€ razorpay β”œβ”€β”€ paypal └── stripe Adapters follow a strict format: - connect(credentials) - bulkDownload(connection, filters) This ensures the Actor remains easy to extend. --- # 🎯 Limitations - Rate limits apply based on API providers - Some transactions do not have PDFs - Email requires valid SMTP / Gmail App Password - MCP mode requires an MCP-enabled client --- # 🏁 Final Notes This Actor is built to be: - Reliable in production - Extensible for more payment gateways - Fast and stable - AI-automation-ready - Useful for accounting + fintech workflows If you'd like support for Cashfree, RazorpayX, Zoho Books, or Stripe Checkout logs β€” just ask!

Common Use Cases

Market Research

Gather competitive intelligence and market data

Lead Generation

Extract contact information for sales outreach

Price Monitoring

Track competitor pricing and product changes

Content Aggregation

Collect and organize content from multiple sources

Ready to Get Started?

Try Invoice Collector MCP now on Apify. Free tier available with no credit card required.

Start Free Trial

Actor Information

Developer
devaditya
Pricing
Paid
Total Runs
2
Active Users
1
Apify Platform

Apify provides a cloud platform for web scraping, data extraction, and automation. Build and run web scrapers in the cloud.

Learn more about Apify

Need Professional Help?

Couldn't solve your problem? Hire a verified specialist on Fiverr to get it done quickly and professionally.

Find a Specialist

Trusted by millions | Money-back guarantee | 24/7 Support