Invoice MCP Server
Click on "Install 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: InvoiceNinja MCP Server
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 installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/suriya-narayanan-2526/Custom_MCP_server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server