MCP Fiorilli Transparencia

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.

Category
Visit Server

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 (sem prompts/* e resources/*).
  • 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_portal endurecido para publico:
    • so altera configuracao se MCP_ALLOW_CONFIG_UPDATE=true.

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 /mcp
  • GET /mcp
  • DELETE /mcp
  • GET /health

Deploy no Render

  • Build command: npm install && npm run build
  • Start command: node dist/index.js
  • Env obrigatorias:
    • MCP_TRANSPORT=http
    • PORT (Render injeta automaticamente)
  • MCP_ALLOW_CONFIG_UPDATE=false (recomendado)
    • MCP_ALLOWED_HOSTS com 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 content traz 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

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

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.

Official
Featured
TypeScript
Kagi MCP Server

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.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

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.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured