# Md Log MCP

> Md Log MCP is an MCP server for developer tools. Save, edit and version Markdown reports from your coding agent into md-log. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Platforms:** API, CLI
- **Repository:** https://github.com/md-log/md-log-mcp
- **MCP Registry name:** com.md-log/md-log-mcp
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools), [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory)
- **Listing updated:** 2026-11-23

## About

The server writes by path, such as my-project/2026-07-07-error-report.md, creating missing folders as it goes. Images given as base64 or a local file are uploaded first and their references rewritten to asset links, and every save becomes a new immutable version with an optional commit message. The idea is to review an agent's report rather than its diff, then read and stylus-annotate the report on web, phone or tablet.

Edits can be partial: `edit_markdown` applies up to 50 exact-text replacements in one write and rejects the whole call if any match is missing or ambiguous, while `append_to_markdown` and `update_markdown` use optimistic concurrency to avoid overwriting someone else's change. Any version can be restored, and a restore is itself a new version.

md-log is a hosted service, so this package is a thin client with 17 tools over two transports: local stdio via npx, or a hosted Streamable HTTP endpoint that takes the personal access token per request. It requires Node 22 or later and a token created under Settings, Tokens.

## Features

- **Save by path:** Creates or overwrites a Markdown file and auto-creates folders.
- **Image handling:** Uploads embedded screenshots and rewrites them to asset links.
- **Batch edits:** Applies up to 50 exact replacements as one version.
- **Version history:** Lists versions and restores an earlier one as a new version.
- **Conflict control:** Optimistic concurrency on append and update.
- **Search and move:** Searches titles and bodies and moves or renames files.

## Good for

- Archive a coding agent's analysis as a reviewable report
- Annotate an agent's report with a stylus
- Roll back a report to an earlier version
- Keep screenshots and text together in one document
- Search past reports by keyword

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add md-log-mcp --env MDLOG_API_BASE_URL='<MDLOG_API_BASE_URL>' --env MDLOG_PAT='<MDLOG_PAT>' -- npx -y md-log-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "md-log-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "md-log-mcp"
      ],
      "env": {
        "MDLOG_API_BASE_URL": "<MDLOG_API_BASE_URL>",
        "MDLOG_PAT": "<MDLOG_PAT>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "md-log-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "md-log-mcp"
      ],
      "env": {
        "MDLOG_API_BASE_URL": "<MDLOG_API_BASE_URL>",
        "MDLOG_PAT": "<MDLOG_PAT>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "md-log-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "md-log-mcp"
      ],
      "env": {
        "MDLOG_API_BASE_URL": "<MDLOG_API_BASE_URL>",
        "MDLOG_PAT": "<MDLOG_PAT>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "md-log-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "md-log-mcp"
      ],
      "env": {
        "MDLOG_API_BASE_URL": "<MDLOG_API_BASE_URL>",
        "MDLOG_PAT": "<MDLOG_PAT>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add md-log-mcp --env MDLOG_API_BASE_URL='<MDLOG_API_BASE_URL>' --env MDLOG_PAT='<MDLOG_PAT>' -- npx -y md-log-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.md-log-mcp]
command = "npx"
args = ["-y", "md-log-mcp"]
env = { MDLOG_API_BASE_URL = "<MDLOG_API_BASE_URL>", MDLOG_PAT = "<MDLOG_PAT>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "md-log-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "md-log-mcp"
      ],
      "env": {
        "MDLOG_API_BASE_URL": "<MDLOG_API_BASE_URL>",
        "MDLOG_PAT": "<MDLOG_PAT>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e MDLOG_API_BASE_URL='<MDLOG_API_BASE_URL>' -e MDLOG_PAT='<MDLOG_PAT>' md-log-mcp npx -- -y md-log-mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "md-log-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "md-log-mcp"
      ],
      "env": {
        "MDLOG_API_BASE_URL": "<MDLOG_API_BASE_URL>",
        "MDLOG_PAT": "<MDLOG_PAT>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "md-log-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "md-log-mcp"
      ],
      "env": {
        "MDLOG_API_BASE_URL": "<MDLOG_API_BASE_URL>",
        "MDLOG_PAT": "<MDLOG_PAT>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "md-log-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "md-log-mcp"
      ],
      "env": {
        "MDLOG_API_BASE_URL": "<MDLOG_API_BASE_URL>",
        "MDLOG_PAT": "<MDLOG_PAT>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "md-log-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "md-log-mcp"
      ],
      "env": {
        "MDLOG_API_BASE_URL": "<MDLOG_API_BASE_URL>",
        "MDLOG_PAT": "<MDLOG_PAT>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "md-log-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "md-log-mcp"
      ],
      "env": {
        "MDLOG_API_BASE_URL": "<MDLOG_API_BASE_URL>",
        "MDLOG_PAT": "<MDLOG_PAT>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "md-log-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "md-log-mcp"
      ],
      "env": {
        "MDLOG_API_BASE_URL": "<MDLOG_API_BASE_URL>",
        "MDLOG_PAT": "<MDLOG_PAT>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "md-log-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "md-log-mcp"
      ],
      "env": {
        "MDLOG_API_BASE_URL": "<MDLOG_API_BASE_URL>",
        "MDLOG_PAT": "<MDLOG_PAT>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "md-log-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "md-log-mcp"
      ],
      "env": {
        "MDLOG_API_BASE_URL": "<MDLOG_API_BASE_URL>",
        "MDLOG_PAT": "<MDLOG_PAT>"
      }
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 1 of 14 tools deletes data and 5 change data; 3 names don't say. From the server's own tool labels and tool names; not verified by us.

- `save_markdown`: Creates or overwrites a Markdown file by path.
- `upload_asset` (name suggests: changes): Uploads an image and returns an asset link.
- `append_to_markdown`: Appends to an existing file with conflict control.
- `edit_markdown` (name suggests: changes): Applies exact-text replacements to part of a file.
- `update_markdown` (name suggests: changes): Replaces a file's entire content.
- `restore_version`: Rolls a file back to an earlier version.
- `get_markdown` (name suggests: reads): Reads a file by path, optionally an old version.
- `list_versions` (name suggests: reads): Lists a file's version history.
- `delete_markdown` (name suggests: deletes): Soft-deletes a file.
- `create_folder` (name suggests: changes): Creates folders along a path.
- `list_folders` (name suggests: reads): Returns the folder tree.
- `list_files` (name suggests: reads): Lists documents and subfolders in a folder.
- `search_markdown` (name suggests: reads): Searches titles and body text.
- `move_markdown` (name suggests: changes): Moves or renames a file.

## FAQ

### What do I need to connect?

A personal access token from the md-log web app and Node 22 or later for the stdio mode.

### Do I have to self-host md-log?

No. md-log is hosted at app.md-log.com and this package is only the connector.

### Is anything ever overwritten?

Every save is an immutable new version, and restore creates another new version.

### How many tools does Md Log MCP have?

17 tools, shared by the stdio and HTTP transports.

### How do I add Md Log MCP to Claude Code?

Run this command in your terminal: claude mcp add md-log-mcp --env MDLOG_API_BASE_URL='<MDLOG_API_BASE_URL>' --env MDLOG_PAT='<MDLOG_PAT>' -- npx -y md-log-mcp

### What are the best alternatives to Md Log MCP?

The closest alternatives to Md Log MCP are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/md-log-mcp
