mcpField
M
mcp-bling

mcp-bling

Local
github.com/codesparBusiness & Marketing275Updated 4w ago

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

  1. 01Product, category and contact management
  2. 02Sales and purchase order management
  3. 03NF-e and NFS-e invoice creation
  4. 04Stock queries and stock movements
  5. 05Accounts receivable and payable management
  6. 06Webhook subscription and removal

Use cases

  1. 01Create sales orders and issue NF-e invoices through an AI assistant
  2. 02Query and record warehouse stock movements
  3. 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.

mcp.json · Universal config
{
"mcpServers": {
"codespar-mcp-bling": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-bling"
],
"env": {
"BLING_ACCESS_TOKEN": "<BLING_ACCESS_TOKEN>"
}
}
}
}
Run commandnpx -y @codespar/mcp-bling
Environment variables to set
BLING_ACCESS_TOKENSecretAPI key for bling

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@codespar/mcp-bling0.2.2

Tools

28

Saved tool list · updated 2w ago

ParameterTypeRequiredDescription
codestringNoFilter by product code
namestringNoFilter by product name
pagenumberNoPage number (default 1)
typeenumNoP=Product, S=Service, K=KitP | S | K
limitnumberNoItems 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

npm License: MIT

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)

ToolPurpose
list_productsList products in Bling
create_productCreate a product in Bling
list_categoriesList product categories in Bling
create_categoryCreate a product category in Bling
list_ordersList sales orders in Bling
create_orderCreate a sales order in Bling
list_purchase_ordersList purchase orders (pedidos de compras) in Bling
create_purchase_orderCreate a purchase order (pedido de compra) in Bling
list_contactsList contacts (customers/suppliers) in Bling
create_contactCreate a contact in Bling
get_contactGet a single contact by ID
update_contactUpdate an existing contact
list_invoicesList fiscal invoices (NF-e) in Bling
create_invoiceCreate a fiscal invoice (NF-e) from an order
send_invoiceSend/emit an already-created NF-e to SEFAZ
create_service_invoiceCreate a service invoice (NFS-e) in Bling
get_stockGet stock/inventory for a product
update_stockUpdate stock for a product at a warehouse
create_stock_movementRegister a stock-in or stock-out movement for a product (alias of update_stock with explicit direction)
list_warehousesList warehouses (depósitos) in Bling
create_warehouseCreate a warehouse (depósito) in Bling
list_accounts_receivableList accounts receivable (contas a receber)
create_account_receivableCreate an account receivable (conta a receber)
list_accounts_payableList accounts payable (contas a pagar)
create_account_payableCreate an account payable (conta a pagar)
list_payment_methodsList payment methods (formas de pagamento)
subscribe_webhookRegister a webhook (notificação) to receive Bling events
unsubscribe_webhookRemove 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
  1. Go to Bling Developer Portal
  2. Create an account
  3. Register an OAuth application and obtain an access token
  4. Set the BLING_ACCESS_TOKEN environment variable

Environment Variables

VariableRequiredDescription
BLING_ACCESS_TOKENYesOAuth2 access token

Roadmap

v0.3 (planned)
  • production_management — Manage production orders
  • multi_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

Markdown supported

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.