About mcp-bling
mcp-bling is an MCP server for the Bling ERP, covering products, orders, contacts, invoices, stock, receivables, payables and webhooks. It is aimed at Brazilian businesses that want an AI assistant to handle routine ERP tasks.
Key features
- 01Product, category and contact management
- 02Sales and purchase order management
- 03NF-e and NFS-e invoice creation
- 04Stock queries and stock movements
- 05Accounts receivable and payable management
- 06Webhook subscription and removal
Use cases
- 01Create sales orders and issue NF-e invoices through an AI assistant
- 02Query and record warehouse stock movements
- 03Manage receivables, payables and payment methods
MCP support
This project is an MCP server that exposes 28 tools to MCP clients, covering Bling ERP products, orders, invoices, stock and finance endpoints.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
npx -y @codespar/mcp-blingBLING_ACCESS_TOKENSecretAPI key for blingLocal servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.
Tools
28Saved tool list · updated 2w ago
| Parameter | Type | Required | Description |
|---|---|---|---|
| code | string | No | Filter by product code |
| name | string | No | Filter by product name |
| page | number | No | Page number (default 1) |
| type | enum | No | P=Product, S=Service, K=KitP | S | K |
| limit | number | No | Items per page (default 100, max 100) |
Details
From the project README@codespar/mcp-bling
MCP server for Bling — ERP with products, orders, contacts, invoices, and stock management
Quick Start
Claude Desktop
Add to ~/.config/claude/claude_desktop_config.json:
{
"mcpServers": {
"bling": {
"command": "npx",
"args": ["-y", "@codespar/mcp-bling"],
"env": {
"BLING_ACCESS_TOKEN": "your-token"
}
}
}
}
Claude Code
claude mcp add bling -- npx @codespar/mcp-bling
Cursor / VS Code
Add to .cursor/mcp.json or .vscode/mcp.json:
{
"servers": {
"bling": {
"command": "npx",
"args": ["-y", "@codespar/mcp-bling"],
"env": {
"BLING_ACCESS_TOKEN": "your-token"
}
}
}
}
Tools (28)
| Tool | Purpose |
|---|---|
list_products | List products in Bling |
create_product | Create a product in Bling |
list_categories | List product categories in Bling |
create_category | Create a product category in Bling |
list_orders | List sales orders in Bling |
create_order | Create a sales order in Bling |
list_purchase_orders | List purchase orders (pedidos de compras) in Bling |
create_purchase_order | Create a purchase order (pedido de compra) in Bling |
list_contacts | List contacts (customers/suppliers) in Bling |
create_contact | Create a contact in Bling |
get_contact | Get a single contact by ID |
update_contact | Update an existing contact |
list_invoices | List fiscal invoices (NF-e) in Bling |
create_invoice | Create a fiscal invoice (NF-e) from an order |
send_invoice | Send/emit an already-created NF-e to SEFAZ |
create_service_invoice | Create a service invoice (NFS-e) in Bling |
get_stock | Get stock/inventory for a product |
update_stock | Update stock for a product at a warehouse |
create_stock_movement | Register a stock-in or stock-out movement for a product (alias of update_stock with explicit direction) |
list_warehouses | List warehouses (depósitos) in Bling |
create_warehouse | Create a warehouse (depósito) in Bling |
list_accounts_receivable | List accounts receivable (contas a receber) |
create_account_receivable | Create an account receivable (conta a receber) |
list_accounts_payable | List accounts payable (contas a pagar) |
create_account_payable | Create an account payable (conta a pagar) |
list_payment_methods | List payment methods (formas de pagamento) |
subscribe_webhook | Register a webhook (notificação) to receive Bling events |
unsubscribe_webhook | Remove a previously registered webhook |
Authentication
Bling uses OAuth2 Bearer tokens for authentication.
Sandbox / Testing
Bling provides a sandbox via the OAuth flow. Use test credentials for development.
Get your credentials
- Go to Bling Developer Portal
- Create an account
- Register an OAuth application and obtain an access token
- Set the
BLING_ACCESS_TOKENenvironment variable
Environment Variables
| Variable | Required | Description |
|---|---|---|
BLING_ACCESS_TOKEN | Yes | OAuth2 access token |
Roadmap
v0.3 (planned)
production_management— Manage production ordersmulti_store— Multi-store inventory (Mercado Livre, Shopee, Amazon integrations)list_nfce/create_nfce— Consumer invoice (NFC-e) helpers- Richer filters on
list_accounts_*(by payment status, contact)
Want to contribute? Open a PR or request a tool.
Links
Enterprise
Need governance, budget limits, and audit trails for agent payments? CodeSpar Enterprise adds policy engine, payment routing, and compliance templates on top of these MCP servers.
License
MIT
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.