DocHub Architect Tool
Provides integration with GitLab for pushing branches and creating merge requests as part of publishing architecture schemas.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@DocHub Architect ToolImport the C4 container diagram from the drawio file into the architecture repository."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
DocHub Architect Tool
English · Русский
An MCP server that helps transfer C4 diagrams from DrawIO and PlantUML into a DocHub architecture repository.
Code does the deterministic work: parsing diagrams, assembling the repository manifest, finding components to reuse, checking referential integrity, rendering, writing YAML, publishing. The meaning — which business function an element represents, which subdomain owns it, how scenarios split into contexts — comes from the agent working together with a person, because a diagram alone does not carry it.
What it gives you
Parsing that works on real files. C4 attributes live on
<object>wrappers, nesting is expressed by geometry rather than aparentattribute, and pages are often stored compressed. All of that is handled.Rejection of logical diagrams. A sequence or activity diagram describes behaviour, not composition; the server says so instead of guessing.
Rendering by DocHub's own metamodel, taken from its plugin, so a context looks exactly as DocHub will draw it.
A split-screen preview: the original diagram on the left, the generated one on the right, refreshed as the YAML changes.
Ownership rules. A queue, a foreign API method or a stored procedure belongs in the file of the subdomain that owns it; your own file only references it.
Research before questions. The brief reads the diagram, the domain model, the repository and the accumulated rules, and only what none of them answers is asked — with the source quoted.
The repository is checked before the work, not after. Reachable, current, a work branch created — instead of discovering a divergence at push time.
Accumulated knowledge. Decisions confirmed by the user are stored and reused, so the same conventions need not be explained again.
Related MCP server: fcp-drawio
Requirements
What | Why | Without it |
Python 3.10+ | the server itself | required |
Java 11+ | rendering PlantUML | preview and context rendering unavailable |
| rendering | fetched by setup_assets.py |
| DocHub metamodel | ships with the project |
| drawing the original DrawIO | left preview pane stays empty |
| ELK layout | falls back to smetana, wider diagrams |
| creating a merge request | the branch is pushed, the MR is made by hand |
Install
Nothing installed on the machine? Build a portable archive — python tools/build_release.py packs a self-contained Windows x64 build with its own
Python, Java and git, so the recipient installs nothing.
From source:
pip install -r requirements.txt
python setup_assets.py
cp .env.example .envThe second command downloads PlantUML and the drawio viewer. They are tens of
megabytes and are not kept in git; after this everything runs offline.
python setup_assets.py --check reports what is in place.
Configure
.env is the whole configuration; .env.example is the annotated template.
The paths are the part you must fill in — the repository, the domain schema —
the rest has working defaults:
DOCHUB_REPO_ROOT=C:/repos/architectural-repository
DOCHUB_DDD_PATH=C:/repos/architectural-repository/ddd.drawio
GITLAB_TOKEN= # only to create a merge request
DOCHUB_REMOTE_PROTOCOL=https # or ssh — what your origin expects
DOCHUB_TARGET_BRANCH=main
DOCHUB_COMMIT_TEMPLATE=Добавление схемы {schema}
DOCHUB_MR_ASSIGNEE= # who owns the merge request
DOCHUB_AUTOMODE=false # the agent goes to the MR on its ownAn environment variable of the same name wins over the file, so a client can
override one value without editing anything. dochub_workspace shows the
result and says where each value came from. Full table: docs/USAGE.md.
automode is for people who do not work with architecture repositories: the agent answers the brief from defaults and accumulated rules, builds the schema, shows the preview and goes all the way to the merge request without asking for confirmation. Merging is never automatic — that stays a human decision.
Register in an MCP client
The server speaks MCP over stdio. Clients usually keep servers in an
mcpServers object:
{
"mcpServers": {
"dochub": {
"command": "python",
"args": ["-m", "app.mcp_server"],
"cwd": "<path to the project>"
}
}
}A helper prints or writes this fragment without touching servers already registered:
python skills/dochub-architect/tools/install_mcp.py --printQuick check
python -m app.mcp_serverThe server writes a startup line to stderr and waits for input — stdout carries the protocol, so nothing else may go there. Stop with Ctrl+C.
python -m pytestDocumentation
ARCHITECTURE.md — components, technologies, diagrams
ROADMAP.md — status and boundaries
docs/USAGE.md — the tools and how they work together
skills/dochub-architect/ — the skill that teaches an agent the working order; it ships with the project
workflows/ — the research phase as a parallel run for Claude Code, optional
SECURITY.md — threat model and how to report a vulnerability
Support author
BTC: bc1q3frrup5neh7nhfg944etu2agd4j9u0vg3jyee6
ETH(Arbitrum): 0x43B349d8Cea83215D707EBa3bc35e9917f746b0a
TRX: THSzvy49KNeqRjXsGkurh2A5G4avV4RgN4
XRP: rLWZjS3DMupC4ZdXCX3BVYn4dEtC3iNhgy
SOL: 3xwfybxJ6Tz5t6pjBBkL5yYQCZo6wfbv932UNA4ThdP8
ADA: addr1q926ys75jp5wn2pv32a3t8r8pdhr7w02v0t9j4a8pmg0ruww5rlkctu4lnz2hfcwa5qfn3zhsd0s23r22uqwzx9gu6cq5c4e76
TON: UQC4qlAOD9Nly4K_66GJ_yCsSM3x2sB0vZ2GrBQbc--gZUui
DOGE: DTjNYmbtymzcjUiV4MsZY8MP4dM7MJ6qLC
XMR: 44qRqM6YtnxXUhkgCFqDDrKMPjWriu69FLBoop8Kwp7e1VQsBUJoVQ8JYQjfMV5C6uidTUgSSyoJ65mq8aYG2esZ1rrqfwt
Licence
MIT, see LICENSE. Everything this project redistributes and under what licence: THIRD-PARTY-NOTICES.md.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityCmaintenanceAn MCP server that generates beautiful Excalidraw architecture diagrams with perfect auto-layout, stateful editing, and architecture-aware component styling.Last updated24137MIT
- AlicenseBqualityBmaintenanceMCP server that enables LLMs to create and edit draw.io diagrams using high-level intent commands, with automatic layout and styling.Last updated4123MIT
- AlicenseAqualityAmaintenanceMCP server for creating and editing diagrams using draw.io. Allows generating diagrams from Mermaid or XML, searching shapes, and opening them in draw.io for export.Last updated20Apache 2.0
- Alicense-qualityAmaintenanceMCP server that manages C4 architecture models, ADRs, and flow diagrams as TOML files in a docs directory, with git versioning and an HTTP viewer.Last updatedMIT
Related MCP Connectors
MCP server for Appcircle mobile CI/CD platform.
The MCP server for Azure DevOps, bringing the power of Azure DevOps directly to your agents.
MCP server for AgentDocs (agentdocs.eu): read, search, write, comment on & share Markdown docs.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/john7ross/dochub-architect-tool'
If you have feedback or need assistance with the MCP directory API, please join our Discord server