typora-mcp
Click on "Deploy 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., "@typora-mcp Create a new markdown note titled 'Meeting Notes' and open it in Typora"
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.
Typora MCP Server
Model Context Protocol (MCP) server providing programmatic automation, real-time status inspection, document management, auto-save draft recovery, theme customization, and pixel-perfect HTML rendering for the Typora Markdown Editor on Windows.
Capabilities & Architecture
Typora (C:\Program Files\Typora\Typora.exe) is a standalone desktop Markdown editor. This MCP server bridges Typora with AI coding assistants (Google Antigravity, Claude Desktop, Cursor) via the standard Model Context Protocol over stdio.
Core Features
Process & Document Monitoring (
typora_status):Queries Windows CIM / WMI to detect running Typora processes.
Extracts active file paths currently being edited in open windows.
Reports process IDs, architecture types (
main,renderer,gpu), and app version.
Document & Workspace Launching (
typora_open,typora_create_document):Spawns Typora asynchronously with any target file or folder workspace.
Creates new Markdown documents with structured YAML frontmatter and H1 headers, launching them immediately in Typora.
History & Recovery Engine (
typora_recent_documents,typora_list_drafts,typora_read_draft):Automatically decodes Typora's hex-encoded history database (
%APPDATA%\Typora\history.data) to track recent files, last opened dates, and verify disk presence.Scans Typora's auto-save crash recovery vault (
%APPDATA%\Typora\draftsRecover\), allowing agents to inspect and restore unsaved work.Inspects automatic document backups from
%APPDATA%\Typora\backups\.
Theme Customization & Management (
typora_list_themes,typora_get_theme_css,typora_install_theme,typora_set_theme):Enumerates user themes (
%APPDATA%\Typora\themes\) and built-in application themes (github,newsprint,night,pixyll,whitey).Retrieves stylesheet CSS.
Installs new custom CSS themes directly into Typora's theme directory.
Safely updates user preferences (
profile.data) to switch light or dark themes.
Typora-Fidelity Markdown Rendering (
typora_render_html):Compiles Markdown into standalone, portable HTML styled with the exact CSS theme and layout (
#writecontainer) used by Typora.
Related MCP server: HWP MCP Server
Tool Catalog
Tool Name | Description | Key Parameters |
| Inspect live Typora processes, active open documents, and PIDs | none |
| Launch Typora to open a Markdown file, text file, or folder |
|
| Create new Markdown file with frontmatter/title and launch in Typora |
|
| Get recently opened files from Typora history with timestamps |
|
| Get recently opened workspaces from Typora history |
|
| List auto-saved/recovered drafts from |
|
| Read full text of an auto-saved draft or restore it to path |
|
| List automatic file backups created by Typora |
|
| Read user profile configuration (theme, math flags, CRLF) | none |
| List all installed and built-in Typora themes | none |
| Retrieve raw CSS stylesheet content for any theme |
|
| Install custom CSS theme directly into Typora's themes folder |
|
| Set active standard or dark theme in preferences |
|
| Render Markdown to standalone HTML using Typora's CSS |
|
| Gracefully terminate Typora processes or a specific PID |
|
MCP Resources
The server exposes read-only MCP resources for live system state:
typora://status: Live JSON status of running Typora instances and open files.typora://recent: Array of recent documents with timestamps.typora://drafts: List of available auto-saved drafts.typora://themes: Installed themes and active theme settings.typora://preferences: Complete user preferences.
Installation & Setup
1. Build
cd F:\Aaradhya-Dev-Tamrakar\typora-mcp
npm install
npm run build
npm run sync-schemas2. Antigravity Configuration (mcp_config.json)
Add typora to C:\Users\Aaradhya\.gemini\antigravity\mcp_config.json:
{
"mcpServers": {
"typora": {
"command": "node",
"args": [
"F:\\Aaradhya-Dev-Tamrakar\\typora-mcp\\dist\\index.js"
]
}
}
}3. Claude Desktop Configuration (claude_desktop_config.json)
{
"mcpServers": {
"typora": {
"command": "node",
"args": [
"F:\\Aaradhya-Dev-Tamrakar\\typora-mcp\\dist\\index.js"
]
}
}
}Ecosystem Synchronization (sync.ps1)
In accordance with personal tool ecosystem standards, all Git operations and schema reconciliation are managed via sync.ps1:
.\sync.ps1 # Build, sync schemas, run pre-commit secret scan, and push
.\sync.ps1 -m "feat(typora): description" # Scoped conventional commit
.\sync.ps1 -WhatIf # Dry-run preview
.\sync.ps1 -PullOnly # Safe rebase pullLicense
MIT © Aaradhya Dev Tamrakar
Available Tools
16 toolstypora_closeA
Gracefully terminate running Typora processes on Windows, or kill a specific Typora window by process ID.
Inputs: pid.
typora_create_documentA
Create a new Markdown file with optional title, YAML frontmatter, and body text, and immediately open it in Typora.
Inputs: path (required), title, content, frontmatter.
typora_export_pdfB
Export Markdown content or an input Markdown file directly to a styled PDF using Typora CSS themes and synchronous headless browser rendering with valid file URIs.
Inputs: output_path (required), theme, content, input_path.
typora_get_preferencesA
Read Typora's configuration and user preferences (profile.data), including current theme, dark theme, math flags, font settings, CRLF line endings, and auto-save timer.
Inputs: no named parameters.
typora_get_theme_cssA
Retrieve the raw CSS styling for an installed Typora theme (e.g. 'github', 'night', 'newsprint', 'pixyll', 'whitey').
Inputs: theme (required).
typora_install_themeA
Install or update a custom CSS theme directly into Typora's theme directory (%APPDATA%\Typora\themes) so it appears in Typora's Theme menu.
Inputs: css (required), name (required).
typora_list_backupsA
List automatic file backups created by Typora in its backups directory.
Inputs: limit.
typora_list_draftsA
List auto-saved and recovered drafts from Typora's recovery vault (draftsRecover). Useful for recovering unsaved documents or examining emergency drafts.
Inputs: limit, query.
typora_list_themesA
List all installed user themes and builtin themes in Typora, indicating the currently active theme and dark theme.
Inputs: no named parameters.
typora_openB
Launch Typora to open a specific Markdown file, text document, or workspace folder.
Inputs: path (required).
typora_read_draftA
Read the full text content of an auto-saved draft from Typora's draftsRecover vault, with an option to restore it directly to a target path.
Inputs: filename (required), restore_to_path.
typora_recent_documentsA
Retrieve recently opened Markdown documents from Typora's history store (history.data), including last opened timestamp, relative time, and disk verification.
Inputs: limit, query, verify_exists.
typora_recent_foldersA
Retrieve recently opened workspaces and folders from Typora's history.
Inputs: limit.
typora_render_htmlA
Render Markdown content or an input Markdown file into a standalone, portable HTML document styled with Typora's exact CSS themes (inlining base.css and theme styling into #write container).
Inputs: theme, content, input_path, output_path.
typora_set_themeB
Set the active standard theme or dark theme in Typora's user preferences.
Inputs: theme, dark_theme.
typora_statusA
Inspect the live running state of Typora on Windows (process IDs, active documents/folders being edited, memory usage, installation path, and app version).
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 16 tools
Each tool has a clearly distinct action or resource, such as export_pdf vs render_html, install_theme vs set_theme, and read_draft vs list_drafts. Overlaps are minimal and the descriptions make boundaries explicit.
All names use the typora_ prefix and snake_case, which is highly consistent. However, a few tools are noun phrases rather than verb_noun patterns, such as typora_status, typora_recent_documents, and typora_recent_folders.
With 16 tools, the set is slightly above the typical well-scoped range of 3-15, but most tools cover distinct Typora integration needs. The count is reasonable for the breadth of features offered.
The server covers many areas including export, rendering, themes, drafts, backups, preferences, and process control. However, it lacks obvious document lifecycle operations such as reading arbitrary Markdown files, updating/saving documents, and deleting documents, which will limit agent workflows.
Maintenance
Related MCP Connectors
Create Korean HWPX files from Markdown, fill HWP/HWPX forms, render pages and PDFs
31Create Word .docx files from sections or markdown, fill templates, and read text from a .docx.
Read, search and fill PDFs as markdown, text, tables, forms. Local, or hosted at api.pdfluent.com.
Markdown to editable PowerPoint, Word, PDF; checks, edits and previews RDLC/RDL reports.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables automation of Hancom HWP (Hanword) documents via MCP, including creating, editing, saving, and managing multiple document tabs.-
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to control Hancom's HWP/HWPX documents (Korean word processor) via COM interface on Windows, supporting creation, editing, formatting, and export.MIT
- AlicenseBqualityBmaintenanceEnables inspecting, debugging, and safely automating a running Typora instance over local STDIO through an opt-in, reversible renderer bridge that exposes status and capability discovery, structured snapshots, DOM and style queries, short-lived element refs, keyboard and click actions, console/network evidence, and instance lifecycle control. Fixture runs execute read-only in isolated profiles and cannot alter Markdown source, while the bridge listens only on localhost with token authentication.28MIT
- AlicenseAqualityCmaintenanceEnables AI agents to convert Markdown documents and multi-file books into PDFs, recover Markdown from PDFs that embed their source, and open notes in a live preview GUI, all without a browser, LaTeX, or Pandoc. Each conversion returns the PDF plus page count and rendering diagnostics, and produces byte-identical output on every run.4Apache 2.0