simple_invoicing-mcp
Bridges to a simple_invoicing FastAPI backend, exposing invoice, product, ledger, inventory, buyer, and payment management as MCP tools for use with MCP-compatible clients.
README
simple_invoicing-mcp
MCP (Model Context Protocol) server that acts as a bridge to any deployed simple_invoicing FastAPI instance.
This server exposes the simple_invoicing REST API as MCP tools, making it usable directly from Claude Desktop, Cursor, or any other MCP-compatible client.
Prerequisites
- Node.js ≥ 18
- A running
simple_invoicingFastAPI backend - A long-lived bearer token (API token) for the backend
Setup
git clone https://github.com/nikhilb2/simple_invoicing-mcp.git
cd simple_invoicing-mcp
npm install
npm run build
Configuration
Set these environment variables before running:
export INVOICING_BASE_URL=https://your-invoicing-instance.example.com
export INVOICING_API_TOKEN=your-long-lived-bearer-token-here
Or copy .env.example to .env and fill in the values.
How to get an API token
- Open your
simple_invoicingbackend's Swagger UI (usually at/docs) - Use the
/api/auth/loginendpoint with your credentials - Copy the
access_tokenfrom the response - Use this token as
INVOICING_API_TOKEN
Running locally (dev)
npm run dev
This starts the MCP server on stdio using tsx.
MCP Client Configuration
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"invoicing": {
"command": "node",
"args": ["/absolute/path/to/simple_invoicing-mcp/dist/index.js"],
"env": {
"INVOICING_BASE_URL": "https://invoicing.example.com",
"INVOICING_API_TOKEN": "your-token-here"
}
}
}
}
Cursor
Add to .cursor/mcp.json in your project root:
{
"mcpServers": {
"invoicing": {
"command": "node",
"args": ["/absolute/path/to/simple_invoicing-mcp/dist/index.js"],
"env": {
"INVOICING_BASE_URL": "https://invoicing.example.com",
"INVOICING_API_TOKEN": "your-token-here"
}
}
}
}
Available Tools
Invoices
| Tool | Description | Parameters |
|---|---|---|
list_invoices |
List all invoices with optional filtering | invoice_type? ("sales"|"purchase"), skip?, limit? |
get_invoice |
Get a single invoice by ID | id (number) |
create_invoice |
Create a new invoice | data (object) |
get_invoice_pdf |
Get the PDF for an invoice | id (number) |
Products
| Tool | Description | Parameters |
|---|---|---|
list_products |
List all products | skip?, limit? |
get_product |
Get a single product by ID | id (number) |
create_product |
Create a new product | data (object) |
Ledgers
| Tool | Description | Parameters |
|---|---|---|
list_ledgers |
List all ledgers | skip?, limit? |
get_ledger_statement |
Get the statement for a ledger | id, start_date?, end_date? |
get_day_book |
Get the day book entries | start_date?, end_date? |
Inventory
| Tool | Description | Parameters |
|---|---|---|
list_inventory |
List all inventory items | skip?, limit? |
Buyers
| Tool | Description | Parameters |
|---|---|---|
list_buyers |
List all buyers | skip?, limit? |
get_buyer |
Get a single buyer by ID | id (number) |
Payments
| Tool | Description | Parameters |
|---|---|---|
list_payments |
List all payments | skip?, limit? |
create_payment |
Create a new payment | data (object) |
Development
npm install # Install dependencies (set NODE_ENV=development for devDeps)
npm run build # Compile TypeScript
npm test # Run tests
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.