# Invoices Generator MCP Server
English | [简体中文](./README.md) | [繁體中文](./README_ZH-TW.md)
An MCP server for accessing Invoices Generator API.
## 🚀 Quick Start with EMCP Platform
**[EMCP](https://sit-emcp.kaleido.guru)** is a powerful MCP server management platform that allows you to quickly use various MCP servers without manual configuration!
### Quick Start:
1. 🌐 Visit **[EMCP Platform](https://sit-emcp.kaleido.guru)**
2. 📝 Register and login
3. 🎯 Go to **MCP Marketplace** to browse all available MCP servers
4. 🔍 Search or find this server (`bach-invoices_generator`)
5. 🎉 Click the **"Install MCP"** button
6. ✅ Done! You can now use it in your applications
### EMCP Platform Advantages:
- ✨ **Zero Configuration**: No need to manually edit config files
- 🎨 **Visual Management**: Easy-to-use GUI for managing all MCP servers
- 🔐 **Secure & Reliable**: Centralized API key and authentication management
- 🚀 **One-Click Install**: Rich selection of servers in MCP Marketplace
- 📊 **Usage Statistics**: Real-time service call monitoring
Visit **[EMCP Platform](https://sit-emcp.kaleido.guru)** now to start your MCP journey!
---
## Introduction
This is an MCP server for accessing the Invoices Generator API.
- **PyPI Package**: `bach-invoices_generator`
- **Version**: 1.0.0
- **Transport Protocol**: stdio
## 安装
### 从 PyPI 安装:
```bash
pip install bach-invoices_generator
```
### 从源码安装:
```bash
pip install -e .
```
## 运行
### 方式 1: 使用 uvx(推荐,无需安装)
```bash
# 运行(uvx 会自动安装并运行)
uvx --from bach-invoices_generator bach_invoices_generator
# 或指定版本
uvx --from bach-invoices_generator@latest bach_invoices_generator
```
### 方式 2: 直接运行(开发模式)
```bash
python server.py
```
### 方式 3: 安装后作为命令运行
```bash
# 安装
pip install bach-invoices_generator
# 运行(命令名使用下划线)
bach_invoices_generator
```
## Configuration
### API Authentication
This API requires authentication. Please set environment variable:
```bash
export API_KEY="your_api_key_here"
```
### Environment Variables
| Variable | Description | Required |
|----------|-------------|----------|
| `API_KEY` | API Key | Yes |
| `PORT` | N/A | No |
| `HOST` | N/A | No |
### Using with Cursor
Edit Cursor MCP config file `~/.cursor/mcp.json`:
```json
{
"mcpServers": {
"bach-invoices_generator": {
"command": "uvx",
"args": ["--from", "bach-invoices_generator", "bach_invoices_generator"],
"env": {
"API_KEY": "your_api_key_here"
}
}
}
}
```
### Using with Claude Desktop
Edit Claude Desktop config file `claude_desktop_config.json`:
```json
{
"mcpServers": {
"bach-invoices_generator": {
"command": "uvx",
"args": ["--from", "bach-invoices_generator", "bach_invoices_generator"],
"env": {
"API_KEY": "your_api_key_here"
}
}
}
}
```
## 可用工具
此服务器提供以下工具:
### `generate_invoice`
Quickly generate invoices through a REST API endpoint
**端点**: `GET /generate-invoice`
**参数**:
- `number` (string) *必需*: Represents the invoice number
- `buyer_company_name` (string) *必需*: The company name of the buyer entity. It can also be just a simple name of a person in case the buyer is not a company.
- `buyer_tax_number` (string): The tax number of the buyer's company. This field is not mandatory.
- `buyer_vat_number` (string): The VAT number of the buyer's company. This field is not mandatory.
- `buyer_address` (string): The address of the buyer entity. This field is not mandatory.
- `seller_company_name` (string) *必需*: The company name of the seller entity. This can be a person's name as well, in case the seller is not a company.
- `seller_tax_number` (string): The tax number of the seller's company. This field is not mandatory.
- `seller_vat_number` (string): The VAT number of the seller's company. This field is not mandatory.
- `seller_address` (string): The address of the seller. This field is not mandatory.
- `seller_bank_name` (string): The bank name of the account of the seller. This field is not mandatory.
- `seller_bank_account` (string): The bank account of the seller, where the payment will be made. This field is not mandatory.
- `services` (string) *必需*: A JSON representing the services, and their prices that will be written on the invoice. The JSON is using the following format: [{\\\\\\\"name\\\\\\\": \\\\\\\"My Service\\\\\\\", \\\\\\\"price\\\\\\\": \\\\\\\"30\\\\\\\", \\\\\\\"units\\\\\\\": \\\\\\\"Hours\\\\\\\", \\\\\\\"discount\\\\\\\": \\\\\\\"1000\\\\\\\", \\\\\\\"quantity\\\\\\\": \\\\\\\"1000\\\\\\\"}] The JSON is an array. Each element of the array represents a service. Each service is a JSON object with the following properties: nam
- `tax` (number) *必需*: The tax percentage aplied to the invoice.
- `shipping` (number): The amount to be paid for shipping. This field is not mandatory.
- `service_fee` (number): A service fee to add on the invoice. This field is not mandatory.
- `currency` (string) *必需*: The currency in which the prices will be shown on the invoices. It can be any 3 letter currency code. If the code is not recognized then it will be simply displayed directly.
- `date` (string) *必需*: The date of the invoice
- `due_date` (string): The due date of the invoice. This field is not mandatory.
- `logo` (string): A logo to display on the top left corner of the invoice. This field is not mandatory.
- `locale` (string): The language of the invoice. Accepted languages are: 'en' => 'English', 'nl' => 'Dutch', 'de' => 'German', 'es' => 'Spanish', 'fr' => 'French', 'it' => 'Italian', 'pl' => 'Polish', 'pt_BR' => 'Brazilian Portuguese', 'ro' => 'Romanian',
---
## Tech Stack
- **Transport Protocol**: stdio
- **HTTP Client**: httpx
## License
MIT License - See [LICENSE](./LICENSE) file for details.
## Development
This server is generated by [API-to-MCP](https://github.com/BACH-AI-Tools/api-to-mcp) tool.
Version: 1.0.0