Back to Browse

Carve MCP Server

Developer ToolsModerate5.7MCP RegistryLocal
Free

Server data from the Official MCP Registry

Parse, lint, format, render, and migrate Carve documents through MCP.

About

Parse, lint, format, render, and migrate Carve documents through MCP.

Security Report

5.7
Moderate5.7Moderate Risk

A well-structured MCP server for document authoring with careful security boundaries. Filesystem access is explicitly scoped to configured workspace roots and disabled by default. Input validation is comprehensive with Zod schemas throughout. Minor code quality observations around broad error handling and logging practices do not materially impact security posture. Supply chain analysis found 2 known vulnerabilities in dependencies (1 critical, 0 high severity). Package verification found 1 issue.

4 files analyzed · 7 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

File System Read

Reads files on your machine. Normal for tools that analyze or process local data.

File System Write

Writes or modifies files on your machine. Check that this is expected for the tool.

HTTP Network Access

Connects to external APIs or services over the internet.

env_vars

Check that this permission is expected for this type of plugin.

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "io-github-markup-carve-carve-mcp": {
      "args": [
        "-y",
        "@markup-carve/carve-mcp"
      ],
      "command": "npx"
    }
  }
}

Documentation

View on GitHub

From the project's GitHub README.

Carve MCP server

Give MCP-compatible assistants the same Carve parser, linter, formatter, and renderers used by the JavaScript implementation. Filesystem access is absent by default and can be enabled for explicitly configured document roots.

Tools

  • carve_lint checks a document and returns precise, structured warnings.
  • carve_diagnose_and_fix previews safe fixes, applies selected fix IDs, and returns an undo patch; ambiguous repairs remain writer-review items.
  • carve_format produces canonical Carve and reports rendering losses.
  • carve_render renders HTML, Markdown, plain text, or ANSI.
  • carve_check_targets compares publishing compatibility across HTML, Markdown, plain text, ANSI, GitHub, WordPress, and PDF-stage profiles.
  • carve_parse returns the resolved, position-aware interchange AST.
  • carve_create_ast_patch compares two interchange ASTs and returns a position-independent patch.
  • carve_apply_ast_patch validates and previews a patch as both an AST and canonical Carve source without changing files.
  • carve_select_ast_nodes finds headings, footnotes, node types, or a current AST path without making an ambiguous selection for the caller.
  • carve_plan_ast_edit turns one or more exact semantic matches and small edit intents into one explained, reversible source patch for approval.
  • carve_create_reversible_ast_patch adds inverse operations and semantic stale-edit fingerprints.
  • carve_apply_reversible_ast_patch safely previews forward or undo operations as a guarded UTF-8 source edit.
  • carve_migrate converts HTML, Markdown, or Djot and reports migration fidelity.
  • carve_reference_graph indexes cross-document headings, footnotes, abbreviations, links, and images, including broken edges and orphaned definitions (when workspace access is enabled).

Tools return concise text for readers alongside schema-validated structured results for clients. Six optional prompts guide common review, conversion, and publishing workflows without replacing the writer's judgment.

Use --tool-profile review, convert, structure, or workspace to expose only the tools needed for that job and reduce model context. The default all profile preserves the complete tool surface.

Raw HTML passthrough is disabled by default because MCP inputs are untrusted. The server has no filesystem access unless you explicitly give it a workspace root.

Resources

  • carve://guide is a concise authoring quick start.
  • carve://rules explains the normative rule categories.
  • carve://rules/{ruleId} looks up a stable normative CARVE-* rule ID, such as carve://rules/CARVE-P0-001.
  • carve://lint-rules/{ruleName} explains a stable diagnostic name returned by carve_lint.

The resources identify the Carve version and link to the complete documentation when a reader needs normative detail. Lint diagnostic names are a separate namespace and are returned with their explanations directly by carve_lint.

Get started

Node.js 20 or newer is required.

npx -y @markup-carve/carve-mcp

See Connect Carve to your writing tool for copy-ready setup in Claude, VS Code, Cursor, Zed, and Codex, plus prompts to confirm it works. The compatibility page explains what CI verifies and provides the short host smoke test used for releases.

Install in VS Code Add to Cursor

The writer workflows show practical review, conversion, preview, GitHub publishing, and documentation-folder tasks.

For local builds, workspace access, native binaries, HTTP and container deployment, and contributor checks, see Development and deployment.

This project is licensed under the MIT License.

Reviews

No reviews yet

Be the first to review this server!