Rapier - Markdown Editor & Art

Markdown editor for notes, diagrams, drawing and painting with your AI, and a JPEG XL converter.

Should I use this

Quality & Safety

A
Description quality
96%
Schema completeness
83%
Naming quality
95%
Poisoning risk
80%
Permission match
100%
Protocol compliance
100%

Findings (3)

  • HIGHTool poisoning patterns detected
  • MEDIUMTool description contains URL to non-standard domainin convert
  • LOWTool 'feedback' description lacks action verbin feedback

Based on automated analysis of tool definitions and protocol compliance.

Context Cost

~4,108Tokens (tool definitions)
~3.7 KBTypical response size
Significant attention impact (3.21% of 128k context)

This is the approximate number of tokens consumed each time the server's tools are loaded into a model's context. Higher counts reduce the attention available for other tasks.

Install

One-Click Install

Add this to your `claude_desktop_config.json` file:

{
  "mcpServers": {
    "rapier": {
      "url": "https://mcp.rapier.website/mcp"
    }
  }
}

Remote endpoints

https://mcp.rapier.website/mcpstreamable-http
https://mcp.rapier.website/door/mcpstreamable-http

What it can do

Tool inventory

Tools (8)

🟒 Read-only🟑 WriteπŸ”΄ Deleteβšͺ Unknown
🟑open(document, url, text, filename, note, ...)

Use this when the person wants a document, notes, a list, a table, a diagram they can drag to rearrange or a drawing that they can keep editing by hand, or asks to open or continue one. Use this too when they want to paint in watercolor or learn it: the paint is simulated, so pigment flows, mixes, blooms and dries on textured paper, and they can paint by hand beside your strokes on one sheet. Free, no account. Shows as an editor inside the chat where the host can show one. Not for an answer they will only read. Create {text, filename}, resume {document}, open a Note {document, note}, create one {document, note:"new", text, title} (title only there), or import a host file {file}. Put a new document's whole first text in open, drawings and paintings included: one call, no edit (a painting then waits for the person's editor). Returns revision and whole text when it fits a page. Otherwise a document map. An open confirms the document. Check a current editor report before relying on pixels or selection. A browser code goes to show {target:"pair", code}. Where the host shows Rapier's view (ChatGPT, Claude), it opens in the chat: stay there, no link. Use fullscreen for writing or painting and return to chat as needed. Keep the private document value for later turns. Offer editor_url only when no view shows or the person asks for a browser.

Input Schema

{
  "type": "object",
  "properties": {
    "document": {
      "type": "string",
      "maxLength": 256
    },
    "url": {
      "type": "string",
      "maxLength": 2048,
      "description": "This Door's editor_url, through its authorized connection. Use alone. Other URLs are not fetched."
    },
    "text": {
      "type": "string",
      "maxLength": 67108864
    },
    "filename": {
      "type": "string",
      "maxLength": 256
    },
    "note": {
      "type": "string",
      "maxLength": 160,
      "minLength": 1
    },
    "title": {
      "type": "string",
      "maxLength": 256
    },
    "file": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "maxLength": 256
        },
        "resourceUri": {
          "type": "string",
          "maxLength": 8192
        }
      },
      "required": [
        "name",
        "resourceUri"
      ],
      "additionalProperties": false
    },
    "createToken": {
      "type": "string",
      "maxLength": 128
    },
    "agent": {
      "type": "string",
      "description": "Your display name on acts. Never grants authority."
    },
    "operation_id": {
      "type": "string",
      "maxLength": 128,
      "minLength": 1
    }
  },
  "additionalProperties": false
}
🟒read(document, note, block, heading, lines, ...)

Use this before you change a Rapier document, and when the person asks what it says or what they changed. Read exact text, a heading/fence map (as:"outline") or a PNG (as:"image") of the page or of the named block, heading or lines. A drawing's block gives it at full detail, even while it is open in Draw. Hosted reads need document from a successful open in this chat. Page tools read their bound page. query finds lines here. search lists Notes and follows the same document rule. Continue next_cursor from the last read with cursor alone. Check human context and omissions before editing. state:true reports pending work and the person’s presence. after_revision with wait_ms waits for their next change. guide returns instructions. guide resource URIs are not document IDs.

Input Schema

{
  "type": "object",
  "properties": {
    "document": {
      "type": "string",
      "maxLength": 256,
      "description": "Private document value from a successful open in this chat. Omit with guide or a next-page cursor."
    },
    "note": {
      "type": "string",
      "maxLength": 160,
      "minLength": 1
    },
    "block": {
      "type": "string",
      "maxLength": 128
    },
    "heading": {
      "oneOf": [
        {
          "type": "string",
          "maxLength": 1024
        },
        {
          "type": "array",
          "items": {
            "type": "string",
            "maxLength": 256
          },
          "maxItems": 32
        }
      ]
    },
    "lines": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 1
      },
      "minItems": 2,
      "maxItems": 2,
      "description": "[first, last], 1-based, inclusive."
    },
    "query": {
      "type": "string",
      "maxLength": 2048,
      "description": "Literal text to find in this document."
    },
    "search": {
      "type": "string",
      "maxLength": 2048,
      "description": "Search the Notes store. \"\" lists all. Hosted calls also need document from open."
    },
    "as": {
      "type": "string",
      "maxLength": 32,
      "enum": [
        "text",
        "image",
        "outline"
      ]
    },
    "versions": {
      "type": "boolean"
    },
    "version": {
      "type": "integer",
      "minimum": 1
    },
    "cursor": {
      "type": "string",
      "maxLength": 256,
      "description": "The next_cursor from the last read. Continue with cursor alone."
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 32768
    },
    "state": {
      "type": "boolean"
    },
    "preferences": {
      "type": "boolean",
      "description": "Include editor preferences in state. Omitted by default."
    },
    "history": {
      "type": "boolean"
    },
    "since": {
      "type": "string",
      "maxLength": 256
    },
    "comparison": {
      "type": "boolean"
    },
    "return_id": {
      "type": "string",
      "maxLength": 128
    },
    "after_revision": {
      "type": "integer",
      "minimum": 0,
      "description": "With wait_ms: return when the revision passes this."
    },
    "wait_ms": {
      "type": "integer",
      "minimum": 0,
      "maximum": 20000,
      "description": "Bounded wait (ms) for the next human revision."
    },
    "guide": {
      "type": "string",
      "maxLength": 32,
      "description": "Instructions only. Use no other read selectors and no document.",
      "enum": [
        "overview",
        "draw",
        "water",
        "blocks"
      ]
    },
    "agent": {
      "type": "string",
      "description": "Your display name on acts. Never grants authority."
    },
    "operation_id": {
      "type": "string",
      "maxLength": 128,
      "minLength": 1
    }
  },
  "required": [],
  "additionalProperties": false
}
πŸ”΄edit(document, revision, changes, note, turn_id, ...)

Use this to change a document the person is working on in Rapier: the change shows at once, marked as yours, and undoes alone. Apply unique exact-text changes atomically as one undoable act (act is its id string), rename with filename, or set Note fields with note. At a moved numeric revision, literal edits apply if untouched since. Whole-document replacement needs the current revision. A conflict returns current context. Decide afresh. Drawings, painting, Water, comments and HTML objects use fenced text. A rapier-draw diagram stays live for the person, who drags its boxes and retypes its labels in the document. Painting needs an open editor and an operation_id, and its result shows the painting.

Input Schema

{
  "type": "object",
  "properties": {
    "document": {
      "type": "string",
      "maxLength": 256
    },
    "revision": {
      "type": [
        "integer",
        "string"
      ],
      "description": "From your latest read or open. A Note's is its sha256."
    },
    "changes": {
      "type": "array",
      "items": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "old": {
                "type": "string",
                "maxLength": 67108864
              },
              "new": {
                "type": "string",
                "maxLength": 67108864
              },
              "block": {
                "type": "string",
                "maxLength": 128
              },
              "heading": {
                "oneOf": [
                  {
                    "type": "string",
                    "maxLength": 1024
                  },
                  {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 256
                    },
                    "maxItems": 32
                  }
                ]
              }
            },
            "required": [
              "old",
              "new"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "after": {
                "type": "string",
                "maxLength": 67108864
              },
              "insert": {
                "type": "string",
                "maxLength": 67108864
              },
              "block": {
                "type": "string",
                "maxLength": 128
              },
              "heading": {
                "oneOf": [
                  {
                    "type": "string",
                    "maxLength": 1024
                  },
                  {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 256
                    },
                    "maxItems": 32
                  }
                ]
              }
            },
            "required": [
              "after",
              "insert"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "text": {
                "type": "string",
                "maxLength": 67108864
              }
            },
            "required": [
              "text"
            ],
            "additionalProperties": false
          }
        ]
      },
      "minItems": 1,
      "maxItems": 32
    },
    "note": {
      "type": "string",
      "maxLength": 160,
      "minLength": 1
    },
    "turn_id": {
      "type": "string",
      "maxLength": 160,
      "description": "Groups acts for undo {turn_id}."
    },
    "label": {
      "type": "string",
      "description": "Short description of this edit in history."
    },
    "fields": {
      "type": "object",
      "properties": {
        "pinned": {
          "type": "boolean"
        },
        "colour": {
          "type": "string",
          "enum": [
            "",
            "red",
            "orange",
            "yellow",
            "green",
            "teal",
            "blue",
            "purple",
            "pink",
            "brown"
          ]
        },
        "section": {
          "type": "string",
          "maxLength": 48
        },
        "tags": {
          "type": "array",
          "items": {
            "type": "string",
            "maxLength": 128
          },
          "maxItems": 64
        },
        "archived": {
          "type": "boolean"
        },
        "trashed": {
          "type": "boolean"
        },
        "reminder": {
          "type": [
            "object",
            "null"
          ],
          "description": "App only, with {at} in ms."
        }
      },
      "additionalProperties": false,
      "description": "Note fields, with note and without changes."
    },
    "filename": {
      "type": "string",
      "maxLength": 256
    },
    "agent": {
      "type": "string",
      "description": "Your display name on acts. Never grants authority."
    },
    "operation_id": {
      "type": "string",
      "maxLength": 128,
      "minLength": 1
    }
  },
  "required": [
    "document",
    "revision"
  ],
  "additionalProperties": false
}
πŸ”΄undo(document, act, turn_id, agent, operation_id)

Use this when the person wants a change of yours in Rapier taken back. Undo one act or one turn (act or turn_id, not both), preserving later work.

Input Schema

{
  "type": "object",
  "properties": {
    "document": {
      "type": "string",
      "maxLength": 256
    },
    "act": {
      "type": "string",
      "maxLength": 256,
      "description": "From edit. Pass act or turn_id."
    },
    "turn_id": {
      "type": "string",
      "maxLength": 160,
      "description": "Undo a whole turn. Pass act or turn_id."
    },
    "agent": {
      "type": "string",
      "description": "Your display name on acts. Never grants authority."
    },
    "operation_id": {
      "type": "string",
      "maxLength": 128,
      "minLength": 1
    }
  },
  "required": [
    "document"
  ],
  "additionalProperties": false
}
πŸ”΄show(document, target, text, block, heading, ...)

Use this to point the person to a place in their Rapier document, ask them something there, or pair their browser with a 4-letter code. Present work or ask the person. An omitted target is inferred from its fields. A 4-letter browser code pairs that editor (target:"pair"). A connected workspace's owner first approves at owner_approval_url, then the person chooses ALLOW. pairing.status: none, code_shown, owner_approval_required, awaiting_allow or paired. Only paired confirms pairing. Inspect actual presentation. A request is not proof the person saw it. A comparison leaves source unchanged. Later human navigation wins.

Input Schema

{
  "type": "object",
  "properties": {
    "document": {
      "type": "string",
      "maxLength": 256
    },
    "target": {
      "type": "string",
      "maxLength": 48,
      "enum": [
        "passage",
        "block",
        "pointer",
        "read_aloud",
        "playback",
        "comparison",
        "view",
        "preferences",
        "plugin",
        "file",
        "record",
        "attachment",
        "return",
        "note",
        "ask",
        "pair"
      ]
    },
    "text": {
      "type": "string",
      "maxLength": 67108864,
      "description": "Exact passage, or for comparison the whole alternative document."
    },
    "block": {
      "type": "string",
      "maxLength": 128
    },
    "heading": {
      "oneOf": [
        {
          "type": "string",
          "maxLength": 1024
        },
        {
          "type": "array",
          "items": {
            "type": "string",
            "maxLength": 256
          },
          "maxItems": 32
        }
      ]
    },
    "revision": {
      "type": [
        "integer",
        "string"
      ]
    },
    "act": {
      "type": "string",
      "maxLength": 256
    },
    "turn_id": {
      "type": "string",
      "maxLength": 160
    },
    "name": {
      "type": "string",
      "maxLength": 256,
      "description": "Comparison title or target:plugin name: math|mermaid|pdf|ocr|letters-field|letters-relief|letters-leaf|letters-arabesque|letters-silhouette|letters-gothic|letters-sugar|letters-illuminated-1490|letters-tuscan-1845|letters-renaissance-alphabet."
    },
    "words": {
      "type": "string",
      "maxLength": 160,
      "description": "Pointer label."
    },
    "view": {
      "type": "string",
      "maxLength": 32,
      "enum": [
        "formatted",
        "source",
        "notes"
      ]
    },
    "question": {
      "type": "string",
      "maxLength": 4096
    },
    "wait": {
      "type": "string",
      "maxLength": 32,
      "description": "ask: message (default) or selection.",
      "enum": [
        "selection",
        "message"
      ]
    },
    "timeout_ms": {
      "type": "integer",
      "minimum": 1000,
      "maximum": 120000,
      "default": 20000
    },
    "preference": {
      "type": "string",
      "enum": [
        "accent",
        "theme",
        "fontSize",
        "defaultDocumentFont",
        "checker",
        "lineNums",
        "imageStorage",
        "inkColour",
        "inkWidth",
        "inkStylus",
        "wrap",
        "dim",
        "lineFit",
        "showPlayButton",
        "focus",
        "typewriter",
        "highlights",
        "highlightColor",
        "headings",
        "invertImageAlpha",
        "layout",
        "startIn",
        "notesSort",
        "notesLayout",
        "notesColour",
        "audioSpeed"
      ]
    },
    "value": {
      "type": [
        "string",
        "boolean"
      ],
      "description": "preferences: the setting. playback: false pauses, true plays."
    },
    "note": {
      "type": "string",
      "maxLength": 160,
      "minLength": 1
    },
    "code": {
      "type": "string",
      "maxLength": 4,
      "description": "Browser pairing code (target:\"pair\")."
    },
    "close": {
      "type": "boolean"
    },
    "compare_id": {
      "type": "string",
      "maxLength": 128
    },
    "lifetime": {
      "type": "integer",
      "minimum": 1,
      "maximum": 30
    },
    "after_return_id": {
      "type": "string",
      "maxLength": 128
    },
    "agent": {
      "type": "string",
      "description": "Your display name on acts. Never grants authority."
    },
    "operation_id": {
      "type": "string",
      "maxLength": 128,
      "minLength": 1
    }
  },
  "required": [
    "document"
  ],
  "additionalProperties": false
}
πŸ”΄export(document, format, to, text, block, ...)

Use this when the person wants their Rapier document as a file to keep: Markdown, Word, PDF, plain text, or one HTML file that opens and edits offline. to:"file" (default) delivers markdown, html, page, txt, docx or pdf (html is the whole editor with the document inside, editable offline). to:"save" saves to the bound destination. to:"clipboard" copies a passage as plain, markdown, formatted or complete. to:"sync" alone syncs the Notes store and can replace files. On the hosted Door, page, docx and pdf need the person's paired, open editor. A self-hosted server can provide a renderer. Inspect delivery. Export never publishes a website.

Input Schema

{
  "type": "object",
  "properties": {
    "document": {
      "type": "string",
      "maxLength": 256
    },
    "format": {
      "type": "string",
      "maxLength": 32,
      "enum": [
        "markdown",
        "html",
        "page",
        "txt",
        "docx",
        "pdf",
        "plain",
        "formatted",
        "complete"
      ]
    },
    "to": {
      "type": "string",
      "maxLength": 32,
      "enum": [
        "file",
        "save",
        "clipboard",
        "sync"
      ]
    },
    "text": {
      "type": "string",
      "maxLength": 67108864
    },
    "block": {
      "type": "string",
      "maxLength": 128
    },
    "heading": {
      "oneOf": [
        {
          "type": "string",
          "maxLength": 1024
        },
        {
          "type": "array",
          "items": {
            "type": "string",
            "maxLength": 256
          },
          "maxItems": 32
        }
      ]
    },
    "revision": {
      "type": [
        "integer",
        "string"
      ]
    },
    "compare_id": {
      "type": "string",
      "maxLength": 128
    },
    "agent": {
      "type": "string",
      "description": "Your display name on acts. Never grants authority."
    },
    "operation_id": {
      "type": "string",
      "maxLength": 128,
      "minLength": 1
    }
  },
  "required": [
    "document"
  ],
  "additionalProperties": false
}
πŸ”΄convert(files, quality, effort, max_bytes, longer_side, ...)

Use this when the person wants pictures converted to JPEG XL, or JPEG XL pictures converted back. Free, on the person's own device. Opens Rapier's converter in this app's view where the app can show one: pictures from the chat passed in files open there and convert at once, and the person can add more and saves the results. The pictures never reach Rapier's server: the view reads them from the chat on the person's device. Without a view, answers with the converter's link (https://rapier.website/jxl) for the person. files: the chat's pictures. Omit it to let the person pick them. quality: high, veryhigh, lossless, or a number 1-100 (100 is lossless). A fresh view starts on high. A quality or effort left out keeps the view's current choice, so pass quality to be sure. effort 1-10 (7 on a fresh view: higher is smaller and slower; 9 and 10 take a while, longer on a slower machine, and 10 can take 20 to 30 minutes for a 12 MP photo). max_bytes: each picture made the best that fits under 100000, 250000, 500000, 1000000, 2000000 bytes (a JPEG carried exactly when it fits). longer_side: 1920, 1280, 640 px, never larger than the picture. remove_location: true takes a photo's location out. The date, camera and other metadata are kept. To convert files in your own sandbox, run npx jpegxl <file|folder>: it prints each size before and after.

Input Schema

{
  "type": "object",
  "properties": {
    "files": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "download_url": {
            "type": "string",
            "maxLength": 8192
          },
          "file_id": {
            "type": "string",
            "maxLength": 256
          },
          "mime_type": {
            "type": "string",
            "maxLength": 128
          },
          "file_name": {
            "type": "string",
            "maxLength": 256
          }
        },
        "required": [
          "download_url",
          "file_id"
        ],
        "additionalProperties": false
      },
      "maxItems": 32
    },
    "quality": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 16,
          "enum": [
            "high",
            "veryhigh",
            "lossless"
          ]
        },
        {
          "type": "integer",
          "minimum": 1,
          "maximum": 100
        }
      ]
    },
    "effort": {
      "type": "integer",
      "minimum": 1,
      "maximum": 10
    },
    "max_bytes": {
      "type": "integer",
      "enum": [
        100000,
        250000,
        500000,
        1000000,
        2000000
      ]
    },
    "longer_side": {
      "type": "integer",
      "enum": [
        1920,
        1280,
        640
      ]
    },
    "remove_location": {
      "type": "boolean"
    },
    "agent": {
      "type": "string",
      "description": "Your display name on acts. Never grants authority."
    },
    "operation_id": {
      "type": "string",
      "maxLength": 128,
      "minLength": 1
    }
  },
  "required": [],
  "additionalProperties": false
}
βšͺfeedback(text, tool, host, agent, operation_id)

Tell the Rapier team, in one short line, when Rapier got in the way or did not do what the person asked. Never include document text or personal details.

Input Schema

{
  "type": "object",
  "properties": {
    "text": {
      "type": "string",
      "maxLength": 500,
      "minLength": 1,
      "description": "What the person wanted and what Rapier did wrong."
    },
    "tool": {
      "type": "string",
      "maxLength": 16,
      "enum": [
        "open",
        "read",
        "edit",
        "undo",
        "show",
        "export",
        "convert",
        "feedback"
      ],
      "description": "The Rapier tool involved."
    },
    "host": {
      "type": "string",
      "maxLength": 40,
      "description": "Your assistant or app."
    },
    "agent": {
      "type": "string",
      "description": "Your display name on acts. Never grants authority."
    },
    "operation_id": {
      "type": "string",
      "maxLength": 128,
      "minLength": 1
    }
  },
  "required": [
    "text"
  ],
  "additionalProperties": false
}

Community

Rate this Server

Evidence

Recent observations

verifiedversion not recorded8 tools
verifiedversion not recorded7 tools
verifiedversion not recorded7 tools
verifiedversion not recorded6 tools
verifiedversion not recorded6 tools
verifiedversion not recorded6 tools
verifiedversion not recorded6 tools
verifiedversion not recorded6 tools