Invoice MCP Server
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., "@Invoice MCP ServerCreate an invoice for Acme Corp for 2 laptops at $45000 each."
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.
Invoice MCP Server
A standalone Model Context Protocol (MCP) Server for the Invoice Generator application. This server bridges an AI Client (like Claude, Cursor, ChatGPT) with an existing Express.js/Supabase backend, allowing the AI to authenticate and interact with invoices.
Features
login: Authenticates against the backend and stores the JWT securely in-memory.
create_invoice: Searches for a client by name and creates a new invoice for them.
download_invoice: Retrieves the download link/stream for a specific invoice.
Related MCP server: Outvoicer MCP
Setup and Installation
Install dependencies:
npm installEnvironment Variables: Ensure you have a
.envfile at the root of the project with the following variable:API_BASE_URL=https://suriyainvoicegenerator.inReplace the URL with your actual backend URL.
Running Locally
To run the server locally for testing:
npm startNote: The server uses stdio for MCP communication, so it will wait for stdin messages rather than acting as an HTTP server.
Registering the MCP Server
You can register this MCP server in your AI client. For example, in Cursor, go to Settings -> Features -> MCP, and add a new server with the following command:
node /absolute/path/to/invoice-mcp-server/src/index.js(Make sure to use the absolute path to your src/index.js file.)
Architecture & Folder Structure
mcp-server/
├── src/
│ ├── index.js # Entry point, sets up stdio transport
│ ├── server.js # Registers MCP server and routes tool requests
│ ├── config/
│ │ └── env.js # Environment variable configuration (dotenv & Zod)
│ ├── services/
│ │ └── api.js # Axios client and in-memory session manager
│ ├── tools/
│ │ ├── login.js # Tool for backend authentication
│ │ ├── createInvoice.js # Tool for creating an invoice
│ │ └── downloadInvoice.js # Tool for downloading an invoice
│ ├── middleware/
│ │ └── errorHandler.js # Centralized error handler returning MCP errors
│ └── utils/
│ ├── logger.js # Basic logger (hides sensitive data)
│ └── response.js # MCP response formatting utilities
├── package.json
├── .env
└── README.mdSample Prompts
Once registered with your AI client, try prompts like:
"Login to the invoice generator with email user@example.com and password mypassword."
"Create an invoice for Acme Corp with 2 Laptops at 45000 each. The invoice date is today and due in 30 days."
"Download invoice number 12345 and give me the link."
This server cannot be deployed
Maintenance
Related MCP Connectors
Document sharing, invoicing, and personal finance platform. 15+ AI tools via OAuth 2.1.
Free invoice drafts, templates and direct PDF generation for AI agents. No account needed.
Make PDF invoices from your AI chat: clients, numbering, VAT, overdue reports. All data is local.
Create PDF invoices from your AI chat: clients, numbering, VAT, overdue reports. All data is local.
Related MCP Servers
- AlicenseBqualityDmaintenanceMCP server for Invoice Ninja v5 API. Enables AI assistants to manage clients, invoices, quotes, payments, and time tracking through natural language.3226 npm2MIT
- -licenseNot gradedqualityBmaintenanceEnables AI assistants to prepare and create invoices via Outvoicer's invoicing platform using Streamable HTTP MCP.-
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to create and manage e-invoices through natural language, supporting EU compliance formats like ZUGFeRD and XRechnung, as well as US plain PDF invoices.7-
- FlicenseNot gradedqualityBmaintenanceEnables MCP-capable LLMs to securely autofill and save invoices on Digital Invoicing Software on behalf of tenants, with multi-tenant authentication and session management.-