Use the single MCP key issued by md-log to save and search documents right from your AI client (Claude Code · Claude Desktop · Codex · Cursor). Connect by a single URL — nothing to install.
You need the two things below. Both can be found or issued in the md-log web app, and they are all you need to connect.
mdlog_pat_ — e.g. mdlog_pat_3f9a… (treat it like a password)https://mcp.md-log.com/mcp (remote URL connection — recommended)https://app.md-log.com/api/v1 (the MDLOG_API_BASE_URL for the local npx method)https://app.md-log.com/api/v1). The key is shown only once at issue time, so store it somewhere safe.There are two ways to connect — pick one from the tabs below. Either way, you only swap MDLOG_PAT (the MCP key) for your own issued value.
Connect with a single URL — nothing to install. No Node.js, no npx. Just give your client the URL + your key (Bearer header).
claude mcp add --transport http md-log https://mcp.md-log.com/mcp \ --header "Authorization: Bearer mdlog_pat_your_key_here"
Add it to ~/.cursor/mcp.json · claude_desktop_config.json · a project .mcp.json, etc.
{
"mcpServers": {
"md-log": {
"type": "http",
"url": "https://mcp.md-log.com/mcp",
"headers": { "Authorization": "Bearer mdlog_pat_your_key_here" }
}
}
}The type field must be http (omitting it is read as stdio). Over the remote endpoint, embed images inline (base64) — uploading a local image by file path works only with the local (npx) method.
npx fetches and runs the connector automatically, so there's nothing to install by hand. Use this method if you need local-file image uploads. Check your version: node -v (v22.x+ is OK; if lower, install the LTS from nodejs.org).Register it in one line in your terminal (replace only the one value — your key — with yours).
claude mcp add md-log \ --scope user \ --env MDLOG_API_BASE_URL=https://app.md-log.com/api/v1 \ --env MDLOG_PAT=mdlog_pat_your_key_here \ -- npx -y md-log-mcp
After registering, check with claude mcp list, and during chat use /mcp to see the status.
Open the config file, add an mcpServers entry, then fully quit and relaunch the app.
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json{
"mcpServers": {
"md-log": {
"command": "npx",
"args": ["-y", "md-log-mcp"],
"env": {
"MDLOG_API_BASE_URL": "https://app.md-log.com/api/v1",
"MDLOG_PAT": "mdlog_pat_your_key_here"
}
}
}
}Once connected, the tool list appears in the tools (🔌) menu of the input box.
Add the block below to ~/.codex/config.toml (the format is TOML, not JSON).
# ~/.codex/config.toml [mcp_servers.md-log] command = "npx" args = ["-y", "md-log-mcp"] env = { MDLOG_API_BASE_URL = "https://app.md-log.com/api/v1", MDLOG_PAT = "mdlog_pat_your_key_here" }
Recent versions also support the codex mcp add md-log --env … -- npx -y md-log-mcp command.
Settings → MCP → Add new server, or add it to ~/.cursor/mcp.json.
{
"mcpServers": {
"md-log": {
"command": "npx",
"args": ["-y", "md-log-mcp"],
"env": {
"MDLOG_API_BASE_URL": "https://app.md-log.com/api/v1",
"MDLOG_PAT": "mdlog_pat_your_key_here"
}
}
}
}When a green dot appears in Settings → MCP, the connection succeeded.
Most work the same way — just provide the run command + 2 environment variables.
command : npx
args : -y md-log-mcp
env : MDLOG_API_BASE_URL = https://app.md-log.com/api/v1
MDLOG_PAT = mdlog_pat_your_key_heremd-log shows as connected in the tool list. (Claude Code: /mcp)Once connected, just ask the AI as you normally would. For example:
What it can do: save / edit / append markdown by path, read, delete, move & rename (preserving history and annotations), view version history & read past versions, create / move / rename / delete / list folders, full-text search, and attach images. Folders are created automatically on save.
You don't have to say “save it” every time. Write the rule once in your agent's rules file (claude.md/CLAUDE.md for Claude Code, AGENTS.md for Codex, project rules for Cursor),
and your agent will automatically create a .md report and save it to md-log whenever it finishes a task or analysis.
Missing folders are created automatically by path, images are uploaded too, and every save accumulates as an immutable version.
Example — add a rule like this to your rules file:
## Work log rule (md-log)
- After finishing a meaningful task or analysis, write a report summarizing "what · why · what impact".
- Save that report via the md-log MCP save_markdown at this path:
<project>/<YYYY-MM-DD>-<topic>.md
- For large changes, include the reason, scope of impact, and follow-ups (TODO) — for review & onboarding.
- When the user gives feedback, apply it and keep logging in the same document.Your workflow is then automated like this:
mdlog_pat_…) is like a password. Don't expose it in screen shares, screenshots, chat, or public repositories.https://.| Symptom | Check / fix |
|---|---|
md-log not in the list / not connected | Check that you fully restarted the client after saving settings, and that node -v is 22 or higher. |
npx / node not found | Node.js isn't installed — install the LTS from nodejs.org and restart the terminal/app. |
| Every operation fails with an auth error (401) | The key is wrong, expired, or revoked. Paste the key again exactly (including mdlog_pat_, no spaces) or re-issue it under Settings → Tokens. |
| Connected but no response / timeout | Check that MDLOG_API_BASE_URL exactly matches the service URL (https://app.md-log.com/api/v1, including the trailing /api/v1). |
| Saving works but “token/session management” is refused | That's expected — this key is document-scoped and has no account-management permission. |
| File path error (VALIDATION) | File names must end in .md, and .., backslashes, and empty folder names are not allowed. |
If none of the above helps, capture your client name and the on-screen error message and contact md-log support (support@md-log.com). (Please mask the key so it isn't visible in the capture.)
The remote (URL) method needs nothing installed — connect with only the URL and your key (recommended). The local (npx) method just needs Node.js; the connection tool is fetched and run automatically by npx on first use, so no separate install or build is needed.
Yes. Put the same key and URL in each device's client settings. Just keep the key secret.
In the web app under Settings → Tokens you can revoke the existing key and issue a new one yourself. After getting a new key, replace only the MDLOG_PAT value in your settings and restart the client.
No. Documents are stored on the service server, so you need a network that can reach the MDLOG_API_BASE_URL server.