Skip to main content
Glama

Typora MCP Server

License: MIT MCP Version Node.js

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

  1. 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.

  2. 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.

  3. 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\.

  4. 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.

  5. Typora-Fidelity Markdown Rendering (typora_render_html):

    • Compiles Markdown into standalone, portable HTML styled with the exact CSS theme and layout (#write container) used by Typora.


Related MCP server: HWP MCP Server

Tool Catalog

Tool Name

Description

Key Parameters

typora_status

Inspect live Typora processes, active open documents, and PIDs

none

typora_open

Launch Typora to open a Markdown file, text file, or folder

path (string, required)

typora_create_document

Create new Markdown file with frontmatter/title and launch in Typora

path, title, frontmatter, content

typora_recent_documents

Get recently opened files from Typora history with timestamps

limit, query, verify_exists

typora_recent_folders

Get recently opened workspaces from Typora history

limit

typora_list_drafts

List auto-saved/recovered drafts from draftsRecover/

limit, query

typora_read_draft

Read full text of an auto-saved draft or restore it to path

filename (required), restore_to_path

typora_list_backups

List automatic file backups created by Typora

limit

typora_get_preferences

Read user profile configuration (theme, math flags, CRLF)

none

typora_list_themes

List all installed and built-in Typora themes

none

typora_get_theme_css

Retrieve raw CSS stylesheet content for any theme

theme (required)

typora_install_theme

Install custom CSS theme directly into Typora's themes folder

name, css (required)

typora_set_theme

Set active standard or dark theme in preferences

theme, dark_theme

typora_render_html

Render Markdown to standalone HTML using Typora's CSS

input_path, content, output_path, theme

typora_close

Gracefully terminate Typora processes or a specific PID

pid (optional)


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-schemas

2. 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 pull

License

MIT © Aaradhya Dev Tamrakar

Available Tools

16 tools
typora_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

    A3.6/5.0

    Scored across 16 tools

    Disambiguation5/5

    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.

    Naming Consistency4/5

    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.

    Tool Count4/5

    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.

    Completeness3/5

    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

    ActivityStale
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables automation of Hancom HWP (Hanword) documents via MCP, including creating, editing, saving, and managing multiple document tabs.
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to control Hancom's HWP/HWPX documents (Korean word processor) via COM interface on Windows, supporting creation, editing, formatting, and export.
      MIT
    • A
      license
      B
      quality
      B
      maintenance
      Enables 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.
      28
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables 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.
      4
      Apache 2.0