# Invoice Downloader MCP Server (`zanzabar/invoice-downloader-mcp`) Actor

MCP server for AI agents to download invoices from cloud platforms (Vercel, DigitalOcean, Railway). Automates monthly invoice collection for accounting. Integrates with Claude, GPT, and other AI assistants via Model Context Protocol.

- **URL**: https://apify.com/zanzabar/invoice-downloader-mcp.md
- **Developed by:** [Anton D](https://apify.com/zanzabar) (community)
- **Categories:** AI, Developer tools, Open source
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Invoice Downloader MCP Server

MCP server that logs into SaaS platforms and downloads your invoices. Designed for AI agents to handle the tedious "download all my invoices for accounting" task.

### Supported platforms

- Vercel (personal + team)
- DigitalOcean
- Railway (personal + team)

More coming eventually. PRs welcome.

### MCP Tools

#### `list_invoices`

```json
{ "platform": "vercel" }
```

Returns all invoices with IDs, dates, amounts, status.

#### `download_invoice`

```json
{ "platform": "vercel", "invoiceId": "inv_abc123" }
```

Downloads the PDF, returns a URL to it.

#### `get_invoice_metadata`

Same as list but for one invoice. Useful if you just need to check something.

#### `list_platforms`

Shows which platforms are configured.

### Setup

#### 1. Add your credentials

```json
{
  "vercel": {
    "email": "you@example.com",
    "password": "your-password",
    "teamSlug": "your-team"
  },
  "digitalocean": {
    "email": "you@example.com",
    "password": "your-password"
  }
}
```

Only include platforms you actually use.

#### 2. Connect via MCP

```json
{
  "mcpServers": {
    "invoice-downloader": {
      "url": "https://YOUR_USERNAME--invoice-downloader-mcp.apify.actor/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_APIFY_TOKEN"
      }
    }
  }
}
```

#### 3. Tell your AI agent what to do

"Download all my Vercel invoices from last quarter" and let it figure out the tool calls.

### Pricing

- List invoices: $0.01 per platform
- Download invoice: $0.03 per PDF

### Limitations

**2FA breaks this.** The Actor logs in with email/password using a headless browser. If your account requires 2FA, it won't work. Options:

- Use a service account without 2FA
- Some platforms have API tokens (use those instead when I add support)

**Magic link logins** also don't work for obvious reasons.

**OAuth-only accounts** (like "Sign in with GitHub" on Vercel) need a password set.

### Security notes

- Credentials are used to log in, then discarded
- Nothing is stored beyond the session
- Downloaded PDFs go to Apify's key-value store (you control access)
- All connections are TLS

If you're paranoid (reasonable), run your own instance.

### Local dev

```bash
npm install
npm run dev
```

Test with MCP inspector:

```bash
APIFY_META_ORIGIN="STANDBY" ACTOR_WEB_SERVER_PORT=8080 npm run dev
```

### Issues

Something broken? Open an issue. Include which platform and what error you got.

# Actor input Schema

## `vercel` (type: `object`):

Login credentials for Vercel

## `digitalocean` (type: `object`):

Login credentials for DigitalOcean

## `railway` (type: `object`):

Login credentials for Railway

## `headless` (type: `boolean`):

Run browser in headless mode

## `proxyConfiguration` (type: `object`):

Proxy settings for web scraping

## Actor input object example

```json
{
  "headless": true
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("zanzabar/invoice-downloader-mcp").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("zanzabar/invoice-downloader-mcp").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call zanzabar/invoice-downloader-mcp --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=zanzabar/invoice-downloader-mcp",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/zKWOPZKBSxsZRajfN/builds/mgsgSUGK8cMu3krbC/openapi.json
