Skip to main content

docgen-mcp-server

Servidor MCP para ler, escrever, editar e renderizar documentos — DOCX, PDF, PPTX, XLSX, CSV, ODT — além de HTML/CSS → PDF/slides/imagem, diff, busca e empacotamento.

O que faz

Dá a um agente um conjunto de ferramentas de escritório sobre arquivos locais: extrair conteúdo como Markdown, gerar documentos e planilhas, renderizar HTML/CSS em PDF (Chromium), slides PowerPoint ou imagens, e operações utilitárias (patch, diff, busca, zip).

Tool O que faz
read_doc Lê .docx/.pdf/.odt/.pptx e devolve Markdown.
read_sheet Lê planilha (.xlsx/.csv) como Markdown ou JSON (range, sheetName).
read_archive Lista a árvore de um .zip (com filtro opcional).
write_doc Gera .docx ou .pdf a partir de Markdown ou blocos JSON; suporta template {{campo}}.
write_sheet Gera .xlsx ou .csv a partir de dados.
render_slide HTML/CSS → apresentação .pptx (um slide por <section>).
render_page HTML/CSS → PDF A4 (Chromium).
render_image HTML/CSS → imagem PNG/JPEG.
patch_doc Edita PDF (merge/split/watermark) e DOCX (replace_text).
patch_sheet Atualiza células de um .xlsx.
scan_dir Busca por regex em diretório/arquivos/ZIPs.
diff_file Diff de texto ou de planilhas.
bundle_zip Compacta uma lista de arquivos num ZIP.

Requisitos

  • Python 3.11+.
  • Chromium — necessário só para renderização a partir de HTML (render_page, render_image e write_doc em PDF). Instale uma vez com playwright install chromium. As tools de DOCX/XLSX/PPTX/leitura não precisam de navegador.

Instalação

# Executar direto, via uv:
uvx docgen-mcp-server

# Ou instalar no sistema:
uv tool install docgen-mcp-server
# (alternativa: pip install docgen-mcp-server)

# Uma vez, se for usar renderização HTML (PDF/imagem):
playwright install chromium

Configuração

Aponte o cliente MCP para o servidor. Ele roda sem nenhuma configuração obrigatória — não precisa de chave nem credencial:

{
  "mcpServers": {
    "docgen": {
      "command": "uvx",
      "args": ["docgen-mcp-server"],
      "env": {}
    }
  }
}

O mesmo bloco vale para Cursor, Claude Desktop, Claude Code e outras IDEs com MCP por stdio.

Variáveis de ambiente (todas opcionais)

Variável Efeito Default
DOCGEN_ALLOWED_ROOTS Pastas (separadas por vírgula) às quais limitar toda leitura/escrita. Fora delas → erro. sem restrição
DOCGEN_SCAN_MAX_MATCHES Teto de correspondências em scan_dir (1–50000). 500
DOCGEN_READ_SHEET_MAX_ROWS Teto de linhas em read_sheet sem maxRows (1–100000). 10000

Segurança

  • Path traversal bloqueado (rejeita ..) e limite de 50 MB por arquivo lido.
  • Allowlist opcional de raízes via DOCGEN_ALLOWED_ROOTS.
  • Escrita bloqueada em diretórios protegidos do sistema (C:\Windows, Program Files, /etc, /usr…) e em pastas sensíveis do home (.ssh, .aws, .gnupg, .kube, .docker…).

Metadata

Release files for docgen-mcp-server 0.2.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for docgen-mcp-server 0.2.4
File Size Uploaded Provenance
docgen_mcp_server-0.2.4.tar.gz 33.2 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for docgen-mcp-server 0.2.4
File Interpreter ABI Platform
docgen_mcp_server-0.2.4-py3-none-any.whl Python 3 none any Details

Total release size: 60.9 kB

Release files / docgen_mcp_server-0.2.4.tar.gz

Download URL docgen_mcp_server-0.2.4.tar.gz
Size 33.2 kB
Tags Source
SHA-256 checksum
How to use checksums
c404f301a35739966f027cf9cf2bef322b4a0c665a09562f6acfdf997946d2ab
BLAKE2b-256 checksum
How to use checksums
2a51a929be550225f822af64e5d9d18152d301fd8b7c4422cfa98678b56c6db2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

Release files / docgen_mcp_server-0.2.4-py3-none-any.whl

Download URL docgen_mcp_server-0.2.4-py3-none-any.whl
Size 27.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
469d0a382263d1195bc5c57f715a1c623a83904341ca558c0157bc15d5a2c8fa
BLAKE2b-256 checksum
How to use checksums
771068bc709e0c70c59ccb35f7437c946e0cd49128b831b5fc80c1b88f7d9d58
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

Security for docgen-mcp-server 0.2.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for docgen_mcp_server-0.2.4.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page