Billing Automation MCP
Allows fetching emails, retrieving attachments, and sending emails for invoice ingestion and communication.
Allows downloading and uploading files to Google Drive for storing invoice attachments.
Allows creating and updating Google Sheets for tracking and organizing invoice data.
Allows listing and creating invoices in Xero for accounting synchronization.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Billing Automation MCPFetch all invoices from my Gmail from November 2025"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Billing Invoice Automation MCP
A CLI utility that creates and configures a Composio MCP server for billing automation. Generate MCP URLs for your IDE (VSCode, Claude Desktop) to automate invoice generation, expense tracking, travel bill organization, and payment via natural language chat.
Features
Email Invoice Ingestion: Fetch invoices from Gmail and Outlook via natural language
Spreadsheet Tracking: Store and organize invoice data in Google Sheets
Travel Bill Organization: Categorize and track travel expenses
Invoice Generation: Create and send invoices via email
Xero Integration: Sync invoice data with Xero accounting
Related MCP server: FacturaHub MCP Server
Prerequisites
Node.js 18.0.0 or higher
A Composio account and API key
Quick Start
Step 1: Clone and Install
git clone <repository-url>
cd Billing-Automation
npm install
npm run buildStep 2: Configure Environment
Create a .env file in the root directory:
COMPOSIO_API_KEY=your_api_key_hereGet your API key from the Composio Dashboard.
Step 3: Create MCP Server
node dist/cli.js setupSave the Server ID from the output (e.g., d923db26-cabf-480b-9fe2-b3445e4988c1).
Step 4: Generate MCP URL
node dist/cli.js generate your@email.com --server-id your_server_idThis outputs your MCP URL and IDE configuration snippets.
Step 5: Configure Your IDE
Copy the generated configuration to your IDE:
VSCode → .vscode/mcp.json
{
"mcpServers": {
"billing-agent": {
"type": "http",
"url": "https://backend.composio.dev/v3/mcp/YOUR_SERVER_ID?user_id=your@email.com",
"headers": {
"x-api-key": "YOUR_COMPOSIO_API_KEY"
}
}
}
}Claude Desktop → ~/Library/Application Support/Claude/claude_desktop_config.json (macOS)
{
"mcpServers": {
"billing-agent": {
"type": "http",
"url": "https://backend.composio.dev/v3/mcp/YOUR_SERVER_ID?user_id=your@email.com",
"headers": {
"x-api-key": "YOUR_COMPOSIO_API_KEY"
}
}
}
}Step 6: Restart Your IDE
Restart VSCode or Claude Desktop to load the new MCP configuration.
Example Chat Interactions
Once configured, you can interact with the billing agent via natural language:
Fetch invoices from email:
"Fetch all invoices from my Gmail from November 2025"
Track expenses in a spreadsheet:
"Create a Google Sheet to track my invoices and add the ones you just found"
Organize travel expenses:
"Find all my travel receipts from the last month and categorize them by type"
Generate and send an invoice:
"Create an invoice for $500 for consulting services and send it to client@example.com"
Sync with Xero:
"List my recent invoices from Xero and check if any are overdue"
Authentication
When you first use a tool that requires authentication (e.g., Gmail, Google Sheets), the MCP server will prompt you with an OAuth authorization URL. Click the link to authenticate, and the connection will be saved for future use.
Configured Tools
Toolkit | Tools |
Gmail |
|
Google Sheets |
|
Google Drive |
|
Outlook |
|
Xero |
|
Troubleshooting
"COMPOSIO_API_KEY environment variable is required"
Make sure you've created a .env file with your API key.
"Invalid Composio API key"
Verify your API key is correct in the Composio Dashboard.
IDE not connecting to MCP server
Verify the URL and API key in your IDE configuration
Restart your IDE after updating the configuration
Check that your Composio API key has the necessary permissions
License
This project is under MIT license.
This server cannot be deployed
Maintenance
Related MCP Connectors
Invoicing you drive by talking to your AI: log time, raise invoices and track what's owed via MCP.
Send invoices from Claude and ChatGPT. One sentence becomes a PDF with a Stripe payment link.
Let your AI send invoices and take payment — card or ACH. Free.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables the generation of professional PDF invoices and their distribution via email using customizable templates. It allows users to create, manage, and send invoices with standard business fields like tax rates and line items through natural language.36 npm2MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to manage business operations including invoicing, WooCommerce syncing, expense tracking, POS, inventory, and team management through natural language.31 npm2MIT
- AlicenseNot gradedqualityDmaintenanceMCP server enabling AI assistants to manage invoices, contacts, products, and other accounting data through the Bukku API.6MIT
- FlicenseNot gradedqualityBmaintenanceMCP server that gives AI agents read access to subscription/SaaS invoice history, ingested from Gmail and stored in Postgres and MongoDB, with tools for listing invoices, retrieving PDFs, and summarizing spend.-