MCP Fiorilli Transparencia
MCP server for accessing transparency data from Fiorilli SCPI portals, specifically for Paraguaçu Paulista, enabling queries on expenses, revenues, bids, contracts, transfers, personnel, and official diary.
README
MCP Fiorilli Transparencia
Servidor MCP para portais de transparencia com Fiorilli SCPI.
O que mudou (v3)
- Resposta padrao em JSON estruturado (
structuredContent) em todas as tools. - Paginacao/chunking para evitar truncamento e travamento de contexto.
- Indexacao local do Diario Oficial com SQLite FTS5.
- Busca do Diario baseada em indice persistente, com indexacao incremental por lotes.
- Arquitetura MCP em
tools-only(semprompts/*eresources/*). analise_*removidas da superficie MCP; analises devem ser compostas no cliente consumidor.- Filtros locais em todas as tools de dados:
_pagina,_por_pagina,_cursor_busca,_campos,_ordenar_por,_ordem
- Suporte a transporte MCP por HTTP (Streamable HTTP) para deploy publico no Render.
- Portal fixo em Paraguaçu Paulista por padrão.
configurar_portalendurecido para publico:- so altera configuracao se
MCP_ALLOW_CONFIG_UPDATE=true.
- so altera configuracao se
Ferramentas
Conjunto atual: tools de despesas, receitas, licitacoes/contratos, transferencias, pessoal e diario oficial.
Instalacao
npm install
npm run build
Variaveis de ambiente
# Transporte MCP: stdio (default) ou http
MCP_TRANSPORT=stdio
# Porta/host para modo HTTP
PORT=3000
HOST=0.0.0.0
# Seguranca para servidor publico
MCP_ALLOW_CONFIG_UPDATE=false
MCP_ALLOWED_HOSTS=paraguacu-transparente-mcp.onrender.com,localhost,127.0.0.1
# Tuning de payload
MCP_DEFAULT_PAGE_SIZE=100
MCP_MAX_PAGE_SIZE=500
MCP_TEXT_BLOCK_CHARS=12000
MCP_TOOLS_LIST_PAGE_SIZE=200
# Tuning do Diario Oficial
MCP_DATA_DIR=/var/data/paraguacu-mcp
MCP_DIARIO_SCAN_BATCH_SIZE=8
MCP_DIARIO_SCAN_MAX_BATCHES=4
MCP_DIARIO_SCAN_TIME_BUDGET_MS=70000
Execucao local
# stdio (desktop clients)
npm start
# HTTP (Render / publico)
MCP_TRANSPORT=http npm start
Endpoints no modo HTTP:
POST /mcpGET /mcpDELETE /mcpGET /health
Deploy no Render
- Build command:
npm install && npm run build - Start command:
node dist/index.js - Env obrigatorias:
MCP_TRANSPORT=httpPORT(Render injeta automaticamente)
MCP_ALLOW_CONFIG_UPDATE=false(recomendado)MCP_ALLOWED_HOSTScom o dominio publico do Render
- Para manter o indice do Diario entre deploys/restarts, monte um disco persistente
no path usado por
MCP_DATA_DIR.
Notas de output
- O campo
contenttraz preview textual curto. - O payload completo da resposta fica em
structuredContent. - Para resultados grandes, use
next_cursor(ou_pagina) para navegar sem perder dados.
Licenca
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.