Navigation
HackMD MCP Server: AI Integration & Smart Collaboration - MCP Implementation

HackMD MCP Server: AI Integration & Smart Collaboration

Bridge HackMD notes with AI assistants effortlessly—MCP Server turns your ideas into smart collaboration gold. Seamlessly boost productivity!

Research And Data
4.4(108 reviews)
162 saves
75 comments

Users create an average of 48 projects per month with this tool

About HackMD MCP Server

What is HackMD MCP Server: AI Integration & Smart Collaboration?

HackMD MCP Server acts as a bridge between AI assistants and the HackMD platform, enabling seamless automation and collaboration through its Model Context Protocol (MCP) interface. This server empowers AI tools to interact with user notes, team documents, and account settings, fostering intelligent workflows that enhance productivity and streamline knowledge management.

How to Use HackMD MCP Server: AI Integration & Smart Collaboration?

Start by installing dependencies and configuring your API token via a .env file or environment variables. Launch the server, then utilize tools like the MCP Inspector for real-time debugging. Integrate with platforms like Claude Desktop by configuring endpoints and testing API interactions. Full setup steps are documented to ensure smooth deployment for developers and teams.

HackMD MCP Server Features

Key Features of HackMD MCP Server: AI Integration & Smart Collaboration?

  • User-Centric Control: Manage profiles, permissions, and activity logs programmatically
  • Advanced Note Automation: Create, edit, and organize documents at scale using AI workflows
  • Team Collaboration Tools: Sync group projects and permissions across multiple workspaces
  • Diagnostic Capabilities: Built-in validation checks and error reporting for API interactions
  • Cross-Platform Support: Compatible with major AI frameworks and developer tools

Use Cases of HackMD MCP Server: AI Integration & Smart Collaboration?

Automate repetitive note-taking tasks during meetings, integrate with AI writing assistants

HackMD MCP Server FAQ

FAQ from HackMD MCP Server: AI Integration & Smart Collaboration?

  • How do I get an API token? Generate it via your HackMD account settings under API access controls
  • Can I use this with Docker? Yes, containerization instructions are available in the deployment guide
  • What security measures are in place? Token-based authentication and encrypted data transmission comply with enterprise-grade standards
  • Does it support webhooks? Incoming/outgoing webhook configurations are fully documented for event-driven workflows

Content

HackMD MCP Server

This is a Model Context Protocol (MCP) server for interacting with the HackMD API. It allows AI assistants to perform operations such as:

  • Get user information
  • List user's notes
  • Create, read, update, and delete notes
  • View read history
  • Work with team notes

Requirements

  • Node.js 18+
  • HackMD API token

Installation

Clone the repository and install dependencies:

git clone https://github.com/yuna0x0/hackmd-mcp.git
cd hackmd-mcp
bun install  # or use npm, yarn, pnpm

Configuration

Option 1: Using a .env file

  1. Create a .env file by copying the example:

    cp .env.example .env

  2. Edit the .env file and add your HackMD API token:

    HACKMD_API_TOKEN=your_api_token

Option 2: Using environment variables inline

You can also provide the API token directly when running the server:

HACKMD_API_TOKEN=your_api_token bun start

You can get an API token from HackMD settings.

Usage

Start the MCP server

Local installation:

bun start  # or use npm, yarn, pnpm

Using bunx (without cloning):

HACKMD_API_TOKEN=your_api_token bunx hackmd-mcp

Debugging with MCP Inspector

You can use the MCP Inspector to test and debug the HackMD MCP server:

# Using the package.json script
bun run inspector  # or use npm, yarn, pnpm

# Alternative: Direct use with bunx (or npx)
bunx @modelcontextprotocol/inspector -e HACKMD_API_TOKEN=your_api_token bunx hackmd-mcp

Then open your browser to the provided URL (usually http://localhost:5173) to access the MCP Inspector interface. From there, you can:

  1. Connect to your running HackMD MCP server
  2. Browse available tools
  3. Run tools with custom parameters
  4. View the responses

This is particularly useful for testing your setup before connecting it to Claude or another AI assistant.

Using with Claude Desktop or other MCP clients

  1. Add this server to your claude_desktop_config.json:
{
  "mcpServers": {
    "hackmd": {
      "command": "npx",
      "args": ["-y", "hackmd-mcp"],
      "env": {
        "HACKMD_API_TOKEN": "your_api_token"
      }
    }
  }
}
  1. Restart Claude Desktop
  2. Use the tools to interact with your HackMD account

Available Tools

User API

  • get_user_info : Get information about the authenticated user

User Notes API

  • list_user_notes : List all notes owned by the user
  • get_note : Get a note by its ID
  • create_note : Create a new note
  • update_note : Update an existing note
  • delete_note : Delete a note
  • get_history : Get user's reading history

Teams API

  • list_teams : List all teams accessible to the user

Team Notes API

  • list_team_notes : List all notes in a team
  • create_team_note : Create a new note in a team
  • update_team_note : Update an existing note in a team
  • delete_team_note : Delete a note in a team

Example Usage in Claude

Can you help me manage my HackMD notes?

Then use commands like:

Please list all my notes.

Security Notice

This MCP server requires your HackMD API token in the .env file or as an environment variable. Keep this information secure and never commit it to version control.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Related MCP Servers & Clients