mcpField
M
mcp-tiny

mcp-tiny

Local
github.com/codesparBusiness & Marketing275Updated 4w ago

About mcp-tiny

@codespar/mcp-tiny is an MCP server for Tiny ERP, covering products, orders, contacts, invoices, stock, and accounts payable and receivable. It is intended for users who want MCP clients to work with ERP data from this Brazilian system. Setup requires a Tiny API token.

Key features

  1. 01Product and sales order query tools
  2. 02Stock lookup and balance adjustment
  3. 03Warehouse and price list listing
  4. 04NF-e invoice creation, retrieval and email sending
  5. 05Accounts payable and receivable lookup
  6. 06Configuration through the TINY_API_TOKEN variable

Use cases

  1. 01Letting an AI assistant check stock and adjust balances
  2. 02Generating NF-e invoices from orders and emailing them
  3. 03Reviewing the status of receivables and payables

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-tiny": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-tiny"
],
"env": {
"TINY_API_TOKEN": "<TINY_API_TOKEN>"
}
}
}
}
Run commandnpx -y @codespar/mcp-tiny
Environment variables to set
TINY_API_TOKENSecretAPI key for tiny

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-tiny0.2.2

Tools

21

Saved tool list · updated 2w ago

ParameterTypeRequiredDescription
paginanumberNoPage number (default 1)
pesquisastringNoSearch term (name, code, or barcode)

Details

From the project README

@codespar/mcp-tiny

MCP server for Tiny ERP — products, orders, contacts, invoices, stock, and accounts payable

npm License: MIT

Quick Start

Claude Desktop

Add to ~/.config/claude/claude_desktop_config.json:

{
  "mcpServers": {
    "tiny": {
      "command": "npx",
      "args": ["-y", "@codespar/mcp-tiny"],
      "env": {
        "TINY_API_TOKEN": "your-token"
      }
    }
  }
}
Claude Code
claude mcp add tiny -- npx @codespar/mcp-tiny
Cursor / VS Code

Add to .cursor/mcp.json or .vscode/mcp.json:

{
  "servers": {
    "tiny": {
      "command": "npx",
      "args": ["-y", "@codespar/mcp-tiny"],
      "env": {
        "TINY_API_TOKEN": "your-token"
      }
    }
  }
}

Tools (21)

ToolPurpose
list_productsList products in Tiny ERP
get_productGet product details by ID
list_ordersList sales orders in Tiny ERP
get_orderGet order details by ID
list_contactsList contacts in Tiny ERP
get_contactGet contact details by ID
create_invoiceCreate a fiscal invoice (NF-e) from an order in Tiny
get_invoiceGet invoice details by ID
get_stockGet current stock for a product
list_accounts_payableList accounts payable in Tiny ERP
update_stockUpdate (adjust) product stock balance — credit or debit a quantity for a deposit
list_categoriesList product categories as a tree in Tiny ERP
list_warehousesList stock warehouses (depósitos) configured in Tiny ERP
list_price_listsList price lists (listas de preços) configured in Tiny ERP
update_order_statusChange a sales order's status — useful for cancelling or marking as approved/billed
list_invoicesList fiscal invoices (NF-e/NFC-e) in Tiny ERP
get_invoice_xmlGet the XML payload of an issued invoice (NF-e)
get_invoice_linkGet the DANFE PDF/link for an issued invoice
send_invoice_emailEmail an issued invoice to a recipient
list_accounts_receivableList accounts receivable in Tiny ERP
get_account_receivableGet a single accounts-receivable record by ID

Authentication

Tiny uses a token parameter passed in each request.

Sandbox / Testing

Tiny provides test access via account registration.

Get your credentials
  1. Go to Tiny ERP
  2. Create an account
  3. Navigate to API settings to generate a token
  4. Set the TINY_API_TOKEN environment variable

Environment Variables

VariableRequiredDescription
TINY_API_TOKENYesAPI token from Tiny ERP

Roadmap

v0.2 (planned)
  • create_product — Create a new product
  • update_product — Update product details
  • create_contact — Create a contact (customer/supplier)
  • update_contact — Update contact details
  • get_financial_summary — Get financial summary report
v0.3 (planned)
  • fiscal_reports — Generate fiscal reports (NF-e, NFS-e)
  • multi_company — Multi-company management

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.