Hedgedoc Server
БесплатноНе проверенEnables creating, reading, and managing HedgeDoc 1.x notes and Mermaid diagrams from AI agents via the MCP protocol.
Описание
Enables creating, reading, and managing HedgeDoc 1.x notes and Mermaid diagrams from AI agents via the MCP protocol.
README
MCP server for HedgeDoc 1.x — the open-source collaborative markdown editor. Create notes and Mermaid diagrams from OpenCode and other MCP-compatible AI agents.
Note: This is built for HedgeDoc 1.x (formerly CodiMD). It uses the HedgeDoc 1.x API, which differs from HedgeDoc 2.
Tools
| Tool | Description |
|---|---|
hedgedoc_create_blank |
Create a blank note with the instance's default template |
hedgedoc_create |
Create a new note with a random ID |
hedgedoc_create_with_alias |
Create a new note with a custom URL alias (requires FreeURL mode) |
hedgedoc_create_diagram |
Create a note with a Mermaid diagram |
hedgedoc_read |
Read the raw markdown content of a note |
hedgedoc_info |
Get note metadata (title, description, timestamps, viewcount) |
hedgedoc_list_revisions |
List all available revisions of a note |
hedgedoc_get_revision |
Get the full content of a specific revision |
hedgedoc_publish_url |
Get the published (read-only) URL of a note |
hedgedoc_slide_url |
Get the slide presentation URL of a note |
hedgedoc_status |
Get the current status of the HedgeDoc instance |
Usage
export HEDGEDOC_URL="https://hedgedoc.your-instance.com"
uvx hedgedoc-mcp-server stdio
HedgeDoc 1.x does not use API tokens for note operations. Authentication is handled via session cookies (browser) or instance configuration (see Production Ready guide).
OpenCode config
{
"mcp": {
"hedgedoc": {
"type": "local",
"enabled": true,
"command": ["uvx", "hedgedoc-mcp-server", "stdio"],
"environment": {
"HEDGEDOC_URL": "https://hedgedoc.your-instance.com"
}
}
}
}
Requirements
| Requirement | Notes |
|---|---|
| HedgeDoc 1.x instance | Tested on 1.x. Not compatible with HedgeDoc 2. |
| Python 3.11+ | |
uv (recommended) |
Or pip install hedgedoc-mcp-server |
API Endpoints Used
This server uses the following HedgeDoc 1.x API endpoints:
| Method | Endpoint | Used by |
|---|---|---|
GET |
/new |
Create a blank note |
POST |
/new |
Create a note (random ID) |
POST |
/new/{alias} |
Create a note (custom alias) |
GET |
/{id}/download |
Read raw markdown |
GET |
/{id}/info |
Read metadata |
GET |
/{id}/revision |
List revisions |
GET |
/{id}/revision/{rev} |
Get specific revision |
GET |
/{id}/publish |
Published URL |
GET |
/{id}/slide |
Slide URL |
GET |
/status |
Instance status |
For more details, see the official API docs.
Instance Configuration
Your HedgeDoc administrator may need to configure these settings:
| Setting | Impact | Docs |
|---|---|---|
CMD_ALLOW_ANONYMOUS=true |
Allows note creation without login | Users and Privileges |
CMD_ALLOW_FREEURL=true |
Enables custom URL aliases | Users and Privileges |
CMD_RATE_LIMIT_NEW_NOTES=20 |
Max new notes per 5 minutes (default: 20) | Web Security |
CMD_DOCUMENT_MAX_LENGTH=100000 |
Max note length in chars (default: 100k) | HedgeDoc basics |
CMD_DISABLE_NOTE_CREATION=false |
If true, no notes can be created | Users and Privileges |
Development
git clone https://github.com/Jyzus/kaymer-hedgedoc-mcp
cd kaymer-hedgedoc-mcp
uv venv && uv pip install -e .
HEDGEDOC_URL="https://hedgedoc.your-instance.com" uv run hedgedoc-mcp-server
License
MIT
Установка Hedgedoc Server
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/Jyzus/kaymer-hedgedoc-mcpFAQ
Hedgedoc Server MCP бесплатный?
Да, Hedgedoc Server MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Hedgedoc Server?
Нет, Hedgedoc Server работает без API-ключей и переменных окружения.
Hedgedoc Server — hosted или self-hosted?
Доступен hosted-вариант: Unyly запускает сервер в облаке, локальная установка не обязательна.
Как установить Hedgedoc Server в Claude Desktop, Claude Code или Cursor?
Открой Hedgedoc Server на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzCompare Hedgedoc Server with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
