Skip to content
MCP server

HackMD

A Model Context Protocol server for integrating HackMD's note-taking platform with AI…

Runs locallyStatus and history
Install
Pricing
Open source
Runs
Locally
Version
1.5.7
Listing updated
4 days ago

About HackMD

HackMD is an open-source MCP server. It runs locally on your machine and is started by your AI client.

A Model Context Protocol server for integrating HackMD's note-taking platform with AI assistants.

Install

Run in a terminal

claude mcp add hackmd-mcp --env HACKMD_API_TOKEN='<HACKMD_API_TOKEN>' -- npx -y hackmd-mcp

Add to claude_desktop_config.json

{
  "mcpServers": {
    "hackmd-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "hackmd-mcp"
      ],
      "env": {
        "HACKMD_API_TOKEN": "<HACKMD_API_TOKEN>"
      }
    }
  }
}

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "hackmd-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "hackmd-mcp"
      ],
      "env": {
        "HACKMD_API_TOKEN": "<HACKMD_API_TOKEN>"
      }
    }
  }
}

Add to .vscode/mcp.json

{
  "servers": {
    "hackmd-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "hackmd-mcp"
      ],
      "env": {
        "HACKMD_API_TOKEN": "<HACKMD_API_TOKEN>"
      }
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "hackmd-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "hackmd-mcp"
      ],
      "env": {
        "HACKMD_API_TOKEN": "<HACKMD_API_TOKEN>"
      }
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "hackmd-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "hackmd-mcp"
      ],
      "env": {
        "HACKMD_API_TOKEN": "<HACKMD_API_TOKEN>"
      }
    }
  }
}

Configuration

  • HACKMD_API_TOKENYour HackMD API token for API authenticationRequired
  • HACKMD_API_URLOptional HackMD API URL, defaults to https://api.hackmd.io/v1
  • HACKMD_API_TOKENYour HackMD API token for API authenticationRequired
  • HACKMD_API_URLOptional HackMD API URL, defaults to https://api.hackmd.io/v1
  • HACKMD_API_TOKENYour HackMD API token for API authenticationRequired
  • HACKMD_API_URLOptional HackMD API URL, defaults to https://api.hackmd.io/v1

Pricing

Open source

HackMD FAQ

Is HackMD free?

Yes. HackMD is open source, so you can use and self-host it for free.

How do I add HackMD to Claude Code?

Run this command in your terminal: claude mcp add hackmd-mcp --env HACKMD_API_TOKEN='<HACKMD_API_TOKEN>' -- npx -y hackmd-mcp