HackMD MCP Server
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Integrations
Provides access to the HackMD API, enabling note management capabilities including creating, reading, updating, and deleting notes, viewing read history, and working with team notes on the HackMD collaborative markdown platform.
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:
Configuration
Option 1: Using a .env file
- Create a
.env
file by copying the example:Copy - Edit the
.env
file and add your HackMD API token:Copy
Option 2: Using environment variables inline
You can also provide the API token directly when running the server:
You can get an API token from HackMD settings.
Usage
Start the MCP server
Local installation:
Using bunx (without cloning):
Debugging with MCP Inspector
You can use the MCP Inspector to test and debug the HackMD MCP server:
Then open your browser to the provided URL (usually http://localhost:5173) to access the MCP Inspector interface. From there, you can:
- Connect to your running HackMD MCP server
- Browse available tools
- Run tools with custom parameters
- 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
- Add this server to your
claude_desktop_config.json
:
- Restart Claude Desktop
- 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
Then use commands like:
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.
This server cannot be installed
A Model Context Protocol server that enables AI assistants to interact with the HackMD API for managing notes, including creating, reading, updating, and deleting notes.
- Requirements
- Installation
- Configuration
- Usage
- Available Tools
- Example Usage in Claude
- Security Notice
- License