Back to Home
DanielRudnick icon

mcp-tiny-erp-server

by DanielRudnick

Overview

The server acts as an MCP (Model Context Protocol) gateway for the Tiny ERP API, exposing its functionalities as tools for AI agents or other clients.

Installation

Run Command
python -m uvicorn src.main:app --reload

Environment Variables

  • TINY_API_BASE_URL
  • TINY_API_TIMEOUT
  • ENVIRONMENT
  • DEBUG
  • PORT
  • CORS_ORIGINS
  • TINY_API_TOKEN

Security Notes

CRITICAL: The server explicitly decodes JWT tokens without signature validation, stating 'Decodifica JWT manualmente (sem validação de assinatura)'. This means an attacker could forge JWTs containing any tenant_id and tiny_token, bypassing authentication if they know the payload structure. HIGH: CORS is set to `allow_origins=['*']`, which is a significant security risk for production environments as it allows any domain to make cross-origin requests. MEDIUM: The `mcp_filtro_clientes_excel` tool relies on a hardcoded CSV path (`/mnt/user-data/uploads/contatos_teste.csv`), which could lead to file system vulnerabilities if not properly secured.

Similar Servers

Stats

Interest Score9
Security Score3
Cost ClassLow
Avg Tokens1
Stars1
Forks0
Last Update2025-12-16

Tags

MCPTiny ERPAPI GatewayFastAPIPython