Doc-Studio
Searches and verifies scholarly papers through arXiv as part of the citation engine.
Scans Express route definitions in the codebase to generate API documentation and drift manifests.
Scans FastAPI route definitions in the codebase to generate API documentation and drift manifests.
Generates and compiles LaTeX manuscripts with Q1 templates for IEEE, Elsevier, and Springer LNCS, including BibTeX/Biber support and ChkTeX typography checks.
Reads exported .bib files from Mendeley Reference Manager for citation verification and bibliography assembly.
Scans NestJS route definitions in the codebase to generate API documentation and drift manifests.
Scans Prisma schema files to build traceability manifests and detect documentation drift after schema changes.
Scans OpenAPI/Swagger JSON specifications to generate API documentation and traceability manifests.
Generates and compiles Typst manuscripts using the modern Typst style profile as an alternative to LaTeX.
Reads exported .bib files from Zotero for citation verification and bibliography assembly.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
📄 DOC-STUDIO
100% Free, Zero-Signup, Portable Precision Document, Academic Thesis, Q1 Journal Paper, Zero-Overlap Draw.io Diagram & Offline Prose QA MCP Studio
Why Doc-Studio • Architecture • Key Features • Quickstart • 12 MCP Tools • Style Profiles & Sources • CLI Reference • Contributing
AI-Assisted Documentation: Dokumentasi README.md ini disusun bersama AI berdasarkan struktur kode aktual, modul MCP, profil gaya, template, dan rangkaian pengujian terverifikasi di dalam repositori ini.
100% Free, Zero-Signup, Local-First Publishing Studio: Doc-Studio mengubah AI coding agent (Antigravity, Claude Code, Cursor, Codex, atau klien MCP lainnya) menjadi mesin penulisan dokumen dan diagram teknis berpresisi tinggi untuk Proposal, Laporan Teknis, Skripsi/Tugas Akhir, Dokumentasi Arsitektur, hingga Paper Jurnal Q1 (IEEE, Elsevier, Springer LNCS). Seluruh pipeline berjalan lokal di mesinmu tanpa API key berbayar, tanpa unggah naskah ke server pihak ketiga, dan tetap sinkron otomatis setiap kali codebase mengalami perombakan.
🎯 Why Doc-Studio?
Menulis dokumen formal dan diagram teknis berbantu AI biasanya gagal di 5 titik krusial:
Diagram Berantakan & Salah Tunjuk: Garis panah tumpang tindih menembus kotak, relasi ERD hanya menunjuk kotak tabel (bukan baris kolom PK -> FK spesifik), atau DFD melanggar aturan aliran data baku.
Formatting & Layout Rapuh: Margin meleset, font tidak konsisten, caption gambar terpisah ke halaman berikutnya, tabel terbelah di tengah baris, serta Daftar Isi / Daftar Gambar / Daftar Tabel tidak sinkron dengan nomor halaman PDF.
Bahasa Kaku & Tidak Baku: Naskah penuh klise AI (AI-slop), kata tidak baku KBBI/EYD V pada dokumen Bahasa Indonesia, atau grammar halus & typo tipografi LaTeX pada paper Q1 Bahasa Inggris.
Sitasi Halusinasi: AI sering mengarang DOI, tahun terbit, atau mengutip paper yang sudah diretraksi (retracted).
Doc-Drift Setelah Refactor: Ketika skema database atau endpoint API dirombak, diagram dan bab dokumentasi cepat tertinggal dari implementasi nyata.
Doc-Studio menyelesaikan kelimanya melalui satu plugin MCP portable (12 native tools + integrasi Repomix MCP & Official @drawio/mcp) serta CLI 1-perintah lintas OS.
Related MCP server: sci-forge
🏗️ System Architecture & Closed-Loop Pipeline
flowchart TB
classDef inputNode fill:#0f172a,stroke:#38bdf8,stroke-width:2px,color:#f8fafc
classDef syncNode fill:#1e1b4b,stroke:#818cf8,stroke-width:2px,color:#f8fafc
classDef diagNode fill:#064e3b,stroke:#34d399,stroke-width:2px,color:#f8fafc
classDef docNode fill:#312e81,stroke:#a78bfa,stroke-width:2px,color:#f8fafc
classDef qaNode fill:#78350f,stroke:#fbbf24,stroke-width:2px,color:#fffbeb
classDef outNode fill:#14532d,stroke:#22c55e,stroke-width:2.5px,color:#f0fdf4
subgraph S1 ["1. Grounding & Source of Truth"]
direction LR
IN1[("Codebase\nPrisma / SQL / API")]:::inputNode
IN2[("References\nMendeley .bib / PDF")]:::inputNode
SYNC["Project Sync & Repomix\nTraceability Manifest + Drift Diff"]:::syncNode
CITE["Zero-Signup Citation Engine\nCrossref + OpenAlex + arXiv"]:::syncNode
IN1 --> SYNC
IN2 --> CITE
end
subgraph S2 ["2. Zero-Overlap Visual & Diagram Engine"]
direction LR
ELK["ELK Sugiyama Orthogonal\nFlowchart • Arch • DFD • CD"]:::diagNode
ERD["Row-Level ERD & Solvers\nExact PK->FK • Sequence • Swimlane"]:::diagNode
FIG["Q1 Scientific Figures\nMatplotlib Okabe-Ito Vector"]:::diagNode
DVAL{"Geometric QA\nOverlap == 0?"}:::qaNode
ELK --> DVAL
ERD --> DVAL
FIG --> DVAL
end
subgraph S3 ["3. Precision Document Assembly"]
direction LR
PROF["Adaptive Style Profile\nacademic-proposal • academic-thesis\nieee-q1 • elsevier-q1 • typst"]:::docNode
DOCX["Word Engine + docxtpl\nWord COM / LibreOffice\nAuto TOC • LOF • LOT"]:::docNode
TEX["Q1 LaTeX & Typst\nTinyTeX • BibTeX/Biber\nZero Overfull Hbox"]:::docNode
PROF --> DOCX
PROF --> TEX
end
subgraph S4 ["4. Multi-Layer Offline QA Gate"]
direction LR
PROSE["Offline Prose & Language QA\nVale (KBBI + Hunspell id_ID)\nwrite-good • proselint • Harper • ChkTeX"]:::qaNode
PDFQA["PyMuPDF Visual PDF QA\nMargins • Fonts • DPI • Orphans\nPage PNG Visual Audit"]:::qaNode
PASS{"All Gates\n100% Pass?"}:::qaNode
PROSE --> PASS
PDFQA --> PASS
end
FINAL(["Publication-Ready Bundle\n.docx + .pdf + Editable .drawio + Vector SVG/PDF"]):::outNode
SYNC --> ELK
SYNC --> ERD
SYNC --> PROF
CITE --> PROF
DVAL -- "Pass (PNG/SVG/PDF)" --> PROF
DVAL -. "Auto-Reroute / Fix" .-> ELK
DOCX --> PROSE
DOCX --> PDFQA
TEX --> PROSE
TEX --> PDFQA
PASS -- "Verified" --> FINAL
PASS -. "Polish & Rebuild" .-> PROF🌟 Key Features
📐 Zero-Overlap Draw.io Diagram Engine: Routing ortogonal Sugiyama via
elkjs, snapping sudut rhombus, solver deterministik Sequence Diagram (sd) & Swimlane (ufd/swimlane), validasi geometris anti-tabrakan (node_overlap == 0,edge_crosses_node == 0), plus dukungan paletmonochrome-bwhitam-putih bersih danieee-q1.🔗 Row-Level ERD & Semantic DFD Guard: Relasi ERD menunjuk tepat ke sel baris PK -> FK (termasuk jalur ortogonal 90 derajat bertingkat untuk dual-FK di antara dua tabel yang sama) dengan fail-loud validation jika nama kolom tidak cocok. DFD menolak otomatis aliran ilegal (external -> store / store -> store) tanpa melewati proses.
📝 Precision Word (
.docx-> PDF) Engine: Profil adaptif (academic-proposal,academic-thesis,tech-report-modern, atau JSON override bebas), penomoran halaman ganda Romawi (i, ii) & Arab (1, 2), auto-height cap gambar agar caption tidak pernah pindah halaman, tabelcolspan/rowspandenganw:tblHeader+w:cantSplit, kotakcallout,signature_grid(Lembar Pengesahan), persamaan matematika OMML, injeksi template.docxresmi institusi viadocxtpl, serta Word COMFields.Update()otomatis (dengan fallback LibreOffice headless di Linux/macOS).🎓 Q1 Academic Paper & Vector Figure Suite: Template siap compile IEEE Transactions (
IEEEtran), Elsevier (elsarticle), Springer LNCS, dan Typst modern, lengkap dengan generator grafik ilmiah Matplotlib (lebar kolom IEEE/Elsevier presisi, TrueType font embed, palet colorblind-safe Okabe-Ito, PDF/SVG/600 DPI PNG).📚 Authoritative Offline Prose QA (Indonesian & English):
Bahasa Indonesia Baku: 1.413 pasang kata tidak baku -> baku dari
lantip/baku-tidak-baku(KBBI & Ivan Lanin) + kamus resmi HunspellLibreOffice/dictionaries(id_ID) viaVale, plus deteksi pleonasme & klise AI Indonesia.Bahasa Inggris Q1: Paket resmi
errata-aiVale (write-good,proselint,Google) +Harper CLI(Rust offline grammar) +ChkTeX(tipografi LaTeX).Hygiene & Overlap Lokal: Pembersih karakter Unicode tak terlihat (
U+200B/C/D,U+FEFF), analisis ritme kalimat (burstiness), dan cek kemiripan 5-gram lokal terhadap file referensi milikmu sendiri.
🔍 Zero-Signup Citation Verifier & Mendeley
.bibBridge: Baca langsung file.bibekspor Mendeley Reference Manager atau Zotero, verifikasi DOI/judul/tahun/status retraksi ke Crossref & OpenAlex, serta cari 270 juta+ paper ilmiah via OpenAlex & arXiv tanpa akun maupun API key.🔄 Living Project Sync: Pindai otomatis skema Prisma, SQL DDL (
CREATE TABLE), OpenAPI/Swagger JSON, serta rute NestJS / FastAPI / Express menjadi manifest traceability + deteksi drift setelah refactor.
🚀 Quickstart (3-Minute Setup)
Prasyarat
Python >= 3.10 (disarankan
uvterpasang) & Node.js >= 18Draw.io Desktop (untuk render PNG/SVG/PDF headless) & Pandoc (untuk konversi sitasi CSL & OMML)
(Opsional untuk PDF Word/LaTeX) Microsoft Word (Windows) atau LibreOffice (Linux/macOS), serta TinyTeX/TeX Live untuk kompilasi LaTeX Q1.
1. Clone & Jalankan 1-Command Installer
Windows (PowerShell):
git clone https://github.com/Muhammad-Rizqullah-Akbar/doc-studio.git
cd doc-studio
powershell -ExecutionPolicy Bypass -File scripts/install.ps1macOS / Linux:
git clone https://github.com/Muhammad-Rizqullah-Akbar/doc-studio.git
cd doc-studio
bash scripts/install.shInstaller otomatis membuat .venv, memasang elkjs, repomix, @drawio/mcp, mengunduh biner portable (Vale, Harper CLI, Typst), 6 style CSL resmi, kamus Hunspell LibreOffice id_ID, dataset KBBI lantip/baku-tidak-baku, menyinkronkan paket errata-ai Vale (write-good, proselint, Google), dan menghasilkan mcp_config.json sesuai mesin lokalmu.
2. Hubungkan ke AI Coding Agent
Antigravity IDE: Salin atau symlink folder repo ke
~/.gemini/config/plugins/doc-studio, aktifkan"doc-studio": { "enabled": true }di~/.gemini/config/config.json, lalu reload sesi.Claude Code / Cursor / Codex / MCP Client Lainnya: Impor isi
mcp_config.jsonyang dihasilkan installer ke konfigurasi MCP klienmu.
🛠️ Complete 12 MCP Tool Reference
Selain companion server repomix (6 tools) dan drawio (@drawio/mcp, 8 tools), server doc-studio mengekspos 12 tool modular:
# | Tool Name | Fungsi Utama |
1 |
| Daftar profil dokumen/diagram + status biner & CSL lokal |
2 |
| Generate |
3 |
| Validasi geometris anti-overlap & render file |
4 |
| Bangun |
5 |
| Isi template |
6 |
| Scaffold & compile paper Q1 LaTeX (TinyTeX + BibTeX/Biber + cek overfull hbox) atau Typst |
7 |
| Grafik ilmiah Matplotlib Q1 (Okabe-Ito colorblind-safe, TrueType embed, PDF/SVG/600 DPI PNG) |
8 |
| Audit PDF PyMuPDF (margin, font, DPI gambar, blank page, orphan heading, broken ref) + render PNG halaman |
9 |
| Ekstraksi deterministik Prisma/SQL ERD, rute API/OpenAPI, modul, dan drift diff pasca refactor |
10 |
| Audit 100% offline: Vale (KBBI/Hunspell |
11 |
| Verifikasi |
12 |
| Cari paper ilmiah asli di OpenAlex (270M+ karya) / arXiv tanpa API key dan ekspor BibTeX valid |
🎨 Style Profiles & Authoritative Upstream Sources
Profil Dokumen Bawaan (config/style_profiles.json)
Profile | Engine | Karakteristik Utama |
| Word COM / LibreOffice | A4 (L4/R3/T3/B3 cm), Times New Roman 12pt, 1.15 spasi, tabel monokrom bersih, diagram |
| Word COM / LibreOffice | A4 (L4/R3/T4/B3 cm), 1.5 spasi, halaman Romawi ( |
| LaTeX | IEEE Transactions 2 kolom ( |
| LaTeX | Elsevier |
| LaTeX | Springer LNCS-compatible geometry & typography |
| Typst | Kompilasi milidetik, header modern, tabel & outline otomatis |
Sumber Upstream Terpercaya (Diunduh Otomatis Saat Install)
KBBI Kata Baku/Tidak Baku (1.413 pasang):
lantip/baku-tidak-baku(KBBI & Ivan Lanin)Spellcheck Bahasa Indonesia:
LibreOffice/dictionaries(id_ID.dic&id_ID.aff)Prose Linters Inggris:
errata-ai/vale(write-good,proselint,Google) +Automattic/harperStyle Sitasi (6 CSL):
citation-style-language/styles(apa,ieee,springer-lncs,elsevier-harvard,elsevier-vancouver,acm-sig-proceedings)Database Sitasi Publik: Crossref Public REST API, OpenAlex Public API, arXiv Public API
💻 CLI Command Reference
# Cek kesehatan seluruh 14 biner & 6 style CSL
.venv/Scripts/python engine/cli.py doctor
# Audit Bahasa Indonesia (KBBI 1.413 pasang + Hunspell id_ID + Pleonasme + AI-Slop)
.venv/Scripts/python engine/cli.py audit draft_thesis.docx --lang id --clean
# Audit Paper Q1 Inggris (write-good + proselint + Google + Harper + ChkTeX)
.venv/Scripts/python engine/cli.py audit paper_ieee.tex --lang en
# Verifikasi file .bib ekspor Mendeley/Zotero ke Crossref & OpenAlex (0 API key)
.venv/Scripts/python engine/cli.py verify-bib refs.bib
# Cari paper ilmiah asli dari OpenAlex dan tambahkan ke refs.bib
.venv/Scripts/python engine/cli.py search-papers "workflow state machine audit" --append-bib refs.bib
# Sinkronisasi codebase (Prisma / SQL / OpenAPI / NestJS / FastAPI) ke manifest traceability
.venv/Scripts/python engine/cli.py sync /path/to/project --out manifest.json
# Audit visual & struktural PDF + render PNG halaman
.venv/Scripts/python engine/cli.py qa Output_Final.pdf --profile academic-proposal --render-dir qa_pages🤝 Community, Contributing & Roadmap
Proyek ini dikembangkan secara terbuka dan menerima kontribusi dari komunitas pengembang dan akademisi:
💡 Diskusi Ide & Format Institusi Baru: GitHub Discussions
🐛 Pelaporan Masalah / Bug: GitHub Issues
📬 Kontak Author:
inirizqullahakbar@gmail.com🛠️ Panduan Kontribusi: Lihat CONTRIBUTING.md
🎯 Roadmap Pengembangan
📦 PyPI & Homebrew Distribution: Kemasan instalasi 1-baris
uv tool install doc-studio.🏫 Community Academic Profile Pack: Koleksi profil format tugas akhir/skripsi lintas universitas dan jurnal Q1 internasional (ACM, Nature, Springer).
🧪 Automated CI Matrix: GitHub Actions untuk pengujian lintas OS (Windows, macOS, Linux) pada setiap pull request.
📜 Lisensi & Atribusi
Didistribusikan di bawah lisensi MIT License. Hak Cipta (c) 2026 Muhammad-Rizqullah-Akbar & Kontributor. Lihat LICENSE dan THIRD_PARTY_NOTICES.md untuk rincian lisensi dan atribusi proyek open-source upstream.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Turns agent output into versioned web pages, PDFs, Word docs, spreadsheets and Markdown.
Write, compile and share Typst documents (papers, slides, drawings) from any AI agent.
Research-backed lint + generation for agent context files (CLAUDE.md, AGENTS.md) + prompt enhancer.
Shared project docs, task planning and GitHub evidence for people and their AI agents.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables fully local, end-to-end research automation: reproducing papers from PDF into runnable code and verified artifacts, writing papers section-by-section with LaTeX/PDF/DOCX export, and running an ideate→debate→design→verdict research pipeline—all without an API key.2MIT
- AlicenseNot gradedqualityBmaintenanceEnables end-to-end research paper workflows from ideation to delivery, including paper reproduction, guided writing, export to LaTeX/PDF/DOCX, and scientific data queries across 41 public database connectors, all operable locally without API keys.8Apache 2.0
- AlicenseAqualityBmaintenanceEnables local-first document versioning with content-addressable storage, word-level AST diffs, and AI-compliance auditing for LLM agents.6MIT
- AlicenseNot gradedqualityBmaintenanceA native stdio MCP server (JSON-RPC 2.0) that lets AI agents programmatically scaffold, audit, and build Indonesian academic documents from Markdown into publication-grade Typst PDF and Word DOCX using campus presets (UI, ITB, UGM, and others). It exposes deterministic tools for document initialization, citation and reference checking via OpenAlex/Crossref, EYD V/KBBI editing, and AI-writing-pattern detection.92MIT