@ghanithan/archmd-mcp-server
v1.0.2
Published
MCP server exposing an open_in_archmd tool: open a Markdown file or URL in the ArchMD editor.
Downloads
50
Maintainers
Readme
archmd-mcp-server
An MCP server that exposes one tool,
open_in_archmd, so any MCP-capable AI client can open a Markdown file or
URL in the ArchMD editor.
- Local files open through the installed ArchMD PWA when available — a
real
FileSystemFileHandle, so there's no size limit and Save writes back to the original file. - URLs (and local files when the PWA isn't installed) open via a deep link
(
?url=/?content=). - Cross-OS launch: macOS
open, Windowsstart, Linuxxdg-open. (The PWA-handle path is currently macOS-only; other platforms use the deep link.)
Tool
open_in_archmd({ target }) — target is a local .md path (absolute or
~-relative) or an http(s) URL. Returns a text description of the action.
Setup
Published to npm as @ghanithan/archmd-mcp-server,
so clients run it with npx — no clone or install needed.
Claude Code
claude mcp add archmd -- npx -y @ghanithan/archmd-mcp-serveror add a project-scoped .mcp.json at the repo root:
{
"mcpServers": {
"archmd": { "command": "npx", "args": ["-y", "@ghanithan/archmd-mcp-server"] }
}
}Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):
{
"mcpServers": {
"archmd": { "command": "npx", "args": ["-y", "@ghanithan/archmd-mcp-server"] }
}
}Any other MCP host
Launch npx -y @ghanithan/archmd-mcp-server over the stdio transport. MCP is
a cross-vendor protocol, so hosts beyond Anthropic's that support MCP can use it.
Run from source (local path)
cd mcp-server && npm install
# then point your client at: node /ABS/PATH/mcp-server/index.mjsEnvironment
| Var | Default | Purpose |
| --- | --- | --- |
| ARCHMD_URL | https://www.archmd.dev/ | base origin for deep links |
| ARCHMD_DRY_RUN | – | 1 reports the action instead of launching (tests) |
Notes
- For the PWA-handle path, install ArchMD first: open https://www.archmd.dev in
Chrome/Edge → Install, and allow it to open
.mdfiles. - Browser-sandboxed assistants (e.g. web chat UIs) can't open local files at all; this server is for local MCP hosts that can spawn a process.
