MarkSight 标志

MarkSight

社区
Rinava

Browser-only Markdown editor that packages any document into a Claude Agent Skill (SKILL.md / .skill bundle) in one click — and exposes an MCP server for Claude Code. Live preview, GFM tables, Mermaid, Prism, HTML/PDF export. No account, 100% local. Next.js + React.

发布者Rinava
代码仓库MarkSight
语言TypeScript
复刻数
17
星标数
18
可用工具
0
传输类型streamable-http
分类
许可协议MIT
链接
  • 将工具接入 AI 工作流

    MarkSight 提供 MCP 功能,可供兼容的 AI 客户端和智能体使用。

  • 0 个可用工具

    浏览下方可调用的操作;如果服务器提供了名称和描述,也会一并显示。

  • 可直接复制的配置

    使用安装配置片段,在您首选的 MCP 客户端中配置此服务器。

  • 开源社区热度

    关联的代码仓库有 18 个 Star 和 17 个 Fork。

MarkSight

CI Contributors GitHub stars Last commit License PRs welcome

Turn any Markdown document into an installable Claude Agent Skill. One click, in your browser. MarkSight is a free, open source Markdown editor whose core doubles as a remote MCP server that Claude Code can call directly. Live preview, GFM, Mermaid diagrams, and Markdown/HTML/PDF export come with it.

🔗 Live (no signup): marksight.laramateo.com · 🧩 One-click .skill export · 🔌 Built-in MCP server · 🔒 100% client-side

⭐ If MarkSight is useful to you, starring the repo helps others find it.

Quick start

Use it (nothing to install):

  1. Open marksight.laramateo.com, write or paste Markdown, and press ⌘⇧K. An installable .skill bundle downloads immediately.

  2. Or add MarkSight's MCP server to Claude Code and let Claude build and validate skills for you:

    bash
    claude mcp add --transport http marksight https://marksight.laramateo.com/api/mcp

    Then ask Claude to turn Markdown into a skill or convert it to HTML. Tools: create_skill, validate_skill, markdown_to_html, document_outline, document_metrics.

Want to run MarkSight locally or contribute? See Getting started.

About

Every README I've ever written started the same way: type some Markdown into GitHub's editor, click Preview, spot something broken, click back to Write, fix it, click Preview again. Write, preview, write, preview. Tiny friction, repeated a thousand times, stops being tiny. So I did the most programmer thing possible: I built my own editor.

MarkSight is the editor I wanted to exist: the preview lives right next to your words. No tabs, no round trips, everything rendering live as you type. I built it with React, Next.js, TypeScript, and CodeMirror, and obsessed over making it feel snappy. It runs entirely in your browser, with no account and no server-side storage: your document sits in localStorage, exports are generated on your machine, and your writing never leaves your device.

I could have kept it as a private little tool that solved a private little annoyance. Instead I made it open source, free for anyone to use, fork, break, and improve. That decision turned out to matter more than any feature I shipped. The longer version of that story is on my blog: Why I built an open source Markdown editor.

Features

  • Live preview — CodeMirror editor with an instantly-rendered preview pane
  • Smart toolbar — context-aware formatting that detects and toggles existing markdown
  • Keyboard shortcuts — bold (⌘B), italic (⌘I), strikethrough (⌘U), link (⌘K), inline code (⌘`), headings (⌘⇧1–3), lists, and more
  • Document outline — auto-generated, clickable heading navigation that scrolls the preview
  • Export — download the raw Markdown source or styled HTML, print to PDF, or preview the HTML in a new tab; set a custom file name before exporting
  • Skill Creator — package your document as an Agent Skill (⌘⇧K) that Claude and other AIs can receive: copy the generated SKILL.md or download a ready-to-install .skill bundle. Import existing skills from a .skill/.zip file or straight from GitHub-hosted marketplaces (like anthropics/skills), modify them, and re-export with bundled files preserved
  • GitHub-flavored markdown — tables, task lists, strikethrough (via remark-gfm)
  • Syntax highlighting — fenced code blocks rendered with Prism
  • Mermaid diagrams — fenced mermaid blocks render as live SVG in the preview and exports, themeable per diagram via %%{init}%% directives or YAML frontmatter
  • Light / dark theme — system-aware, persisted across sessions
  • Local persistence — your document is saved to localStorage automatically

Keyboard Shortcuts

Note: On macOS, use ⌘ (Command). On Windows and Linux, use Ctrl.

ActionmacOSWindows / Linux
Bold⌘ BCtrl + B
Italic⌘ ICtrl + I
Strikethrough⌘ UCtrl + U
Link⌘ KCtrl + K
Inline Code⌘ `Ctrl + `
Heading 1⌘⇧1Ctrl+Shift+1
Heading 2⌘⇧2Ctrl+Shift+2
Heading 3⌘⇧3Ctrl+Shift+3
Unordered List⌘ ⇧ LCtrl + Shift + L
Ordered List⌘ ⇧ OCtrl + Shift + O

Editor Preview

Light Theme

MarkSight Editor - Light Theme

Dark Theme

MarkSight Editor - Dark Theme

A fenced mermaid block renders as a diagram:

Tech stack

Getting started

bash
npm install
npm run dev      # start the dev server at http://localhost:3000

Other scripts:

bash
npm run build    # production build
npm run start    # serve the production build
npm run lint     # run ESLint

Exporting a document as an Agent Skill

One click: hit the package icon in the preview toolbar (or ⌘⇧K) and a validated <name>.skill bundle downloads immediately. The metadata comes from your document (the first H1 becomes the name, the first paragraph the description) and the toast shows the add-to-Claude steps.

Everything optional lives in the Agent Skill sidebar card: edit the name and trigger description inline (validated as you type), switch between Instructions/Knowledge packaging, refine with AI, or import an existing skill from a .skill file or a GitHub marketplace to edit and re-export. Everything runs locally in your browser.

To add the skill to Claude Code:

bash
unzip -o ~/Downloads/<name>.skill -d ~/.claude/skills/

It loads on the next session (or after /reload-plugins). On claude.ai, upload the .skill file under Settings › Capabilities › Skills.

Optionally, an Improve with AI button refines the skill's name and trigger description (via Vercel AI Gateway). It appears only when the backend has gateway credentials (see .env.example); without them the whole Skill Creator keeps working offline.

You can also import an existing skill from the same dialog: open a .skill/.zip bundle or SKILL.md file, or paste a GitHub URL (a repo, a folder, or a SKILL.md link, e.g. the official anthropics/skills collection). The skill's frontmatter is preserved (frontmatter always overrides auto-derived metadata), bundled files like references/ are carried through untouched, and you can edit the body and re-export.

MCP server (use MarkSight from Claude)

MarkSight exposes its core as a remote MCP server at /api/mcp (streamable HTTP), so Claude and other MCP clients can call it directly:

bash
claude mcp add --transport http marksight https://marksight.laramateo.com/api/mcp

Tools: create_skill (markdown in, validated .skill bundle out as base64), validate_skill, markdown_to_html, document_outline, and document_metrics, all backed by the same src/lib code the editor uses. A project-scoped .mcp.json is included, so cloning this repo wires the connector automatically in Claude Code.

Regenerating brand assets

App icons and social images are generated from inline SVG with sharp:

bash
node scripts/generate-assets.mjs

This writes the manifest icons (public/icon*.png) and the Next.js metadata images (src/app/apple-icon.png, opengraph-image.png, twitter-image.png).

Project structure

src/
├── app/              # App Router entry (layout, page, metadata, route assets)
│   └── api/          # route handlers (MCP server, AI skill improvement)
├── components/       # UI components (editor, preview, toolbar, sidebar, …)
│   └── ui/           # shadcn/ui primitives
├── contexts/         # React context providers
├── hooks/            # custom hooks
├── lib/              # utilities (slugify, local storage, syntax highlighter, …)
└── proxy.ts          # security headers / CSP

Contributing

Contributions are welcome, whether it's a bug report, a feature idea, a docs fix, or a pull request. See the contributing guide for how to set up the project and submit changes, and please follow our Code of Conduct.

New here? Look for issues labelled good first issue. Release history lives in the changelog.

Community

Questions, ideas, or just want to show what you built with MarkSight? Join the conversation in GitHub Discussions. For bugs and feature requests, open an issue.

Contributors

Here's the thing nobody tells you about open sourcing a project: at some point, the code stops being the point. The first time a stranger opened a pull request here, I just sat there smiling at my screen. Every avatar below is someone who read the code, understood it, and spent their free time making it better:

(Dependabot also sends its regards.)

Contributors are credited in the app too, on the About page and the workspace footer. Want in? The contributing guide has everything you need, and good first issue is the easiest way to start. PRs here get reviewed quickly instead of collecting dust.

Author

MarkSight was created and is maintained by Lara Mateo (@Rinava).

MarkSight is built by the team behind Kenda.

License

MIT.

安装

TypingMind
{
  "mcpServers": {
    "marksight": {
      "url": "https://marksight.laramateo.com/api/mcp"
    }
  }
}

将 MarkSight MCP 与多个 AI 模型配合使用

TypingMind 在工作区级别连接 MCP 工具,因此连接 MarkSight 后,您就可以在 TypingMind 中搭配不同的 AI 模型使用,无需为每个模型单独设置。 此 MCP 通过远程托管的 MCP 服务器 URL 在 TypingMind 中连接。

添加 MCP 服务器 URL

如果 MarkSight 已托管在远程服务器上,或您的团队希望让多个用户共用一个连接器,请选择此方式。

1

打开 MCP 连接器

在 TypingMind 中,前往“插件”,打开“MCP 连接器”,然后选择“添加 URL”。

  1. 在您的浏览器中打开 TypingMind。
  2. 进入“插件”。
  3. 打开“MCP 连接器”。
  4. 点击“添加 URL”。
TypingMind 的“添加自定义 MCP 服务器 URL”表单
2

粘贴服务器 URL

在“服务器 URL”字段中输入 https://marksight.laramateo.com/api/mcp。根据服务器要求,添加连接名称、描述、图标、自定义 HTTP 请求头或 OAuth 客户端设置。

  1. 将 https://marksight.laramateo.com/api/mcp 粘贴到“服务器 URL”字段中。
  2. 为 MarkSight 输入连接名称。
  3. 您可以添加描述和图标,以便更容易识别此连接。
  4. 如果服务器需要身份验证,请添加自定义 HTTP 请求头或 OAuth 客户端信息。
3

创建连接

点击“创建连接”,然后返回插件列表,确认新的 MCP 连接显示为“有效”。

  1. 点击“创建连接”。
  2. 返回 MCP 连接器列表。
  3. 确认 MarkSight 连接显示为“有效”。
  4. 如果连接未立即出现,请刷新插件列表。
4

切换模型,无需重新连接

使用您偏好的模型开始聊天,在“插件”中启用 MarkSight 工具,并根据需要随时切换到其他模型。该 MCP 连接在 TypingMind 工作区中仍然可用。

  1. 在 TypingMind 中开始新聊天。
  2. 选择您想使用的 AI 模型。
  3. 在“插件”中启用 MarkSight 工具。
  4. 需要时,请让模型使用该工具。
  5. 切换到其他 AI 模型,继续使用同一个 MCP 连接。
在 TypingMind 聊天中使用已启用的 MCP 工具和选定的 AI 模型
您能使用 MarkSight 帮我完成这项任务吗?
MarkSight
当然。我已阅读。
以下是我使用 MarkSight 得到的结果。

常见问题

MarkSight MCP 服务器有什么用途?

MarkSight 是一个 MCP 服务器,可让兼容的 AI 客户端连接外部工具并获取上下文。在 TypingMind 中,只需添加一次此 MCP 服务器,即可在您的 AI 工作区中使用其工具。

可以在 TypingMind 中让多个 AI 模型使用 MarkSight MCP 吗?

可以。TypingMind 在工作区层面连接 MCP 工具,因此您可以让 Claude、ChatGPT、Gemini 等不同 AI 模型,或您在 TypingMind 中配置的其他模型使用 MarkSight,而无需为每个模型单独配置 MCP 服务器。

为什么在 TypingMind 中使用 MarkSight MCP?

TypingMind 将多个 AI 模型、提示词、插件、AI 智能体、API 密钥和 MCP 工具整合到同一个工作区中,是优秀的大语言模型聊天前端之一。连接 MarkSight 后,您可以在偏好的不同模型中使用其 MCP 工具,同时在 TypingMind 中井然有序地管理聊天工作流程。

如何将 MarkSight MCP 连接到 TypingMind?

在 TypingMind 中添加 MarkSight 托管的 MCP 服务器 URL,即可连接。如果您希望在 TypingMind 工作区中使用远程 MCP 连接,这种方式很适合。

MarkSight MCP 在 TypingMind 中提供哪些工具?

MarkSight 提供 MCP 功能,您可以在 TypingMind 的插件页面启用这些功能,然后在聊天中使用,或将其分配给 AI 智能体。

使用 MarkSight MCP 需要向 TypingMind 提供我的 API 密钥吗?

不需要。TypingMind 采用本地优先的设计,让您自行掌控模型提供商、API 密钥、提示词和 MCP 配置。如果 MarkSight 需要身份验证,请在创建连接时,为该 MCP 服务器添加所需的请求头、OAuth 设置或本地配置。

相关 MCP 服务器

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇